Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Plugin Issue onto Work Order Product Entity

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

Categories:
  • vince.perta Profile Picture
    vince.perta 32 on at
    Plugin Issue onto Work Order Product Entity
    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?  

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans