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, ...
Suggested Answer

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

(0) ShareShare
ReportReport
Posted on by 30

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!

 

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    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.

  • @rp@n Profile Picture
    30 on at

    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!

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Arpan,

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

  • @rp@n Profile Picture
    30 on at

    Thank you Gunjan

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    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
    30 on at

    Rename functionality is not there for this

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Try at main table (vendivoicejour)

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    That was the first thing InvoiceId is not the primary key in the 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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans