Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Cannot create a record in Vendor invoices (VendInvoiceInfoTable). The record already exists.

(0) ShareShare
ReportReport
Posted on by 630

Hi Experts,

3036.Capture.PNG

While i try to post PO invoice i am getting this error. Please tell me how can i solve this error.

Thanks & Regards

Rahul

*This post is locked for comments

  • Mraj Profile Picture
    40 on at
    RE: Cannot create a record in Vendor invoices (VendInvoiceInfoTable). The record already exists.

    HI Rahul,

    Please be informed that we are facing same issue in AX 2012 R2 ,CU6 , I been struggling with issue more than a month .

    Kindly let me know if you were able sort out this issue .

    Looking forward your response .

    Thanks

    Raj 

  • Rahul.p Profile Picture
    630 on at
    RE: Cannot create a record in Vendor invoices (VendInvoiceInfoTable). The record already exists.

    Hi Crispin,

    In PurchFormLetter class here is method of reArrangeNow.

    public boolean reArrangeNow(boolean _reArrangeNow = reArrangeNow)
    {
    reArrangeNow = _reArrangeNow;
    return reArrangeNow;
    }

    This is coming from "_reArrangeNow" parameter, We are not understanding why "_reArrangeNow" is taking true value.

    Is there any parameter selected?
    Before user can able to post the invoice but now he is not able to post.

    egards,

    Rahul

  • Rahul.p Profile Picture
    630 on at
    RE: Cannot create a record in Vendor invoices (VendInvoiceInfoTable). The record already exists.

    Dear Ludwig Reinhard/Sukrut Parab,

    Thanks for your reply,

    I asked to my technical person he is telling error is coming from PurchFormLetter (class) -> Run method.

    He is telling while he tried to check code through debugger PurchFormLetter (class) -> Run method ->if (reArrangeNow) value is taking true.

    6763.Capture.PNG

    He is telling when he try to check same thing in another server  through debugger (reArrangeNow) value is coming false so loop is come out.

    Could you please tell me why (reArrangeNow) value is coming true.

    Best regards,

    Rahul

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Cannot create a record in Vendor invoices (VendInvoiceInfoTable). The record already exists.

    Hello Rahul,

    In this case I would ask you to get into contact with a developer urgently.

    This is either a bug or the result of a customization and your development colleagues should be able to get this fixed quickly so that you can post your invoices.

    Best regards,

    Ludwig

  • Rahul.p Profile Picture
    630 on at
    RE: Cannot create a record in Vendor invoices (VendInvoiceInfoTable). The record already exists.

    Hi Ludwig,

    Thanks for your reply.

    Que. Have you recorded an invoice with the same number before?

    I am getting this error for every purchase order while i try to post the invoice.

    Best regards,

    Rahul

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Cannot create a record in Vendor invoices (VendInvoiceInfoTable). The record already exists.

    Hello Rahul,

    Have you recorded an invoice with the same number before?

    If this is not the case then please have a look at the available hotfixes in LCS as this message might be triggered by a bug.

    Please see e.g. https://fix.lcs.dynamics.com/Issue/Results?q=Cannot+create+a+record+in+Vendor+invoices+%28VendInvoiceInfoTable%29.+The+record+already+exists.&dm=0&v=3_5_7_4_1_16_15&i=2_1_3_4&ct=1_3_5_4_2_6&ft=1_2_3&cu=&pi=&pm=&pc=&rd=&d=&envId=&permission=&x=29&y=15

    Best regards,

    Ludwig

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans