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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

D365 Fin & Ops Connector - SalesQuotationLine Error

(3) ShareShare
ReportReport
Posted on by 37
Hi everyone,
 
I tried to create a new SalesQuotationHeader and SalesQuotationLines via Power Automate.
The Header works fine, but I can only create one line. 
While the creation of the second line, this error occours:
 
An error has occurred. Write failed for table row of type 'SalesQuotationLineV2Entity'. Infolog: Warning: Line number 10.00 already exists; Warning: validateWrite failed on data source 'SalesQuotationLine (SalesQuotationLine)'.
 
The payload looks like this for the first and second line:
 
First Line - Works
{
"dataset": "xyz.sandbox.operations.eu.dynamics.com",
"table": "SalesQuotationLines",
"item/dataAreaId": "xyz",
"item/ItemNumber": "00015452",
"item/LineCreationSequenceNumber": 1,
"item/RequestedSalesQuantity": 1,
"item/SalesQuotationNumber": "1030057053"
}

Second Line - Doesnt work
{
"dataset": "xyz.sandbox.operations.eu.dynamics.com",
"table": "SalesQuotationLines",
"item/dataAreaId": "xyz",
"item/ItemNumber": "0002462012",
"item/LineCreationSequenceNumber": 2,
"item/RequestedSalesQuantity": 3,
"item/SalesQuotationNumber": "1030057053"
}

Any ideas how I can fix that?
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,807 Most Valuable Professional on at
    This is strange. As far as I know, the logic in SalesQuotationLineV2Entity.insertEntityDataSource() should handle that and assign a new line number, higher than any existing for the given quotation number.
     
    I would debug the code to see what's going on there. Can you do that or do you have someone who can do it for you?
  • ran_dale Profile Picture
    37 on at
    Hi @Martin Dráb, thanks for your answer.
     
    I'll check that with our team and post an update!
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at
    I can confirm that it works fine for me, I have tried to duplicate the scenario using postman and cannot produce it on standard system. here was my call without passing the LineNum. System do not need LineNum as it generates automatically. 
     
    {
      "dataAreaId""USMF",
      "SalesQuotationNumber""000007",
      "ItemNumber""D0011",
      "RequestedSalesQuantity"1
    }
     
     I can call the operation any number of times and it keeps creating lines for me. 
  • Verified answer
    ran_dale Profile Picture
    37 on at
    Hi all,
    It was caused by an adjustment in the SalesQuotationLine table.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans