The workflow with 'Response' action type should not have triggers with 'splitOn' property

While working on a POC about Debatching in Logic Apps using SplitOn,  I was encountered with an below error when tried to add Response action in the workflow

                           SplitOn property error



"Failed to save logic app DebatchXMLUsingSplitON. The workflow with
'Response' action type should not have triggers with 'splitOn' property
defined: 'manual'."


Why it happened


As I had to debatch an xml message, following xpath expression was provided to splitOn property


xpath(xml(triggerBody()),'//*[local-name()="PurchaseOrder" and namespace-uri()
="http://www.adventure-works.com"]')

So this property will make logic app to instantiate equivalent number of the instances
as that of number of splitted message.

Say, a batched message with 3 messages in it is posted to this Logic App, then 3 instances
of logic app gets created.

And this is the reason, why designer stops us when we try to add Response action -
because incoming HTTPS requests state is no more preserved(connection gets closed), as new instances gets
created thus ending the session.

What to do


Remove the Response action and save it :)






ServerLess360


Comments

Popular posts from this blog

Getting Started with Logic Apps - XML to EDI X12

Operation on target Copy data failed: Failure happened on 'Source' side

The request has both SAS authentication scheme and 'Bearer' authorization scheme. Only one scheme should be used