cancel
Showing results for 
Search instead for 
Did you mean: 

Get Batch Metadata throws exception - error in XML document

KalashSharma
Level 4
Hi All,

My robot submits the batch to Decipher after setting some metadata. After verification, it reads the metadata along with Decipher output to create the queue item. It was working fine for a long time but today It (Decipher>Get Batch Metadata) gave an exception of a couple of batches.
"Could not execute code stage because exception thrown by code stage Unable to get batch metadata: There is an error in XML document (9, 3093)

If I read the corresponding metadata using the SQL and parse it using the (Utility Strings>Get XML elements) It works fine without error.
8949.png
What could be causing the 'Get Batch Metadata' to give this error?

------------------------------
Kalash Sharma
IA Consultant
Europe/London
------------------------------
4 REPLIES 4

Ben.Lyons1
Staff
Staff
Hi Kalash,

I can't say that I've seen this error before, I recommend raising a support ticket so we can investigate.

Thanks

------------------------------
Ben Lyons
Senior Product Specialist - Decipher
Blue Prism
UK based
------------------------------
Ben Lyons
Principal Product Specialist - Decipher
SS&C Blue Prism
UK based

Hi,

Did you find a resolution for this issue? We've experienced it twice in the last week after months of running without a problem.

Thanks



------------------------------
Dan Lister
Developer
Arvato
Europe/London
------------------------------

Hi Dan,

From memory, this Decipher action was struggling to parse the XML when a letter combination &#' was present as data output. When GetBatchMetadata is executed and it tries to make sure the output is a valid XML as the very last step, and it consequently fails on reading the '&#' as it distorts the XML output.

The solution is to make sure you replace ''&# with "" while using 'Add batch metadata' and it will start to work fine.

Hope I was able to help.



------------------------------
Kalash Sharma
IA Consultant
Europe/London
------------------------------

Thank you for the quick reply. 

We will try this and keep our fingers crossed.

Thanks



------------------------------
Dan Lister
Developer
Arvato
Europe/London
------------------------------