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 :
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 32
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)
  • Suggested answer
    Ramit Paul Profile Picture
    22,809 Most Valuable Professional on at
    Hi,
     
    Are you sending any line number?
     
    Also, can you disable the "Set based" option for the data entity and then try?
     
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at
    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.
  • joelhtown80 Profile Picture
    32 on at
    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.
     

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 804

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 639 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 528

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans