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

Announcements

No record found.

News and Announcements icon
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 135

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)
  • Leco Lv Profile Picture
    Microsoft Employee on at

    Hi partner,

    You could open a ticket with MS.

  • MarcosM Profile Picture
    5 on at

    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?

  • MichaelFo96 Profile Picture
    135 on at

    No solution until so far. :(

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 21 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans