XML Deserialization Error

XML Deserialization Error

Comments

  • Hello,

    Ive created an XML structure, Im trying to deserialized the XML response but Im receiving this error. Any help is much appreciated.

    "System.InvalidOperationException: There is an error in XML document (1, 2). ---> System.InvalidOperationException: was not expected. at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader_IRS_Form_1040.Read34__IRS_Form_1040() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at DecisionsFramework.Design.Flow.CoreSteps.XML.XMLDeserializeStep.Run(StepStartData data)"

    Thanks

  • Hi,

    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]In order to deserialize your XML response, you have to use string input type. When I try to pass an object type to Deserialize Step I got the same error message. [/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]So, please check input to your Deserialize Step. If it is not in string format change it to correct format. See screenshot below.[/font][/color]

    [color=#222222]Regards,
    [/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color][img]att2[/img]

    [img]att1[/img]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [i]edited by kenan@decisions.com on 3/12/2019[/i]

Sign In or Register to comment.