06-18-2018 11:12 PM
I have XML generated in Previous snaps with all required SOAP headers and stored as a string(let say $xml). I am passing this to SOAP execute in Customize Envelope as $xml. I am getting error as below
Failure: Unexpected character ‘&’ (code 38) in prolog; expected ‘<’ at [row,col {unknown-source}]: [1,1], Reason: Snap failed unexpectedly and did not provide any reason
Please check and let me know if I am doing something wrong.
Thanks in Advance…!!
06-19-2018 09:41 PM
Figured it out…
Used #evaluate($xml) in Customize Envelope
10-05-2021 12:28 AM
Hi Sandeep where did you configured #evaluate($xml) in XML ?? Could you tell me ?
I am receiving unexpected character ‘d’ as well
10-05-2021 05:13 PM
Hi @deepanshu.1
Our SOAP Customize Envelope editor accepts Velocity template commands. #evaluate
is a directive. You can use variables too. The snap bundles with Apache Velocity v1.7. Here’s a link to their user guide plus another link to some SnapLogic documentation about it.
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438085/Apache+Templates+in+Snaps
There are other community posts about velocity which you can search. If you
give some more specifics about your error, we may be able to help here too. 🙂
10-05-2021 11:45 PM
Hi @mbowen below is the error i am getting but when i configured the xml in xml generator and validator its not giving me any error: