Legacy Dev Forum Posts

 View Only

Sign Up

Dynamics 365 Data Action error

  • 1.  Dynamics 365 Data Action error

    Posted 06-05-2025 18:42

    Giacky91 | 2021-02-10 16:48:49 UTC | #1

    Hi, i'm trying to intercept when an action call return an error and return to architect flow a default value.

    My data action search on CRM customer phone number and return contact name. When there is no contact with that specific phone number, the call goes to error with this output:

    { "message": "No results were found.", "code": "no.results", "status": 400, "messageParams": {}, "contextId": "90bbc0da-077e-48a5-827a-98e6c25e2caf", "details": [ { "errorCode": "ACTION.PROCESSING" } ], "errors": [] } While my contract output is

    { "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "properties": {}, "items": { "title": "Contact", "description": "A Microsoft Dynamics 365 contact.", "type": "object", "$schema": "http://json-schema.org/draft-04/schema#", "required": [ "contactid" ], "properties": { "contactid": { "description": "The ID of the contact.", "type": "string" }, "firstname": { "description": "The first name of the contact.", "type": "string" }, "lastname": { "description": "The last name of the contact.", "type": "string" }, "fullname": { "type": "string" }, "emailaddress1": { "type": "string" } }, "additionalProperties": true } }

    And translation map

    { "translationMap": { "contact": "$.value" }, "translationMapDefaults": {}, "successTemplate": "${contact}" }

    How can i return a default contact to the data action in case of that error? translationMapDefaults is not helping now. Should i manage this error in architect flow under Failure branch?

    Thank you!


    Jason_Mathison | 2021-02-10 18:15:27 UTC | #2

    Hi Giacky91,

    Since the Dynamics endpoint is returning a non 2xx response, the data action will take the failure path, no matter how you configure it. This will have to be handled in the architect failure branch.

    --Jason


    Giacky91 | 2021-02-11 08:12:27 UTC | #3

    Thank you @Jason_Mathison, i'll manage the failure in architect flow.

    Best


    system | 2021-03-14 08:12:30 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 9956