Skip to main content
Participating Frequently
Apr 18, 2022 11:40 AM UTC
Question

Error Converting XML to CDT using torecord() function.

I am getting the below-mentioned error while converting xml to cdt using torecord() function. 

Does any one know what is the root cause of this error ?? or Let me know alternatives of converting XML to CDT ?

Thanks

6 replies

Inspiring
Apr 18, 2022 1:31 PM UTC

Hi Akash,

I am not quit sure about the logic that you are using. Please see this documentation this might help to fix your issue. https://docs.appian.com/suite/help/22.1/fnc_scripting_torecord.html

Participating Frequently
Apr 18, 2022 1:34 PM UTC

Hi Naresh, 

Thanks for your reply.  But I have followed the same torecord( xml, type ).

peter.lewis
Employee
Apr 18, 2022 4:55 PM UTC

Is SearchInquiryResponse the name of your CDT that you're trying to convert to? Also are there any special characters in the value you're trying to convert?

I'd suggest trying to remove parts of your XML until you get to a state that works - there's probably a certain tag or structure that is incorrect and it may take some trial and error to find which one is the culprit.