Logic App Consumption deployment error: The value for the template parameter ‘arm_sap_sncPse’ is not provided

Welcome back to another to one of my favorite topics: Errors and Warnings, Causes, and Solutions. This time on Azure Integration Services.

Inside Logic App Consumption, when connecting SAP using the SAP Connector, you may get the following error while trying to deploy for the first time your Logic Apps into Azure:

22:32:12 – New-AzResourceGroupDeployment : 10:32:12 PM – Error: Code=InvalidTemplate; Message=Deployment template validation
22:32:12 – failed: ‘The value for the template parameter ‘arm_sap_sncPse’ at line ‘280’ and column ’27’ is not provided.

Cause

The leading cause of this issue is quite apparent. You are using a parameter arm_sap_sncPse to define the SAP connector, but you didn’t provide a value for it.

But the main question we need to ask is: Why is this happening if we create the connector and set all the necessary configurations through and in the Logic App designer?

The reason and the actual cause of this problem is that, regardless of whether you are creating this inside the Logic App editor (in Visual Studio), by default, it will add to the ARM template all the settings pointing to an ARM template parameter with no default value if not used in the configurations of the SAP Connector.

That is the case of the sncPse property, which, if my memory is correct, is about the SAP Secure Network Communication (SNC) Encryption configuration.

The picture above is just a sample. There may be more properties missing there, but one of them, as you can see, is the:

  • “sncPse”: “[parameters(‘arm_sap_sncPse’)]”

And the sncPse ARM template parameter – ‘arm_sap_sncPse’ – normally will be set us:

"arm_sap_sncPse": {
      "type": "string",
      "defaultValue": "",
      "metadata": {
        "description": "..."
      }
    }

Solution

The solution is quite simple, and you only have two options on the table:

First option: If you need to use the sncPse parameter

If you need to use the sncPse parameter to access and connect to your Logic App, then you need to specify a default value. You can do that:

  • On the ARM template file – LogicApp.json
  • Or in the parameter file LogicApp.parameters.json

Second option: You don’t need that configuration

Suppose you don’t need that configuration, which is probably the most common thing that happens. In that case, you need to delete that property from the SAP Connection configuration inside the ARM Template, as you can see in the picture below:

Optional, you can and should also delete the sncPse ARM template parameter – ‘arm_sap_sncPse’ from the LogicApp.json file.

I hope you find this helpful! If you liked the content or found it helpful and want to help me write more content, you can buy (or help buy) my son a Star Wars Lego! 

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