Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


osirisja
2014-11-18T12:30:52Z
Hi Henrik (and everyone)

I am processing multiple XML's in a VC Loop, and am using the 'Read Node' task to validate the XML as we occasionaly have entity errors (i.e. '&' in the data that hasn't been escaped). What I wanted to do was move any invalid files into a 'trash' folder so I could report on them later (although for now I am just renaming them) but I can't get my head around what is going on with the FLOW command as it isn't doing what I wanted.

It is Renaming only one file, but I know there are three files with the same problem (contain unescaped '&') so it seems the Rename task isn't being called for all the files.

I have tried READ NODE on individual files, and it certainly flags invalid XML files, so I know that does what I want it to do.

Screenshot 1 shows the Job structure. Screenshot 2 shows the FLOW for the READ NODE task. How can I only execute the 'Rename' task IF the READ NODE task fails?

Am I misunderstanding the purpose of FLOW and the way it works, or can anyone suggest a 'better' way of doing this?

Cheers

Andy
osirisja attached the following image(s):
Sponsor
Forum information
Support
2014-11-21T23:49:13Z
Originally Posted by: osirisja 

Hi Henrik (and everyone)

I am processing multiple XML's in a VC Loop, and am using the 'Read Node' task to validate the XML as we occasionaly have entity errors (i.e. '&' in the data that hasn't been escaped). What I wanted to do was move any invalid files into a 'trash' folder so I could report on them later (although for now I am just renaming them) but I can't get my head around what is going on with the FLOW command as it isn't doing what I wanted.

It is Renaming only one file, but I know there are three files with the same problem (contain unescaped '&') so it seems the Rename task isn't being called for all the files.

I have tried READ NODE on individual files, and it certainly flags invalid XML files, so I know that does what I want it to do.

Screenshot 1 shows the Job structure. Screenshot 2 shows the FLOW for the READ NODE task. How can I only execute the 'Rename' task IF the READ NODE task fails?

Am I misunderstanding the purpose of FLOW and the way it works, or can anyone suggest a 'better' way of doing this?

Cheers

Andy



How does the read node fail? And why is the rename files not in the loop? Would it not be easier then?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top