Azure / Azure/LogicAppsUX

ActionFailed Not Displaying Nested Actions in ForEach Loop

Open
#8,042 0 comments 0 reactions 0 assignees View on GitHub
bug Monitoring
Dominant language
TypeScript
Stars
111
Forks
109
Avg merge
1d 23h
Merged PRs (30d)
20

Description

### Severity

P1 - Critical (Blocking production)

### Describe the Bug with repro steps

**Expected behavior:**
When looking at a previous run I should be able to expand a foreach and see all the nested actions.

**Actual behavior:**
Actions are not shown even when we click Expand or Expand All:

Image

This means that we are not able to see why certain flows are failing:

Image

**Steps to reproduce:**

### What type of Logic App Is this happening in?

Consumption (Portal)

### Are you experiencing a regression?

Worked in the previous Consumption designer. Stopped working in the newer designer.

### Which operating system are you using?

Windows

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

Yes

### Workflow JSON

```json
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"triggers": {
"Recurrence": {
"type": "Recurrence",
"recurrence": {
"frequency": "Hour",
"interval": 3
}
}
},
"actions": {
"FilterPipeline": {
"type": "Query",
"inputs": {
"from": "@body('Parse_JSON')",
"where": "@equals(item()?['fields']?['Fields.CX.APPX.AUPLOAD.CLOSED'], '')"
},
"runAfter": {
"Parse_JSON": [
"Succeeded"
]
}
},
"For_each": {
"type": "Foreach",
"foreach": "@body('FilterPipeline')",
"actions": {
"ATST_Log_Error_1": {
"type": "Http",
"inputs": {
"uri": "https://func-REDACTED-Prod-atst.azurewebsites.net/api/REDACTED",
"method": "POST",
"headers": {
"Api-Version": "2.0"
},
"body": {
"ApplicationName": "Encompass",
"Data": "{\"loanGuid\": \"@{items('For_each')['loanGuid']}\",\"reason\": \"Too many attachments\"}",
"DataSchemaVersion": 1.1,
"FunctionName": "HomeEquityQueue",
"Hostname": "Azure",
"InstanceID": null,
"LogStreams": [
"Log"
],
"LogType": "Error",
"ProcessName": "DocumentDownloandtoAX",
"UserID": ""
}
},
"runAfter": {
"StartExportLoanAttachments": [
"TimedOut",
"Skipped",
"Failed"
]
}
},
"ATST_Log_Error_2": {
"type": "Http",
"inputs": {
"uri": "https://func-REDACTED-Prod-atst.azurewebsites.net/api/REDACTED",
"method": "POST",
"headers": {
"Api-Version": "2.0"
},
"body": {
"ApplicationName": "Encompass",
"Data": "{\"loanGuid\": \"@{items('For_each')['loanGuid']}\",\"reason\": \"Malformed attachments\"}",
"DataSchemaVersion": 1.1,
"FunctionName": "HomeEquityQueue",
"Hostname": "Azure",
"InstanceID": null,
"LogStreams": [
"Log"
],
"LogType": "Error",
"ProcessName": "DocumentDownloandtoAX",
"UserID": ""
}
},
"runAfter": {
"Until": [
"TimedOut",
"Failed"
]
}
},
"ATST_Log_Error_3": {
"type": "Http",
"inputs": {
"uri": "https://func-REDACTED-Prod-atst.azurewebsites.net/api/REDACTED",
"method": "POST",
"headers": {
"Api-Version": "2.0"
},
"body": {
"ApplicationName": "Encompass",
"Data": "{\"loanGuid\": \"@{items('For_each')['loanGuid']}\",\"reason\": \"Loan Locked\"}",
"DataSchemaVersion": 1.1,
"FunctionName": "AdverseQueue",
"Hostname": "Azure",
"InstanceID": null,
"LogStreams": [
"Log"
],
"LogType": "Error",
"ProcessName": "DocumentDownloandtoAX",
"UserID": ""
}
},
"runAfter": {
"Delete_CSV_File": [
"Succeeded"
]
}
},
"CreateCsvData": {
"type": "Compose",
"inputs": "@{items('For_each')?['fields']?['Fields.REDACTED']},@{body('ParseJSONCsvData')?['SSN']},@{body('ParseLoanId')?[0]?['value']},@{convertFromUtc(body('ParseJSONCsvData')?['Date'], 'Mountain Standard Time','MM/dd/yyyy')},@{outputs('GetDocType')},,REDACTED@{if(equals(first(parameters('Environment_Tag')), 'P' ),'EncompassHomeEquity','EncompassDev')}\\@{items('For_each')['loanGuid']}.pdf",
"runAfter": {
"GetDocType": [
"Succeeded"
]
}
},
"CreateCsvIndexFile": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['filesystem']['connectionId']"
}
},
"method": "post",
"body": "@outputs('CreateCsvData')",
"headers": {
"ReadFileMetadataFromServer": true
},
"path": "/datasets/default/files",
"queries": {
"folderPath": "C:\\CloudFiles\\EncompassHomeEquity",
"name": "@{items('For_each')['loanGuid']}_index.csv",
"queryParametersSingleEncoded": true
}
},
"runAfter": {
"CreateCsvData": [
"Succeeded"
]
}
},
"CreateTrackingItem": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['sharepointonline']['connectionId']"
}
},
"method": "post",
"path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://myREDACTED.sharepoint.com/sites/MortgageAutomation'))}/tables/@{encodeURIComponent(encodeURIComponent('EncompassDocumentsToAppXTracking'))}/items"
},
"runAfter": {
"ParseLoanId": [
"Succeeded"
]
}
},
"Delete_CSV_File": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['filesystem']['connectionId']"
}
},
"method": "delete",
"headers": {
"SkipDeleteIfFileNotFoundOnServer": false
},
"path": "/datasets/default/files/@{encodeURIComponent(encodeURIComponent(body('CreateCsvIndexFile')?['Path']))}"
},
"runAfter": {
"Update_Loan_with_AppX_Upload_Date": [
"TimedOut",
"Failed"
]
}
},
"Email_Error_1": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['office365']['connectionId']"
}
},
"method": "post",
"body": {
"To": "REDACTED",
"Subject": "Failure Downloading Loan Documents to ApplicationXtender",
"Body": "

There was a failure processing the loan with the following guid:
\n@{items('For_each')['loanGuid']}
\n
\nThe suspected reason is that there are too many attachments on the selected loan. Please process this manually.

",
"Importance": "High"
},
"path": "/v2/Mail"
},
"runAfter": {
"ATST_Log_Error_1": [
"Succeeded"
]
}
},
"Email_Error_2": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['office365']['connectionId']"
}
},
"method": "post",
"body": {
"To": "REDACTED",
"Subject": "Failure Downloading Loan Documents to ApplicationXtender",
"Body": "

There was a failure processing the loan with the following guid:
\n@{items('For_each')['loanGuid']}
\n
\nThe suspected reason is that there are malformed attachments on the selected loan. Please process this manually.

",
"Importance": "High"
},
"path": "/v2/Mail"
},
"runAfter": {
"ATST_Log_Error_2": [
"Succeeded"
]
}
},
"GetApplicationXtenderCsvData": {
"type": "Function",
"inputs": {
"method": "GET",
"queries": {
"LoanGuid": "@{items('For_each')['loanGuid']}"
},
"authentication": {
"audience": "98651c7d-3a90-48fb-b3c7-5d5a5438bb90",
"type": "ManagedServiceIdentity"
},
"function": {
"id": "/subscriptions/GUID/resourceGroups/rg-REDACTED-Prod-Encompass/providers/Microsoft.Web/sites/REDACTED/functions/GetApplicationXtenderCsvData"
}
}
},
"GetDocType": {
"type": "Compose",
"inputs": "@if(and(equals(items('For_each')?['fields']?['Fields.1172'],'Conventional'),startsWith(tolower(replace(items('For_each')?['fields']?['Fields.420'],' ','')),'first')),'FIRST MORTGAGE',if(and(equals(items('For_each')?['fields']?['Fields.1172'],'Conventional'),startsWith(tolower(replace(items('For_each')?['fields']?['Fields.420'],' ','')),'second')),'SECOND MORTGAGE','EQUITY LOAN'))",
"runAfter": {
"logic-REDACTED-Dev-Encompass-FileDownload": [
"Succeeded"
]
}
},
"GetLoanID": {
"type": "Function",
"inputs": {
"method": "GET",
"queries": {
"Fields": "CX.HE.NEW.LOAN.ID",
"LoanGuid": "@{items('For_each')['loanGuid']}"
},
"authentication": {
"audience": "98651c7d-3a90-48fb-b3c7-5d5a5438bb90",
"type": "ManagedServiceIdentity"
},
"function": {
"id": "/subscriptions/GUID/resourceGroups/rg-REDACTED-Prod-Encompass/providers/Microsoft.Web/sites/REDACTED/functions/GetFullLoanFields"
},
"retryPolicy": {
"type": "none"
}
},
"runAfter": {
"ParseJSONCsvData": [
"Succeeded"
]
}
},
"Log-ATST-Stop": {
"type": "Http",
"inputs": {
"uri": "[REDACTED]",
"method": "POST",
"headers": {
"Api-Version": "2.0"
},
"body": {
"ApplicationName": "Encompass",
"Data": "{\"loanGuid\": \"@{items('For_each')['loanGuid']}\"}",
"DataSchemaVersion": 1.1,
"FunctionName": "HomeEquityQueue",
"Hostname": "Azure",
"InstanceID": null,
"LogStreams": [
"Telemetry",
"Log"
],
"LogType": "Stop",
"ProcessName": "DocumentDownloandtoAX",
"UserID": ""
}
},
"runAfter": {
"Update_item": [
"Succeeded"
]
}
},
"ParseJSONCsvData": {
"type": "ParseJson",
"inputs": {
"content": "@body('GetApplicationXtenderCsvData')",
"schema": {
"properties": {
"AccountNumber": {
"type": "string"
},
"BorrowerName": {},
"Date": {
"type": "string"
},
"LoanNumber": {
"type": "string"
},
"LoanType": {
"type": "string"
},
"SSN": {
"type": [
"string",
"null"
]
},
"Street": {}
},
"type": "object"
}
},
"runAfter": {
"GetApplicationXtenderCsvData": [
"Succeeded"
]
}
},
"ParseLoanExportJob": {
"type": "ParseJson",
"inputs": {
"content": "@body('StartExportLoanAttachments')",
"schema": {
"properties": {
"jobId": {
"type": "string"
}
},
"type": "object"
}
},
"runAfter": {
"StartExportLoanAttachments": [
"Succeeded"
]
}
},
"ParseLoanId": {
"type": "ParseJson",
"inputs": {
"content": "@body('GetLoanId')",
"schema": {
"items": [
{
"properties": {
"fieldId": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array"
}
},
"runAfter": {
"GetLoanId": [
"Succeeded"
]
}
},
"StartExportLoanAttachments": {
"type": "Function",
"inputs": {
"body": "@concat('{\"StackingTemplate\":{\"StackItems\":',variables('StackingOrder'),'},\"loanGuid\":\"',items('For_each')['loanGuid'],'\"}')",
"authentication": {
"audience": "98651c7d-3a90-48fb-b3c7-5d5a5438bb90",
"type": "ManagedServiceIdentity"
},
"function": {
"id": "/subscriptions/GUID/resourceGroups/rg-REDACTED-Prod-Encompass/providers/Microsoft.Web/sites/REDACTED/functions/StartExportLoanAttachments"
}
},
"runAfter": {
"CreateTrackingItem": [
"Succeeded"
]
}
},
"Until": {
"type": "Until",
"expression": "@or(equals(body('ParseExportJobStatus')?['status'], 'Success'),equals(outputs('GetJobStatus')['statusCode'], 500))",
"limit": {
"count": 240,
"timeout": "PT1H"
},
"actions": {
"Delay": {
"type": "Wait",
"inputs": {
"interval": {
"count": 15,
"unit": "Second"
}
},
"runAfter": {
"ParseExportJobStatus": [
"Succeeded"
]
}
},
"GetJobStatus": {
"type": "Http",
"inputs": {
"uri": "@{parameters('FunctionBaseURL')}/api/GetExportJob/@{body('ParseLoanExportJob')?['jobId']}",
"method": "GET",
"authentication": {
"audience": "98651c7d-3a90-48fb-b3c7-5d5a5438bb90",
"type": "ManagedServiceIdentity"
}
}
},
"ParseExportJobStatus": {
"type": "ParseJson",
"inputs": {
"content": "@body('GetJobStatus')",
"schema": {
"properties": {
"error": {},
"file": {
"properties": {
"authorizationHeader": {},
"contentType": {
"type": "string"
},
"entityId": {
"type": "string"
},
"entityType": {
"type": "string"
},
"entityUri": {},
"fileSize": {},
"pageCount": {}
},
"type": "object"
},
"jobId": {
"type": "string"
},
"status": {
"type": "string"
}
},
"type": "object"
}
},
"runAfter": {
"GetJobStatus": [
"Succeeded"
]
}
}
},
"runAfter": {
"ParseLoanExportJob": [
"Succeeded"
]
}
},
"Update_Loan_with_AppX_Upload_Date": {
"type": "Http",
"inputs": {
"uri": "@{parameters('FunctionBaseURL')}/api/Loan/@{items('For_each')['loanGuid']}",
"method": "PATCH",
"body": {
"customFields": [
{
"fieldName": "CX.APPX.AUPLOAD.CLOSED",
"stringValue": "@{formatDateTime(convertFromUtc(utcNow(),'Mountain Standard Time'),'MM/dd/yyyy')}"
}
]
},
"authentication": {
"audience": "98651c7d-3a90-48fb-b3c7-5d5a5438bb90",
"type": "ManagedServiceIdentity"
},
"retryPolicy": {
"type": "fixed",
"count": 2,
"interval": "PT5S"
}
},
"runAfter": {
"CreateCsvIndexFile": [
"Succeeded"
]
}
},
"Update_item": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['sharepointonline']['connectionId']"
}
},
"method": "patch",
"path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://myREDACTED.sharepoint.com/sites/MortgageAutomation'))}/tables/@{encodeURIComponent(encodeURIComponent('8a8f1315-f391-45a2-aeda-e85b76f9feed'))}/items/@{encodeURIComponent(body('CreateTrackingItem')?['ID'])}"
},
"runAfter": {
"Update_Loan_with_AppX_Upload_Date": [
"Succeeded"
]
}
},
"logic-REDACTED-Dev-Encompass-FileDownload": {
"type": "Workflow",
"inputs": {
"host": {
"workflow": {
"id": "/subscriptions/GUID/resourceGroups/rg-REDACTED-Prod-Encompass/providers/Microsoft.Logic/workflows/logic-REDACTED-Prod-Encompass-FileDownload"
},
"triggerName": "manual"
},
"retryPolicy": {
"type": "none"
}
},
"runAfter": {
"Until": [
"Succeeded"
]
}
}
},
"runAfter": {
"Initialize_variable": [
"Succeeded"
]
},
"runtimeConfiguration": {
"concurrency": {
"repetitions": 5
}
}
},
"Get_blob_content": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/GetFileContentByPath",
"queries": {
"path": "/attachmentstackingorders/REDACTED Home Equity Stacking Order.json",
"inferContentType": true,
"queryParametersSingleEncoded": true
}
},
"runAfter": {}
},
"InitializeStackingOrder": {
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "StackingOrder",
"type": "string",
"value": "@{body('Get_blob_content')}"
}
]
},
"runAfter": {
"Get_blob_content": [
"Succeeded"
]
}
},
"Initialize_variable": {
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "JobComplete",
"type": "boolean",
"value": false
}
]
},
"runAfter": {
"FilterPipeline": [
"Succeeded"
]
}
},
"LoanPipeline": {
"type": "Function",
"inputs": {
"method": "GET",
"queries": {
"CurrentMilestoneName": "HE Funding",
"FieldsToReturn": "Loan.DownPayment,Loan.CurrentCoreMilestoneName,Fields.CX.APPX.AUPLOAD.CLOSED,Fields.420,Fields.1172,Fields.CX.DMI.REDACTED",
"LoanFolder": "Closed Loans",
"StartDate": "2024-07-01"
},
"authentication": {
"audience": "98651c7d-3a90-48fb-b3c7-5d5a5438bb90",
"type": "ManagedServiceIdentity"
},
"function": {
"id": "/subscriptions/GUID/resourceGroups/rg-REDACTED-Prod-Encompass/providers/Microsoft.Web/sites/REDACTED/functions/LoanPipeline"
},
"retryPolicy": {
"type": "none"
}
},
"runAfter": {
"InitializeStackingOrder": [
"Succeeded"
]
}
},
"Parse_JSON": {
"type": "ParseJson",
"inputs": {
"content": "@body('LoanPipeline')",
"schema": {
"items": {
"properties": {
"fields": {
"properties": {
"Fields.1172": {
"type": "string"
},
"Fields.420": {
"type": "string"
},
"Fields.CX.APPX.AUPLOAD.CLOSED": {
"type": "string"
},
"Fields.CX.DMI.REDACTED": {
"type": "string"
},
"Loan.BorrowerName": {
"type": "string"
},
"Loan.CurrentCoreMilestoneName": {
"type": "string"
},
"Loan.CurrentMilestoneName": {
"type": "string"
},
"Loan.DownPayment": {
"type": "string"
},
"Loan.LastModified": {
"type": "string"
},
"Loan.LoanFolder": {
"type": "string"
},
"Loan.LoanNumber": {
"type": "string"
}
},
"type": "object"
},
"loanGuid": {
"type": "string"
}
},
"required": [
"loanGuid",
"fields"
],
"type": "object"
},
"type": "array"
}
},
"runAfter": {
"LoanPipeline": [
"Succeeded"
]
}
}
},
"outputs": {},
"parameters": {
"Environment_Tag": {
"defaultValue": "Prod",
"type": "String"
},
"FunctionBaseURL": {
"defaultValue": "https://func-[redacted].azurewebsites.net",
"type": "String"
},
"$connections": {
"type": "Object",
"defaultValue": {}
}
}
},
"parameters": {
"$connections": {
"type": "Object",
"value": {
"filesystem": {
"connectionId": "REDACTED",
"connectionName": "filesystem",
"id": "REDACTED"
},
"sharepointonline": {
"connectionId": "REDACTED",
"connectionName": "sharepointonline",
"id": "REDACTED"
},
"office365": {
"connectionId": "REDACTED",
"connectionName": "office365",
"id": "REDACTED"
},
"azureblob": {
"connectionId": "REDACTED",
"connectionName": "azureblob",
"id": "REDACTED"
}
}
}
}
}
```

### Screenshots or Videos

Image

### Environment

Session ID: e8b408eb05484465b87e0b4d67c64f51
Version: 16.108.0.1 (LKG#70382b58f4.250726-0314) Signed
AppInsightsExtension: 12ms | Version: 1.0.20250805.2420
HubsExtension: 13ms | Version: 16.108.0.1
Microsoft_Azure_EMA: 143ms | Version: 2.50707.1.9
Microsoft_Azure_MonitoringMetrics: 8ms | Version: 2.0.20250612.1646
Microsoft_Azure_Resources: 205ms | Version: 1.102.1250.0

Browser: 138.0.3351.121 (Official build) (64-bit)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.