Question

Hari Krishna Poluru on Thu, 01 Sep 2016 15:12:56


Hi ,

I am unable to edit or save and see code view in logic app designer. I have rested flow twice and after that I tried to edit the flow but its not allowing. Am I doing in right way? and pls suggest . Thanks




Sponsored



Replies

Joe Chung [MSFT] on Fri, 02 Sep 2016 00:15:26


Hello,

Are there any errors logged to the console when you experience this issue?

Joe Chung

Hari Krishna Poluru on Fri, 02 Sep 2016 09:51:19


Hi Joe,

There is no errors logged.

Thanks

Hari

Tushar J on Fri, 02 Sep 2016 17:10:05


Please share the code view of this logic app. It will help us understand the issue.

WSilveiraNZ [MVP] on Fri, 02 Sep 2016 20:55:42


Hi Hari,

Is the saved logic app valid? E.g. can it be executed safely?

One thing that helped me in the past was to clear the browser cache, then refresh the page.

If you are able to access code view, but have the designer view disabled, it can be related to a bug on the designer where action names are case sensitive. For example, if you have an action is called "My_Action" but you used the outputs of that in a different case - e.g. body('My_action')['somevalue'], then you will be able to access the code view (and the logic app will run successfully), but you can't access the designer.

If you don't have access to the code view, you can still get the code of the logic app by going to your clicking in the automation script. It will generate an ARM template, which you can use to look into the code for that specific logic app.

I hope this helps, Wagner.

Hari Krishna Poluru on Mon, 05 Sep 2016 15:57:30


Hi, 

Thanks Wagner,

I have run the app successfully couple of times. after that i want to change the message flow during that time i can able add conditions and actions but not able to save it. I can able access the code view also. Below is my code 

{
  "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
  "actions": {
    "Create_file_Logging": {
      "type": "ApiConnection",
      "inputs": {
        "host": {
          "api": {
            "runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/azureblob"
          },
          "connection": {
            "name": "@parameters('$connections')['azureblob']['connectionId']"
          }
        },
        "method": "post",
        "queries": {
          "folderPath": "/rcvmsgblob",
          "name": "*Id.xml"
        },
        "body": "@triggerBody()",
        "path": "/datasets/default/files"
      },
      "runAfter": {}
    },
    "RcvXmlValidate": {
      "type": "Http",
      "inputs": {
        "method": "post",
        "body": {
          "InputXml": "@{triggerBody()}"
        },
        "uri": "https://xmlvalidatoraadexxxxxxxxxxxx.azurewebsites.net:443/api/Validate"
      },
      "runAfter": {
        "Create_file_Logging": [
          "Succeeded"
        ]
      },
      "metadata": {
        "apiDefinitionUrl": "https://xmlvalidatoraadxxxxxxxxxxxxx.azurewebsites.net/swagger/docs/1.0",
        "swaggerSource": "custom"
      }
    },
    "Condition": {
      "type": "If",
      "expression": "@equals(body('RcvXmlValidate')?['Result'], '\"true\"')",
      "actions": {
        "Transform": {
          "type": "Http",
          "inputs": {
            "method": "post",
            "body": {
              "InputXml": null
            },
            "uri": "https://transformservicexxxxxxxxxx9.azurewebsites.net:443/api/Transform"
          },
          "runAfter": {},
          "metadata": {
            "apiDefinitionUrl": "https://transformservicexxxxxfcxxxxxx9.azurewebsites.net/swagger/docs/1.0",
            "swaggerSource": "custom"
          }
        },
        "Send_message": {
          "type": "ApiConnection",
          "inputs": {
            "host": {
              "api": {
                "runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/servicebus"
              },
              "connection": {
                "name": "@parameters('$connections')['servicebus_1']['connectionId']"
              }
            },
            "method": "post",
            "body": {
              "ContentData": "@{encodeBase64(body('Transform')['OutputXml'])}"
            },
            "path": "/@{encodeURIComponent('transformedmsgs')}/messages"
          },
          "runAfter": {
            "Transform": [
              "Succeeded"
            ]
          }
        }
      },
      "runAfter": {
        "RcvXmlValidate": [
          "Succeeded"
        ]
      },
      "else": {
        "actions": {
          "Send_valiadtion_failed_msgs": {
            "type": "ApiConnection",
            "inputs": {
              "host": {
                "api": {
                  "runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/servicebus"
                },
                "connection": {
                  "name": "@parameters('$connections')['servicebus_2']['connectionId']"
                }
              },
              "method": "post",
              "body": {
                "ContentData": "@{encodeBase64(concat(body('RcvXmlValidate')?['Result'],body('RcvXmlValidate')?['ErrorDescription'],triggerBody()))}"
              },
              "path": "/@{encodeURIComponent('outputqueue')}/messages"
            },
            "runAfter": {}
          }
        }
      }
    }
  },
  "parameters": {
    "$connections": {
      "defaultValue": {},
      "type": "Object"
    }
  },
  "triggers": {
    "manual": {
      "type": "Request",
      "kind": "Http",
      "inputs": {
        "schema": {}
      }
    }
  },
  "contentVersion": "1.0.0.0",
  "outputs": {}
}

Thanks

HariKrishna

Joe Chung [MSFT] on Thu, 15 Sep 2016 23:33:22


Hello again,

Sorry about the delay in response.  We recently pushed a fix to the Logic Apps designer to address not being able to save or discard after adding and then removing an HTTP+Swagger card.  This fix may also have addressed your issue.  Are you still experiencing this?

Joe