CSVReaderInit returns error : INVALID_HANDLE

totorovic
2023-06-26
2023-10-27
  • totorovic - 2023-06-26

    Hello,
    Codesys IDE is 3.5.17.21

    Sometimes the bloc CSVReaderInit from the library CSVUtility (1.0.0.5) returns the following error : INVALID_HANDLE.

    How can I get more informations about the meaning of this error ?

    Thx you

     

    Last edit: totorovic 2023-06-27
  • eschwellinger

    eschwellinger - 2023-06-26

    which runtime & version are you using?

     
  • totorovic - 2023-06-27

    Runtime is CODESYS Softmotion RTE x64 version 3.5.15.30

     
  • totorovic - 2023-06-28

    Hello,

    Do you have news about this error ?

    Error does not happens everytime but randomly. Error cannot be acquitted. Codesys runtime has to restart to clear the error. After restart, it works again.

     
  • eschwellinger

    eschwellinger - 2023-06-28

    this is not a known, which version of csvreader is it?
    Possible that you are using not latest version?

     
  • totorovic - 2023-07-17

    Hello,

    Please, how can I get more informations about the meaning of this error ?

     
  • totorovic - 2023-07-20

    Hello,

    We installed IIoT libraries (and upgrade csv_utility to newest version).
    Now we get error message with licence.

     
  • mozed - 2023-07-20

    same problem here

     

    Last edit: mozed 2023-07-20
  • daniel - 2023-08-15

    Hello, is there already a solution for this problem (invalid handle)? 3 month ago the librarie work without problems...

     
  • totorovic - 2023-08-21

    Actually no solution. We are waiting Codesys reply.

    Latest version of library : licence error message
    Version 1.0.0.5 : INVALID_HANDLE error message

     
  • totorovic - 2023-08-28

    Hello,
    Can we please have some details about the error : INVALID_HANDLE?
    So we can try to avoid it.

     
  • roundex - 2023-08-30

    I got same issue but managed to get it to work again by downgrading the Runtime.
    Here's my specs:
    CODESYS V3.5.19.0
    Runtime Linux SL 4.7.0.0.
    CSV Utility SL 1.1.0.0 (Licensed IIoT libraries SL)

    I tried Runtime 4.8.0.0. and 4.9.0.0 but both result in INVALID_HANDLE error.

     

    Last edit: roundex 2023-08-30
  • eschwellinger

    eschwellinger - 2023-08-30

    this is a security issue not to read/write in the plc allowed path I would recommend to update and change the path in the application were the files are😏

     
    πŸ‘
    1

    Last edit: eschwellinger 2023-08-30
  • roundex - 2023-08-30

    Could you please give me an example where to select new path in plc. Right now my csv files are placed into /home/user/csvfiles

     
  • totorovic - 2023-08-31

    Thank you for the return. The path targets to a CFast card. User has R/W access to it. We will try to change it.

     
  • totorovic - 2023-10-27

    We changed the path where the CSV file is. From intern memory of the IPC to a USB key.
    We still have this error 'INVALID_HANDLE'. We must restart the Codesys runtime to clear it. That is a big problem for us because machine is in production.

    @eschwellinger What do you mean by "this is a security issue not to read/write in the plc allowed path"

     

Log in to post a comment.