DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot open TDMS file via script, but I can manually with data portal

Hello,

 

I am trying to open a TDMS file via script:

 

' Clear the data portal and load the data
Call Data.Root.Clear()
Call DataFileLoad(file_path,"TDMS", "Load")
Call LogfileWrite("TDMS data file loaded: " & file_path)

 

I get the following error:

22   11:18:19 Error:
     Cannot load the file "\\XXXXXX\fti_20241106104514_pp.tdms" with the loader "TDMS". 
         
     Further information:
     Cannot open the file  "\\XXXXXX\fti_20241106104514_pp.tdms".

 

 

Also, a .tdms.log file is created, with the following info:

***************** New logfile section *******************
TDMS: ERROR: TDS Exception in Initialize: Tds Error: TdsErrAccessDenied(8):

 

The funny thing is: if I drag and drop the EXACT same file in the data protal, it works just fine.

 

So why do I get an access denied error when opening the file via DataFileLoad, but not with a drag and drop in the dataportal?

 

Thank you,

Jacques

 

0 Kudos
Message 1 of 2
(111 Views)

Are your sure that the file referred to in file_path is the same as the one you load manually?

 

Did you try to record a script when loading the file manually? If you run this file, does it work?

 

And as always: sharing the file could be helpful.

DIAdem experience since 1996

Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 2 of 2
(76 Views)