Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
76 stars 81 forks source link

Failed to retrieve dynamic on HTTP Action #5945

Open endintiers opened 19 hours ago

endintiers commented 19 hours ago

Describe the Bug with repro steps

  1. Open any of our Workflows
  2. Wait 1 minute
  3. All HTTP Actions that reference our Web API get a warning "Failed to retrieve dynamic i..." (can't read the full message in any way).
  4. After making any change in any action, on Save we get a "Http has a missing inputs property" error and save does not work.

An example action looks like:

{ "type": "Http", "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": { "Parse_Analysis_Message_JSON": [ "Succeeded" ] } }

This happens on both the new and now old designer.

The API is complex (has many methods). The new designer never worked with our API, and now the old designer has stopped working.

We can only make changes in the Code View now.

What type of Logic App Is this happening in?

Standard (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

No response

Screenshots or Videos

Browser

Edge

Additional context

No response

endintiers commented 18 hours ago

Could not add our Workflow code to the issue (failed to save). Including it here.

{ "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "actions": { "Condition_-_Check_the_Document_Type_is_SDX": { "actions": { "Filterarray-_Unearth.SdxFormsAnalyser": { "description": "Check Unearth.SdxFormsAnalyser is presented in the Analysis Message", "inputs": { "from": "@body('Document-GetCorpusAnalyserSettings')", "where": "@equals(item()?['analyserName'], 'Unearth.SdxFormsAnalyser')" }, "runAfter": {}, "type": "Query" }, "Foreach-Unearth.SdxFormsAnalyser": { "actions": { "Condition-_Check_Unearth.SdxFormsAnalyser_is_Enabled": { "actions": { "For_each_Effective_AnalyserSetting-_Run_Unearth.SdxFormsAnalyser": { "actions": { "Analysis-SDXFormAnalyser": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "documentInstanceId": "@body('ParseJSON-_Analysis_Message')?['DocumentInstanceId']", "documentName": "@body('ParseJSON-_Analysis_Message')?['DocumentName']", "operationGuid": "@{guid()}", "sdxFormAnalyserSettingName": "@{items('For_each_Effective_AnalyserSetting-_Run_Unearth.SdxFormsAnalyser')}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/analysis/sdxformanalyser" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Copy_SDX_message_to_poison_queue": { "inputs": { "body": "@triggerBody()?['MessageText']", "host": { "connection": { "referenceName": "azurequeue-nonproddev" } }, "method": "post", "path": "/v2/storageAccounts/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/queues/@{encodeURIComponent('analysis-custom-poison')}/messages" }, "runAfter": { "Send_Analysis-SDXFormAnalyser_Failed_Email": [ "SUCCEEDED" ] }, "type": "ApiConnection" }, "Send_Analysis-SDXFormAnalyser_Failed_Email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Analysis-SDXFormAnalyser\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.

The message responsible for this error has been placed onto the poison queue.


<strong style=\"font-size: 14px;\">Analysis-SDXFormAnalyser Response @{outputs('Analysis-SDXFormAnalyser')['statusCode']}: @{body('Analysis-SDXFormAnalyser')}


<strong style=\"font-size: 14px;\">Queue Message JSON @{body('ParseJSON-_Analysis_Message')}

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Analysis-SDXFormAnalyser Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Analysis-SDXFormAnalyser": [ "FAILED", "TIMEDOUT" ] }, "type": "ApiConnection" } }, "foreach": "@items('Foreach-_Unearth.SdxFormsAnalyser')?['EffectiveAnalyserSettings']", "runAfter": {}, "type": "Foreach" } }, "expression": { "and": [ { "equals": [ "@items('Foreach-_Unearth.SdxFormsAnalyser')?['Enabled']", true ] } ] }, "runAfter": {}, "trackedProperties": {}, "type": "If" } }, "foreach": "@body('Filterarray-_Unearth.SdxFormsAnalyser')", "runAfter": { "Filterarray-_Unearth.SdxFormsAnalyser": [ "Succeeded" ] }, "type": "Foreach" } }, "description": "Check whether the document is SDX type. Only SDXFormsAnalysers will be running for SDX documents.", "else": { "actions": { "Analysis-AIPrompts202": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "operationGuid": "@{guid()}" }, "method": "post", "retryPolicy": { "type": "none" }, "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/analysis/aiprompts" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Filterarray-_BusinessRules": { "inputs": { "from": "@body('Document-GetCorpusAnalyserSettings')", "where": "@equals(item()?['analyserName'], 'BusinessRules')" }, "runAfter": { "Foreach-_Unearth.RegexAnalyser": [ "Succeeded" ] }, "type": "Query" }, "Filterarray-_Language.Custom.NER": { "inputs": { "from": "@body('Document-GetCorpusAnalyserSettings')", "where": "@equals(item()?['analyserName'], 'Language.Custom.NER')" }, "runAfter": { "Analysis-AIPrompts202": [ "Succeeded", "SKIPPED", "TIMEDOUT", "FAILED" ] }, "type": "Query" }, "Filterarray-_Language.Sentiment": { "inputs": { "from": "@body('Document-GetCorpusAnalyserSettings')", "where": "@equals(item()?['analyserName'], 'Language.Sentiment')" }, "runAfter": { "Foreach-_Language.Summarize": [ "Succeeded" ] }, "type": "Query" }, "Filterarray-_Language.Summarize": { "inputs": { "from": "@body('Document-GetCorpusAnalyserSettings')", "where": "@equals(item()?['analyserName'], 'Language.Summarize')" }, "runAfter": { "Foreach-_Language.Custom.NER": [ "Succeeded" ] }, "type": "Query" }, "Filterarray-_Unearth.RegexAnalyser": { "inputs": { "from": "@body('Document-GetCorpusAnalyserSettings')", "where": "@equals(item()?['analyserName'], 'Unearth.RegexAnalyser')" }, "runAfter": { "Foreach-_Language.Sentiment": [ "Succeeded" ] }, "type": "Query" }, "Foreach-BusinessRules": { "actions": { "Condition-_Check_BusinessRules_is_Enabled": { "actions": { "For_each_Effective_AnalyserSetting-_Run_BusinessRules": { "actions": { "Document-ApplyRulesToDocument": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "customVisionSetting": "", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "operationGuid": "@{guid()}", "ruleWorkflow": "@{items('For_each_Effective_AnalyserSetting-_Run_BusinessRules')}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/document/applyrulestodocument" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Send_Document-ApplyRulesToDocument_Failed_Email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Document-ApplyRulesToDocument\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.


<strong style=\"font-size: 14px;\">Document-ApplyRulesToDocument Response\n@{outputs('Document-ApplyRulesToDocument')['statusCode']}: @{body('Document-ApplyRulesToDocument')}\n\n<strong style=\"font-size: 14px;\">Queue Message JSON/strong></b><span>\n</span>@{body('Parse_JSON_-_Analysis_Message')}<span\n

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Document-ApplyRulesToDocument Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Document-ApplyRulesToDocument": [ "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" } }, "foreach": "@items('Foreach-_BusinessRules')?['EffectiveAnalyserSettings']", "runAfter": {}, "type": "Foreach" } }, "expression": { "and": [ { "equals": [ "@items('Foreach-_BusinessRules')?['Enabled']", true ] } ] }, "runAfter": {}, "type": "If" } }, "foreach": "@body('Filterarray-_BusinessRules')", "runAfter": { "Filterarray-_BusinessRules": [ "Succeeded" ] }, "type": "Foreach" }, "Foreach-Language.Custom.NER": { "actions": { "Condition-_Check__Language.Custom.NER_is_Enabled": { "actions": { "For_each_Effective_AnalyserSetting-_Run_Language.Custom.NER": { "actions": { "Analysis-CustomNER202": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "customModelSettingName": "@{items('For_each_Effective_AnalyserSetting-_Run_Language.Custom.NER')}", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "documentInstanceId": "@body('ParseJSON-_Analysis_Message')?['DocumentInstanceId']", "documentName": "@body('ParseJSON-_Analysis_Message')?['DocumentName']", "operationGuid": "@{guid()}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/analysis/customner" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Send_Analysis-CustomNER202_Failed_Email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Analysis-CustomNER202\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.


<strong style=\"font-size: 14px;\">Analysis-CustomNER202 Response/strong></b><span>\n</span>@{body('Analysis-CustomNER202')}:@{body('Analysis-CustomNER202')}<span\n\n<strong style=\"font-size: 14px;\">Queue Message JSON/strong></b><span>\n</span>@{body('Parse_JSON_-_Analysis_Message')}</p", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Analysis-CustomNER202 Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Analysis-CustomNER202": [ "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" } }, "foreach": "@items('Foreach-_Language.Custom.NER')?['EffectiveAnalyserSettings']", "runAfter": {}, "type": "Foreach" } }, "expression": { "and": [ { "equals": [ "@items('Foreach-_Language.Custom.NER')?['Enabled']", true ] } ] }, "runAfter": {}, "type": "If" } }, "foreach": "@body('Filterarray-_Language.Custom.NER')", "runAfter": { "Filterarray-_Language.Custom.NER": [ "Succeeded" ] }, "type": "Foreach" }, "Foreach-Language.Sentiment": { "actions": { "Condition-_Check_Language.Sentiment_is_Enabled": { "actions": { "Analysis-StandardSentiment": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "documentInstanceId": "@body('ParseJSON-_Analysis_Message')?['DocumentInstanceId']", "documentName": "@body('ParseJSON-_Analysis_Message')?['DocumentName']", "operationGuid": "@{guid()}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/analysis/standardsentiment" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Send_Analysis-StandardSentiment_FailedEmail": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Analysis-StandardSentiment\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.


<strong style=\"font-size: 14px;\">Analysis-StandardSentiment Response\n@{outputs('Analysis-StandardSentiment')['statusCode']}: @{body('Analysis-StandardSentiment')}\n\n<strong style=\"font-size: 14px;\">Queue Message JSON/strong></b><span>\n</span>@{body('Parse_JSON_-_Analysis_Message')}<span\n

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Analysis-StandardSentiment Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Analysis-StandardSentiment": [ "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" } }, "expression": { "and": [ { "equals": [ "@items('Foreach-_Language.Sentiment')?['Enabled']", true ] } ] }, "runAfter": {}, "type": "If" } }, "foreach": "@body('Filterarray-_Language.Sentiment')", "runAfter": { "Filterarray-_Language.Sentiment": [ "Succeeded" ] }, "type": "Foreach" }, "Foreach-Language.Summarize": { "actions": { "Condition-_Check_Language.Summarize_is_Enabled": { "actions": { "Analysis-Summarization": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "operationGuid": "@body('ParseJSON-_Analysis_Message')?['OperationGuid']" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/analysis/summarization" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Send_Analysis-Summarization_Failed_Email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Analysis-Summarization\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.


<strong style=\"font-size: 14px;\">Analysis-Summarization Response\n@{outputs('Analysis-Summarization')['statusCode']}: @{body('Analysis-Summarization')}\n\n<strong style=\"font-size: 14px;\">Queue Message JSON/strong></b><span>\n</span>@{body('Parse_JSON_-_Analysis_Message')}<span\n

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Analysis-Summarization Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Analysis-Summarization": [ "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" } }, "expression": { "and": [ { "equals": [ "@items('Foreach-_Language.Summarize')?['Enabled']", true ] } ] }, "runAfter": {}, "type": "If" } }, "foreach": "@body('Filterarray-_Language.Summarize')", "runAfter": { "Filterarray-_Language.Summarize": [ "Succeeded" ] }, "type": "Foreach" }, "Foreach-Unearth.RegexAnalyser": { "actions": { "Condition-_Check_Unearth.RegexAnalyser_is_Enabled": { "actions": { "For_each_Effective_AnalyserSetting-_Run_Unearth.RegexAnalyser": { "actions": { "Analysis-RegexAnalyser": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "documentInstanceId": "@body('ParseJSON-_Analysis_Message')?['DocumentInstanceId']", "documentName": "@body('ParseJSON-_Analysis_Message')?['DocumentName']", "operationGuid": "@{guid()}", "regexAnalyserSettingName": "@{items('For_each_Effective_AnalyserSetting-_Run_Unearth.RegexAnalyser')}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/analysis/regexanalyser" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Send_Analysis-RegexAnalyser_Failed_Email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Analysis-RegexAnalyser\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.


<strong style=\"font-size: 14px;\">Analysis-RegexAnalyser Response\n@{outputs('Analysis-RegexAnalyser')['statusCode']}: @{body('Analysis-RegexAnalyser')}\n\n<strong style=\"font-size: 14px;\">Queue Message JSON/strong></b><span>\n</span>@{body('Parse_JSON_-_Analysis_Message')}<span\n

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Analysis-RegexAnalyser Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Analysis-RegexAnalyser": [ "FAILED", "TIMEDOUT" ] }, "type": "ApiConnection" } }, "foreach": "@items('Foreach-_Unearth.RegexAnalyser')?['EffectiveAnalyserSettings']", "runAfter": {}, "type": "Foreach" } }, "expression": { "and": [ { "equals": [ "@items('Foreach-_Unearth.RegexAnalyser')?['Enabled']", true ] } ] }, "runAfter": {}, "type": "If" } }, "foreach": "@body('Filterarray-_Unearth.RegexAnalyser')", "runAfter": { "Filterarray-_Unearth.RegexAnalyser": [ "Succeeded" ] }, "type": "Foreach" }, "Send_email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"AI Prompt Analyser\" step during the analysis custom workflow in the @{body('ParseJSON-_Analysis_Message')?['EnvironmentName']} environment under the customer name@{body('ParseJSON-_Analysis_Message')?['CustomerName']}. AI Prompt Response : @{body('Analysis-AIPrompts202')} Queue Message JSON: @{body('ParseJSON-_Analysis_Message')}

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: AI Prompt Analyser Failed" }, "importance": "Normal", "recipients": { "to": [ { "address": "support@wildmouse.com.au" } ] }, "senderAddress": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail" } }, "method": "post", "path": "/emails:sendGAVersion", "queries": { "api-version": "2023-03-31" } }, "runAfter": { "Analysis-AIPrompts202": [ "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" } } }, "expression": { "and": [ { "equals": [ "@body('Document-GetDocumentMetadata')?['documentType']", "SDX" ] } ] }, "runAfter": { "Document-GetCorpusAnalyserSettings": [ "Succeeded" ] }, "type": "If" }, "Copy_message_to_poison_queue": { "inputs": { "body": "@triggerBody()?['MessageText']", "host": { "connection": { "referenceName": "azurequeue-nonproddev" } }, "method": "post", "path": "/v2/storageAccounts/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/queues/@{encodeURIComponent('analysis-custom-poison')}/messages" }, "runAfter": { "Send_Document-IndexDocument_Failed_Email": [ "Succeeded", "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" }, "Delete_the_message_from_the_analysis-customqueue(V2)": { "inputs": { "host": { "connection": { "referenceName": "azurequeue-nonproddev" } }, "method": "delete", "path": "/v2/storageAccounts/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/queues/@{encodeURIComponent('analysis-custom')}/messages/@{encodeURIComponent(triggerBody()?['MessageId'])}", "queries": { "popreceipt": "@triggerBody()?['PopReceipt']" } }, "runAfter": { "Copy_message_to_poison_queue": [ "SUCCEEDED", "SKIPPED", "TIMEDOUT", "FAILED" ], "Document-IndexDocument": [ "Succeeded", "SKIPPED" ] }, "type": "ApiConnection" }, "Document-GetCorpusAnalyserSettings": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "analyserSettings": "@body('ParseJSON-_Analysis_Message')?['AnalyserSettings']", "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "operationGuid": "@{guid()}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/document/getcorpusanalysersettings" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": { "Document-GetDocumentMetadata": [ "Succeeded" ] }, "type": "Http" }, "Document-GetDocumentMetadata": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "documentRequestType": "GetBaseInfo", "operationGuid": "@{guid()}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/document/getdocumentmetadata" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": { "ParseJSON-_Analysis_Message": [ "Succeeded" ] }, "type": "Http" }, "Document-IndexDocument": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "operationGuid": "@{guid()}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/document/indexdocument" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": { "Foreach-_SimilarityEngine": [ "Succeeded" ] }, "type": "Http" }, "Filterarray-SimilarityEngine": { "inputs": { "from": "@body('Document-GetCorpusAnalyserSettings')", "where": "@equals(item()?['analyserName'], 'Analysis.SimilarityEngine')" }, "runAfter": { "Condition-_Check_the_Document_Type_is_SDX": [ "Succeeded" ] }, "type": "Query" }, "Foreach-SimilarityEngine": { "actions": { "Condition-_Check_SimilarityEngine_is_Enabled": { "actions": { "For_each_Effective_AnalyserSetting-_Run_SimilarityEngine": { "actions": { "Analysis-SimilarityEngine": { "inputs": { "authentication": { "type": "ManagedServiceIdentity" }, "body": { "correlationGuid": "@body('ParseJSON-_Analysis_Message')?['CorrelationGuid']", "documentGuid": "@body('ParseJSON-_Analysis_Message')?['DocumentGuid']", "documentId": "@body('ParseJSON-_Analysis_Message')?['DocumentId']", "effectiveAnalyserSetting": "@{items('For_each_Effective_AnalyserSetting-_Run_SimilarityEngine')}", "operationGuid": "@{guid()}" }, "method": "post", "uri": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/analysis/similarityengine" }, "metadata": { "apiDefinitionUrl": "https://unearthdev-nonprod-plugins.azurewebsites.net/api/swagger.json", "swaggerSource": "custom" }, "runAfter": {}, "type": "Http" }, "Send_Analysis-SimilarityEngine_Failed_Email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Analysis-SimilarityEngine\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.


<strong style=\"font-size: 14px;\">Analysis-SimilarityEngine Response\n@{outputs('Analysis-SimilarityEngine')['statusCode']}: @{body('Analysis-SimilarityEngine')}\n\n<strong style=\"font-size: 14px;\">Queue Message JSON/strong></b><span>\n</span>@{body('Parse_JSON_-_Analysis_Message')}<span\n

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Analysis-SimilarityEngine Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Analysis-SimilarityEngine": [ "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" } }, "foreach": "@items('Foreach-_SimilarityEngine')?['EffectiveAnalyserSettings']", "runAfter": {}, "type": "Foreach" } }, "expression": { "and": [ { "equals": [ "@items('Foreach-_SimilarityEngine')?['Enabled']", true ] } ] }, "runAfter": {}, "type": "If" } }, "foreach": "@body('Filterarray-_SimilarityEngine')", "runAfter": { "Filterarray-_SimilarityEngine": [ "Succeeded" ] }, "type": "Foreach" }, "ParseJSON-_Analysis_Message": { "inputs": { "content": "@triggerBody()?['MessageText']", "schema": { "properties": { "AnalyserSettings": {}, "CorrelationGuid": { "type": "string" }, "CustomerName": { "type": "string" }, "DocumentGuid": { "type": "string" }, "DocumentId": { "type": "integer" }, "DocumentInstanceId": { "type": "integer" }, "DocumentName": { "type": "string" }, "EnvironmentName": { "type": "string" }, "OperationGuid": { "type": "string" } }, "type": "object" } }, "runAfter": {}, "type": "ParseJson" }, "Send_Document-IndexDocument_Failed_Email": { "inputs": { "body": { "content": { "html": "

An error has occurred with the \"Document-IndexDocument\" during the analysis custom workflow in the '@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}' environment under the customer name '@{body('ParseJSON-_Analysis_Message')?['CustomerName']}'.


<strong style=\"font-size: 14px;\">Document-IndexDocument Response\n@{outputs('Document-IndexDocument')['statusCode']}: @{body('Document-IndexDocument')}\n\n<strong style=\"font-size: 14px;\">Queue Message JSON/strong></b><span>\n</span>@{body('Parse_JSON_-_Analysis_Message')}<span\n

", "subject": "@{body('ParseJSON-_Analysis_Message')?['EnvironmentName']}: Document-IndexDocument Failed" }, "importance": "normal", "recipients": { "to": [ { "email": "support@wildmouse.com.au" } ] }, "sender": "DoNotReply@wildmouse.com" }, "host": { "connection": { "referenceName": "acsemail-nonprod" } }, "method": "post", "path": "/emails:send", "queries": { "api-version": "2021-10-01-preview" } }, "runAfter": { "Document-IndexDocument": [ "TIMEDOUT", "FAILED" ] }, "type": "ApiConnection" } }, "contentVersion": "1.0.0.0", "outputs": {}, "triggers": { "When_there_are_messages_in_the_analysis-customqueue(V2)": { "description": "When a message is received in analysis-custom queue", "inputs": { "host": { "connection": { "referenceName": "azurequeue-nonproddev" } }, "method": "get", "path": "/v2/storageAccounts/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/queues/@{encodeURIComponent('analysis-custom')}/message_trigger", "queries": { "visibilitytimeout": "14400" }, "retryPolicy": { "type": "none" } }, "recurrence": { "frequency": "Minute", "interval": 5 }, "runtimeConfiguration": { "concurrency": { "runs": 4 } }, "splitOn": "@triggerBody()?['QueueMessagesList']?['QueueMessage']", "type": "ApiConnection" } } }, "kind": "Stateful" }

endintiers commented 18 hours ago

Image Image

endintiers commented 18 hours ago

Image