Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function called from a load script

Hi,

In my load script , I am calling a function that starts with the following.

--------------------

Set fso=CreateObject("Scripting.FileSystemObject")
If Err.Number <> 0 then
GetEnv="ERROR: Testfile, unable to create FileSystemObject"
Err.Clear

---------------------

If I run that script from my local client , it works perfectly.

If I use a bat file to load that qvw (here is the line of the bat file

"c:\Program Files\QlikView\QV.exe" /r /vConfigurationFile='C:\xxxxxx\Config\Lexo-properties' C:\Qlikview\piloteInventaire.qvw

, it fails with the following message:

ERROR: Testfile, unable to create FileSystemObject

Can someone has an idea what could be the problem.

Thanks

Philippe

1 Solution

Accepted Solutions
Not applicable
Author

Finally , it works...

You have to use the line written in the .bat file directly in the cmd windows.

Then , everything works.

If anybody has an idea how that can happen, I would be really interested.

Philippe

View solution in original post

1 Reply
Not applicable
Author

Finally , it works...

You have to use the line written in the .bat file directly in the cmd windows.

Then , everything works.

If anybody has an idea how that can happen, I would be really interested.

Philippe