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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Plugin Issue onto Work Order Product Entity

(0) ShareShare
ReportReport
Posted on by 20

Hey,

I am trying to create one Work Order Product (same product) for multiple work orders in Field Service Module, I am having a error as below. Can anyone help me with 

Error - "There can't be two active records for the same warehouse, product, and unit."

1. What makes a work order product unique ?

2. The below are the 3 OOTB  plugins causing this issue 

Field Service: Create (post-operation) for msdyn_workorderproduct]

Field Service: Create (post-operation) for msdyn_inventoryjournal]

Field Service: Update (pre-operation) for msdyn_productinventory]

pastedimage1605565619162v3.png 

pastedimage1605565673822v4.png

I have the same question (2)
  • vince.perta Profile Picture
    9 on at
    I'm faced with this same error message, and this post is the only thing I've found that mentions it.  In my cases, it's been happening when through Dual-Write updates from D365 F&O to CE:
    • When trying to receive a PO:
      • Unable to write data to entity msdyn_purchaseorderproducts.Writes to PurchPurchaseOrderLineCDSEntity failed with error message Request failed with status code BadRequest and CDS error code : 0x80040265 response message: There can't be two active records for the same warehouse, product, and unit.
    • When a PO approval workflow is trying to complete:
      • Unable to write data to entity msdyn_purchaseorders.Writes to PurchPurchaseOrderHeaderV2Entity failed with error message Request failed with status code BadRequest and CDS error code : 0x80040265 response message: There can't be two active records for the same warehouse, product, and unit.
    Has anyone out there had any luck in determining what kind of records this is referring to, or how to overcome it?  

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 58 Super User 2026 Season 1

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 49

#3
Fiona_Tiernan Profile Picture

Fiona_Tiernan 22 Moderator

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans