Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
in my load script we are pulling data from many connections,
one of the connections is REST API.
but when the RESP API get error 400,500 etc.. the script fails.
1. how can i make the script continue even if the API failed?
2. or better is there error handling i can do? like try and catch?
You can use ErrorMode; you could set it to 0 before that specific load and back to 1 after
Argument Description
ErrorMode=1 | The default setting. The script execution will halt and the user will be prompted for action (non-batch mode). |
ErrorMode =0 | Qlik Sense will simply ignore the failure and continue script execution at the next script statement. |
ErrorMode =2 | Qlik Sense will trigger an "Execution of script failed..." error message immediately on failure, without prompting the user for action beforehand. |
You can use ErrorMode; you could set it to 0 before that specific load and back to 1 after
Argument Description
ErrorMode=1 | The default setting. The script execution will halt and the user will be prompted for action (non-batch mode). |
ErrorMode =0 | Qlik Sense will simply ignore the failure and continue script execution at the next script statement. |
ErrorMode =2 | Qlik Sense will trigger an "Execution of script failed..." error message immediately on failure, without prompting the user for action beforehand. |
thx!
i see it lets me continue,
do you know a way also to catch the specific error that i get?