{tocify} $title={Table of Contents}
I had to pass input to Transform XML action i.e. the Body which is received after Flat File Decoding, what I was trying to do is - use Body from previous step in Transform XML and I happened to choose the Body parameter from XML Validation action.
Off-course the Body (Output of XML Validation) will not have the Flat File content, in-fact there is no output. If file is valid, step gets passed else fails.
Correct Body has to be provided, which conforms to the source schema used in the Map which is executed in the Transform_XML action i.e. the body from the Flat File Decoding stage.
Problem
Upon triggering a logic app which is intended to transform a flat file into xml, saw an error in Logic App run on Transform XML action
Why it happened
I had to pass input to Transform XML action i.e. the Body which is received after Flat File Decoding, what I was trying to do is - use Body from previous step in Transform XML and I happened to choose the Body parameter from XML Validation action.
Off-course the Body (Output of XML Validation) will not have the Flat File content, in-fact there is no output. If file is valid, step gets passed else fails.
What to do
Correct Body has to be provided, which conforms to the source schema used in the Map which is executed in the Transform_XML action i.e. the body from the Flat File Decoding stage.
If you have questions or suggestions, feel free to do in comments section below !!!
Do share if you find this helpful .......
Knowledge Sharing is Caring !!!!!!
Learn More about some more Logic App errors
- The request has both SAS authentication scheme and 'Bearer' authorization scheme. Only one scheme should be used
- Selected file must be between 1 and 2097152 bytes
- SplitOn property doesn't validate expression at design time
- The workflow with 'Response' action type should not have triggers with 'splitOn' property
- The template language function 'xpath' expects its first parameter to be an XML object
- The template language expression 'xxx' cannot be evaluated because property 'xxx' doesn't exist. Property selection is not supported on content of type 'application/xml'
Tags:
Azure Logic App Error