Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

We saw some invalid characters are there in Invoice Id and Description field in particular Vendor and Particular Voucher in Vendor Transaction.

0820.V1.jpg

Because of this , when user run the Vendor aging report and save the data is excel. and trying to open the excel, it's throwing error "invalid characters..."

So, they asked us to remove the invalid characters and update the invoice id like B4005

Kindly let me know how I will achieve this through script? In which tables we need to update the Invoice Id? 

Please give me more shed on this.

thanks!

 

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    That was the first thing InvoiceId is not the primary key in the table.

  • ergun sahin Profile Picture
    ergun sahin 8,816 Moderator on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    Try at main table (vendivoicejour)

  • @rp@n Profile Picture
    @rp@n 2 on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    Rename functionality is not there for this

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,816 Moderator on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    I didnt tried but you can try your luck with rename function

    Or you can create Excel via code and change values at runtime

    Or you can add New field, update New field with corrected invoiceId s and use New field at the report

  • @rp@n Profile Picture
    @rp@n 2 on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    Thank you Gunjan

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    Hi Arpan,

    This thread discussed the same question. Please take a look and see if it helps you.

  • @rp@n Profile Picture
    @rp@n 2 on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    Thanks Gunjan 

    But I think this is not good practice to do. Can we do reverse invoice posting instead of this ?

    Is it possible ?

    Pls give me more shed on this 

    Thanks!

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: how to update invoice Id in Vend Trans which is already Invoice in AX 2012 R3

    Hi Arpan,

    I am not sure if this is the best way to update the invoice number. Here are the tables I can see where you will need to update the invoice Id - VendInvoiceJour, VendInvoiceTrans, VendTrans. You will also need to update DocumentNumber field in GeneralJournalEntry.

    If the invoice was generated from Vendor invoice journal, you will need to update LedgerJournalTrans\Invoice field. If it was generated from Purchase orders, you could check VendInvoiceInfoTable and VendInvoiceInfoLine tables as well.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans