web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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)"

(0) ShareShare
ReportReport
Posted on by 112

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

I have the same question (0)
  • MichaelFo96 Profile Picture
    112 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
    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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 74

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 28 Super User 2025 Season 2

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 17 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans