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: 
INESBK
Creator
Creator

how to execute a python script file with an argument using tSystem

Hello, 

i created this job tFileList------->tSystem------------>tExtractDelimetedFields

in order to iterates on files and folders with tFileList, get ((String)globalMap.get("tFileList_1__CURRENT_FILEPATH")) as result and use this result in tSytem as argument to my script Python.

rq : my script python  allow me to read DBF file.

I used this command : "python \"liredbf.py" + ((String)globalMap.get("tFileList_1__CURRENT_FILEPATH")) but i got this error 

python: can't open file 'liredbf.py null': [Errno 2] No such file or directory 

How can i get the result of tFileList to use it as argument for my Script Python.

 

Thank you in advance
cordially.

Labels (3)
13 Replies
INESBK
Creator
Creator
Author

It is true, that's the error thank you very much 0683p000009MACn.png

Now my job can read the file but it read only one ! 

I don't now why !

0683p000009Lu7J.png

vapukov
Master II
Master II

it just wrong screen picture

because

left - number of iterations
right - number of files in current iteration 🙂 and it always 1

INESBK
Creator
Creator
Author

Ah ok 0683p000009MACn.png

Thank you very much for your help.

It works.

vapukov
Master II
Master II

Welcome 🙂