Hi, I have an irritatingly opaque and intermittent error that has stumped me.
The error is "Incomplete execution, Reason for interruption, [400] Failed to process content in attachment with Id ‘74d20c7f34aa4a7fb74e2b30004247c5’." I can’t seem to find anything similar in the help centre.
The error is on a Microsoft Teams module “Post to Channel” Make an API Call. This module should only need to format and post this to the Channel created in a previous step. I can’t figure out why it goes wrong sometimes.
Create MS Teams channel and post content.json (208.2 KB)
The Body of the module is:
{
“subject”: “{{2.Subject}}”,
“body”: {
“contentType”: “html”,
“content”: “[sfID:{{2.Id}}] <attachment id="74d20c7f34aa4a7fb74e2b30004247c5">”
},
“attachments”: [
{
“id”: “74d20c7f34aa4a7fb74e2b30004247c5”,
“contentType”: “application/vnd.microsoft.card.adaptive”,
“contentUrl”: null,
“content”: “{"$schema":"http://adaptivecards.io/schemas/adaptive-card.json\",\“type\”:\“AdaptiveCard\”,\“version\”:\“1.2\”,\“body\”:[{\“type\”:\“TextBlock\”,\“size\”:\“Medium\”,\“weight\”:\“Bolder\”,\“text\”:\"Salesforce Case Description"},{"type":"TextBlock","text":{{34.value}},"wrap":true}],"actions":[{"type":"Action.OpenUrl","title":"View Case","url":"{{1.v3}}/{{2.Id}}"}]}”,
“name”: null,
“thumbnailUrl”: null
}
]
}
My Break error handler caught it but there is nothing in the input/output.
The incomplete execution looks like this:
Input Bundle content:
[
{
“url”: “/v1.0/teams/9f0f9a59-e960-4ae8-ae98-585b71032bb9/channels/19:9a642e2a480840d3b2bdd45b7a82ceaa@thread.tacv2/messages”,
“body”: “{\n "subject": "Failing Validation after Startup",\n "body": {\n "contentType": "html",\n "content": "[sfID:500RQ00000VRLeWYAX] <attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\">"\n },\n "attachments": [\n {\n "id": "74d20c7f34aa4a7fb74e2b30004247c5",\n "contentType": "application/vnd.microsoft.card.adaptive",\n "contentUrl": null,\n "content": "{\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\\\",\\\“type\\\”:\\\“AdaptiveCard\\\”,\\\“version\\\”:\\\“1.2\\\”,\\\“body\\\”:[{\\\“type\\\”:\\\“TextBlock\\\”,\\\“size\\\”:\\\“Medium\\\”,\\\“weight\\\”:\\\“Bolder\\\”,\\\“text\\\”:\\\"Salesforce Case Description\"},{\"type\":\"TextBlock\",\"text\":\"Failing Validation at Step 9 \"Can’t Find Peak at 236\"\",\"wrap\":true}],\"actions\":[{\"type\":\"Action.OpenUrl\",\"title\":\"View Case\",\"url\":\"https://syft.my.salesforce.com//500RQ00000VRLeWYAX\\\“}]}\”,\n "name": null,\n "thumbnailUrl": null\n }\n ]\n}”,
“method”: “POST”,
“headers”: [
{
“key”: “Content-Type”,
“value”: “application/json”
}
]
}
]
Output Bundel content:
[
null
]
So I agree that it has had trouble processing the input.
In case it is useful the prior steps are JSONIFY Description + Subject from Salesforce Case.
Questions:
- How do I troubleshoot this, I am not sure where to begin.
- Can I make it more robust or give a more detailed error?
- Is there a workaround, E.G. “if error of this type then Post to Channel some simpler/placeholder”?