Logic Apps Workflow Validation failed errors while trying to save my changes

Satheesh K 45 Reputation points
2023-06-22T20:17:35.56+00:00

Hi,

I have a logic app workflow that was working fine. Recently I wanted to make a change to the dynamic expression, save it to invoke from a pipeline. Then I get this below error upon clicking the Save button.

User's image

The workflow is a simple workflow that has HTTP trigger, reads list of file names/paths passed through a pipeline, reads then by connecting to storage account and sends in an email.

User's image

Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} votes

Answer accepted by question author
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2023-06-26T04:35:32.0333333+00:00

    @Satheesh K Thanks for reaching out.

    To resolve the issue, I will suggest you to go to the designer of your logic app and click on Change connection and add the connection details again.

    As per the error looks like from the code view the host property was removed from your Get blob content (V2) action input property or the issue with the $connection parameter (removed or deleted value) which would cause this issue.

          {
      "actions": {
                "Get_blob_content_(V2)": {
                    "inputs": {
                        "host": {
                            "connection": {
                                "name": "@parameters('$connections')['azureblob_1']['connectionId']"
                            }
                        },
                        "method": "get",
                        "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('{content}'))}/content",
                        "queries": {
                            "inferContentType": true
                        }
                    },
                    "metadata": {
                        "{metadata}": "/{container}/{file name with extension}"
                    },
                    "runAfter": {},
                    "type": "ApiConnection"
                }
            },
           
        },
        "parameters": {
            "$connections": {
                "value": {
                    "azureblob_1": {
                        "connectionId": "/subscriptions/{subscriptionID}/resourceGroups/{resourcegroup}/providers/Microsoft.Web/connections/azureblob-7",
                        "connectionName": "azureblob-7",
                        "id": "/subscriptions/{subscriptionID}/providers/Microsoft.Web/locations/{region}/managedApis/azureblob"
                    }
                }
            }
        }
    }
    

    Feel free to get back to me if you need any assistance.

    Update:

    Thanks for your offline discussion. The issue was observed with the preview designer view which was causing this behavior. We switch back to the old designer view to resolve the issue. I will repro the behavior and will raise the issue internally with my team.

    We further reviewed the workflow and fixed your append array value to get all blob content from multiple blobs and attach them as attachments while sending the email.

    Code View:

    {  
      "ContentBytes": "@{body('Get_blob_content_(V2)_2')?['$content']}",  
      "Name": "@{items('For_each')?['Name']}"  
    }  
    

    After the above changes the issue was resolved and you have tested the same at your end.

    We further discuss deploying the ARM template with system assigned identity and suggested you to review the document here. In case if you need any assistance with managed identity using ARM template feel free to engage us on a new QnA thread.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.