Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

Flow error - on ARC rule

Posted on by 54

Hi All

My ARC rules are actually working - and the case is being auto-created and sent to the correct CRM queue - which is great! However, every one is creating Run Failures related to the last stage of the Flow. Here is the full error mesage:

Error identified in Payload provided by the user for Entity :'', For more information on this error please follow this help link go.microsoft.com/.../ ----> InnerException : System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitiveData(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)
at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitive(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)
at Microsoft.Crm.Extensibility.ODataV4.CrmODataActionPayloadDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger).

This is in the Raw Outputs section of the flow error:

{
    "statusCode"400,
    "headers": {
        "x-ms-service-request-id""9d328a90-1ed4-444b-9e08-74978d8dfb32,bf4b6226-2371-4f65-a62e-8ba7cd2f4d21",
        "Cache-Control""no-cache",
        "Set-Cookie""ARRAffinity=68d1aab7bdcd54faf1e88cc000329246d17287cbcbebdd26c57962b78e796d3aeb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DA6E30C8D13B3B1827067197; domain=exeter.crm11.dynamics.com; path=/; secure; HttpOnly,ReqClientId=9d271f6e-facf-42bb-a23b-ff71c54f3e13; expires=Mon, 25-Jul-2072 10:58:23 GMT; path=/; secure; HttpOnly,ARRAffinity=68d1aab7bdcd54faf1e88cc000329246d17287cbcbebdd26c57962b78e796d3aeb29bb4b19df1459d2ea781b605f33064b9fea1f144b525b9d7676625c4ffb5408DA6E30C8D13B3B1827067197; domain=exeter.crm11.dynamics.com; path=/; secure; HttpOnly",
        "Strict-Transport-Security""max-age=31536000; includeSubDomains",
        "REQ_ID""bf4b6226-2371-4f65-a62e-8ba7cd2f4d21,bf4b6226-2371-4f65-a62e-8ba7cd2f4d21",
        "AuthActivityId""5bf94e6b-b25f-44cd-b7a9-54c93fc1cec3",
        "x-ms-dop-hint""8",
        "x-ms-ratelimit-time-remaining-xrm-requests""1,199.86",
        "x-ms-ratelimit-burst-remaining-xrm-requests""5997",
        "x-ms-utilization-percent""2",
        "OData-Version""4.0",
        "X-Source""8312114317747230841257791731343118113731100148236109417423220530211895117311351,12142248200247231176625310218421219713224691141043221416189247794793665529236120216",
        "Public""OPTIONS,GET,HEAD,POST",
        "Date""Mon, 25 Jul 2022 10:58:22 GMT",
        "Content-Length""1074",
        "Allow""OPTIONS,GET,HEAD,POST",
        "Content-Type""application/json; odata.metadata=minimal",
        "Expires""-1"
    },
    "body": {
        "error": {
            "code""0x80048d19",
            "message""Error identified in Payload provided by the user for Entity :'', For more information on this error please follow this help link ">go.microsoft.com/.../
        }
    }
}
The only thing in the final step of the flow itself that might be causing it is this expression:
if(equals(outputs('Create a record (don''t rename this step)')?['body/incidentid@Microsoft.Dynamics.CRM.lookuplogicalname'],'incident'),concat('incidents(',outputs('Create a record (don''t rename this step)')?['body/incidentid'], ')'),string(''))
CAN ANYONE SHED ANY LIGHT AS TO WHAT THIS ISSUE IS PLEASE? YOUR HELP WOULD BE GREATLY APPRECIATED
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Flow error - on ARC rule

    Hi MikeExeter,

    Based on the error, You are trying to get Value from an object that is null. 

    In your expression, it seems that format of two parts are different:

    if(equals(outputs('Create a record (don''t rename this step)')?['body/incidentid@Microsoft.Dynamics.CRM.lookuplogicalname'],'incident'),concat('incidents(',outputs('Create a record (don''t rename this step)')?['body/incidentid'], ')'),string(''))

    Could you provide screenshots about the flow step?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans