Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Power Automate flow failing because 'modified' Purchase Order doesn't exist

(1) ShareShare
ReportReport
Posted on by 27

Hi all

I've got a flow that triggers when a purchase order is updated, and the trigger outputs the following example body:

{
  "Environment Name": "PRODUCTION",
  "Company Id": "a09476e9-c743-ed11-946f-xxxxxxxxxxx",
  "Row Id": "697c1e16-3a50-f011-be59-xxxxxxxxxxx"
}

The next step in the flow tries to retrieve this purchase order with this input:

{
  "bcenvironment": "PRODUCTION",
  "company": "a09476e9-c743-ed11-946f-xxxxxxxxxxx",
  "dataset": "v2.0",
  "table": "purchaseOrders",
  "id": "697c1e16-3a50-f011-be59-xxxxxxxxxxx"
}

And occasionally the flow fails with this error:

{
  "status": 404,
  "message": "ErrorCode: BadRequest_ResourceNotFound  Resource not found for the segment 'purchaseOrders'.  CorrelationId:  50c55ca3-6305-45e0-9e6a-xxxxxxxxxxx.\r\nclientRequestId: 528b3e24-eaec-4e0d-81a4-xxxxxxxxxxx",
  "error": {
    "message": "ErrorCode: BadRequest_ResourceNotFound  Resource not found for the segment 'purchaseOrders'.  CorrelationId:  50c55ca3-6305-45e0-9e6a-xxxxxxxxxxx."
  },
  "source": "api.businesscentral.dynamics.com",
  "errors": [
  ]
}
r/MicrosoftFlow - Strange Business Central behaviour

I don't understand how BC can indicate a modification to a record and fractions of a second later, the record doesn't exist. I've updated my logging to include ids when a PO is created, so that I can try follow what's happening.

But if anyone has any insights into what might be going on, it would be most appreciated.

  • Suggested answer
    Tom_Gioielli Profile Picture
    1,768 on at
    Power Automate flow failing because 'modified' Purchase Order doesn't exist
    I'm not as well versed in BC, but the "Resource Not Found" error in the CE world typically means that the table name is incorrect in your reference. Is it possible that the flow doesn't like the uppercase 'O' in purchaseOrders? The set name of the table (which is often a plural of the logical name) is usually in all lowercase.
     
    I would check and confirm that the table set name is defined properly first, as it is what looks most likely to me to be causing the issue.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Adis Profile Picture

Adis 136 Super User 2025 Season 1

Product updates

Dynamics 365 release plans