Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

Flow Error Code 0x80131501 - Error with action "Connect the record to the incoming activity (don't edit or delete this step)"

Posted on by 141

Hello all,

We use Power Automate to generate a case from an incoming email to one of our shared mailboxes.

In one of our mailboxes I get the error with action "Connect the record to the incoming activity (don't edit or delete this step)" (error code 0x80131501) about 1-2 times a month. With over 1000 emails to the shared mailbox, the error rate is very low but I still want to get it out of the way.

Specifically, the error message says the following:

Organization Id: [Placeholder], Calling method: Microsoft.Dynamics.AutomaticRecordCreation.Plugins.Helpers.SetRegardingOnSourceEntityHelper.SetRegardingOnSourceEntity, Error details: 'No object matched the query: delete from [ActivityPartyBase] OUTPUT DELETED.[ActivityPartyId], 135, 0 into SubscriptionTrackingDeletedObject (ObjectId, ObjectTypeCode, IsArchivalDelete) where ([ActivityPartyId] = @ActivityPartyId0)'

The email was sent to two of our shared mailboxes, each of which has a flow that generates a case.
I have two cases in the system for this email which were created at the same time. Each of the two flows has an execution at the same time. One case contains the email and is also linked to the email. Another case does not contain the email.

I don't quite understand the error code. Is this because the email can only be assigned to one case and the system then complains that the queue item is already assigned to a case?

I would be very grateful if someone could explain the error code to me.

Thank you!

Best regards 

MichaelFo96

  • MichaelFo96 Profile Picture
    MichaelFo96 141 on at
    RE: Flow Error Code 0x80131501 - Error with action "Connect the record to the incoming activity (don't edit or delete this step)"

    No solution until so far. :(

  • Marcos Munoz Profile Picture
    Marcos Munoz 5 on at
    RE: Flow Error Code 0x80131501 - Error with action "Connect the record to the incoming activity (don't edit or delete this step)"

    Hello,

    We added some new mailbox, and we are having this problem when they receive emails and both Queue addresses are on the mail.

    2 tickets created but only one with email.

    Did you find any solution? Or did you got any response from MS?

  • Leco Lv Profile Picture
    Leco Lv on at
    RE: Flow Error Code 0x80131501 - Error with action "Connect the record to the incoming activity (don't edit or delete this step)"

    Hi partner,

    You could open a ticket with MS.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans