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 :
Finance | Project Operations, Human Resources, ...
Suggested answer

Unable to create a Purchase Order line item. The record already exists.

(0) ShareShare
ReportReport
Posted on by 28
Hi All,
 
The issue happens only on some of the POs being uploaded. I have set the For-Loop concurrency setting to 1 in order to import each record one at a time. Any idea on what's causing this?
 
Here are the steps:
1. Check if the PO already exists in F&O. There is none.
2. Created the PO header in PurchaseOrderHeadersV2. It was successful.
3. Check if there are line items for the PO in PurchaseOrderDetailsV2. There is none.
4. Delete all PO line items if any.
5. Created the PO Line item in PurchaseOrderDetailsV2. It was an error.
An error has occurred.  Write failed for table row of type 'PurchPurchaseOrderLineV2Entity'. Infolog: Info: Cannot create a record in Purchase order lines (PurchLine). Purchase order: 7000097, 200./The record already exists..
 
Screenshot for step #3
//
Screenshot for step #5
//
 
Also checked if there are records after the step #5 hit the error. There is none.
//
 
I have the same question (0)
  • joelhtown80 Profile Picture
    28 on at
    Unable to create a Purchase Order line item. The record already exists.
    Hi,
     
    Here is a screenshot of the line item details I am trying to create. In this example, the PO only has 1 line item.
     
    @Ramit, I am sending line number. Also, how do I disable the "Set based" option?
     
    @Andre, are you referring to the Company (Data Area Id) when you say legal entities? If so, then the flow is not mixing it with various legal entities.
     
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    297,217 Super User 2025 Season 2 on at
    Unable to create a Purchase Order line item. The record already exists.
    Hi Joel,
     
    It could be related to a non-unique line number like mentioned by Ramit or maybe the flow is mixing data in various legal entities? I'm not able to see all details. I created a working Power Automate flow for purchase orders in the past. You can read my blog where you can also download my example: Let your Operations Flow - Excel to Purchase orders Example - Dynamicspedia
    You can then check if you missed something in your flow.
  • Suggested answer
    Ramit Paul Profile Picture
    22,778 Most Valuable Professional on at
    Unable to create a Purchase Order line item. The record already exists.
    Hi,
     
    Are you sending any line number?
     
    Also, can you disable the "Set based" option for the data entity and then try?
     

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans