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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
jorditorras
Creator
Creator

Error Automatic Distibution Task but not Manual Task

Dear Gurus, 

I have some problems with one automatic data loading process that is extractig data from SAP BW Infocubes. Everytime it's triggered automatically (after planning a daily load) I get the following error: 

Error: The name 'minDIMID' already exists.

However if I trigger it manually the result is OK. 

Any idea about why I can load data manually in the QMC but not automatically? 

Thanks for your help.

Jordi

Labels (1)
1 Reply
diegozecchini
Specialist
Specialist

Hi!
Qlik variables can persist across reloads if they are not cleared explicitly in the script. If minDIMID is defined in your script, it might be causing a conflict in the automatic load because the variable could already exist from a previous session or task execution.

Try adding a line to drop or reset minDIMID at the start of your script to ensure it doesn’t persist unexpectedly:

SET minDIMID = Null();

Manual tasks often run with the full Qlik session environment loaded, whereas scheduled tasks might execute in a more constrained context, potentially leading to variables or fields not being initialized as expected.
Try running the script in debug mode with a simulated scheduled task environment to catch any potential discrepancies. Also, if minDIMID is a calculated field, ensure all dependencies for its calculation are loaded and defined before its assignment.

Qlik’s automated loads may handle errors differently than manual ones, especially if there’s an "on error" handling configuration that’s stopping or altering the script flow in automatic mode.