Friday Fact: Visual Studio 2019 successfully deployed Logic App Consumption with invalid JSON payloads inside Compose actions

If your organization uses Logic Apps Consumption for some of its enterprise integration scenarios, developing them inside Visual Studio 2019 is mandatory. There is no other way to apply proper CI/CD and source control to Logic Apps Consumption.

Although we basically have a browser embedded in Visual Studio to be able to access the Logic App Designer, the Logic App Designer within Visual Studio 2019 has some different behaviors than in the Azure Portal. One of these different behaviors is the fact we will reference here today.

If we are constructing a JSON payload inside a Compose action, notice that the Compose action inside Visual Studio sometimes doesn’t validate if the JSON payload is valid or not!

Notice that on the picture above is missing a comma between param1 and param2.

Worse, even if it validates and presents the error message in the editor, it will allow you to save and deploy the Logic app successfully with this error, but it will fail when we try to execute it.

This is the opposite of what happens inside Logic App Designer in the Azure Portal. Although it sometimes takes a little time to validate and present the valid JSON error message, you will not be able to save it if that payload is invalid.

This behavior is clearly a bug within the Visual Studio Logic App extension that I hope Microsoft will fix in the future since it may cause several problems in our processes, becoming a tedious and time-consuming task for analyzing the issues and their corrections.

To lazy to read? We’ve got you covered! Check out our video version of this content!

Hope you find this helpful! If you enjoyed the content or found it useful and wish to support our efforts to create more, you can contribute towards purchasing a Star Wars Lego for my son!

Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *

turbo360

Back to Top