01-17-2025 04:19 AM
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
01-23-2025 07:55 AM
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.