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

error with customernumber length while creating sales invoices

(1) ShareShare
ReportReport
Posted on by 96
We have some customers in dynamics who have 12-digit customers
when we try to create an invoice for sales orders for these customers, the creation of an invoice fails.
 
Is there any limit on the customer-number(AccountNum) field in custTable?
 
I have the same question (0)
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi,
     
    Customer Account limit size is 20 characters, what is the error that you have?
     
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    What is the error you are getting? Please share us the details.
  • Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    Hi @SunilSharma,
     
    Can you please share with us the error ?
     
    Best reards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    saurabh bharti Profile Picture
    15,039 Moderator on at
    Hi,
     
    I don't think so there is any relation of generating invoice based on customer account number sequence lenghth.
     
    Unless you are having any customization where you are picking invoice number sequence based on customer account.
     
    In general Dynamics supports total 20 lenghth for any sequenece , out of which 10 can be your running number and rest your prefix/suffix
  • SunilSharma Profile Picture
    96 on at
     
     
    The customer account numbers we are using are 10-digit numeric numbers like below.
     
     
    3234567890
     
    when trying to generate an invoice for the sales order for the customer we get the below error. After checking different scenarios, I identified that the issue was because of the customer account number length. If the customer account number is less than 10-digit numeric numbers then the generation of an invoice works fine.

     Message details
    Posting
    Posting
    Exception has been thrown by the target of an invocation.
    An error occurred during update

    Posting - An error occurred during update
    Fix issues
  • Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    Hi,
     
    The customer account number standard size is 20 !
    you confirm that you have applied a customization on this field ?
     
    Best regards
  • SunilSharma Profile Picture
    96 on at
    We do not have any customization on the customer account number field.
    customer creation works fine with customer account numbers with 10 or bigger digits.
     
    The issue happens only when we try to generate an invoice from a sales order for these customers.
     
    Is it a limitation in Dynamics with sales invoice creation, that the sales invoice table has a different data type length for the customer account number than then customer account number in custTable?
     
     
     
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    In that case I would suggest to restore database to any dev VM and debug this.

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 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans