Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error load xml without header o with zeros

Hi guys,

I have a problem with a development because i has files xml emptys and with zeros:

pag1.jpg

and i'm not sure how to avoid reading these files. I tried with errormode and ScriptError, filesize, but nothing this is my code:

code1.png

Thanks so much,

1 Solution

Accepted Solutions
Gysbert_Wassenaar

There's a good video about error trapping here: Error Trap | qlikcentral. Perhaps that will show you how to catch any errors, skip the 'bad' xmls files and continue processing the rest.

And you should probably kick somebody upstairs that causing these bad xml files to end up in your source file directory.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

There's a good video about error trapping here: Error Trap | qlikcentral. Perhaps that will show you how to catch any errors, skip the 'bad' xmls files and continue processing the rest.

And you should probably kick somebody upstairs that causing these bad xml files to end up in your source file directory.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

Served me much help the video.

Thank you very much.