Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Maximum number sequenc...
Finance forum

Maximum number sequence length for Voucher numbers

Posted on by 332

Hi,

Is there a maximum character length for voucher number sequence numbers? I have read a number of blogs that say to keep this to 10, But I have found examples where more than 10 characters have been used without issues.

Does anyone know if these fields were extended as part of D365? 

What is the maximum number sequence length for Voucher numbers?

Thanks for your assistance

  • Suggested answer
    Satish Panwar Profile Picture
    Satish Panwar 14,643 on at
    RE: Maximum number sequence length for Voucher numbers

    Agree with Nikolaos. Don't try to make modification and create mess. Handle the requirement in a different way, use Prefix on voucher instead.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Maximum number sequence length for Voucher numbers

    Technically "maybe". But I think it would not be only about changing this one field's data type. Also all code in the system that handles those numbers would need to be checked / changed to support int64.

    But is there really a customer requirement to have more than 2147483647 voucher numbers?

    In AX2012 I think it could be theoretically possible to change the data type, but you would be unable to upgrade such change to Dynamics 365 for Finance. So it's definetely not recommended, and it would be a short term solution only.

    Do you expect to use more than 2147483647 voucher numbers before AX2012 runs out of support?

    Don't you reset your voucher numbers every year?

    I personally would not recommend this kind of modification to a customer.

  • Yuji Profile Picture
    Yuji 4,125 on at
    RE: Maximum number sequence length for Voucher numbers

    Is it possible to change the highest number to be more than 2147483647 if we use EDT Integer64?

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Maximum number sequence length for Voucher numbers

    That's the maximum value for integer data type (one kind of numeric data types). Number sequences can't have greater maximum value than that.

  • Yuji Profile Picture
    Yuji 4,125 on at
    RE: Maximum number sequence length for Voucher numbers

    I try to use more than 10 character for voucher, and I got the below error, and why it is 2147483647?

    VoucherMaxRange.png

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Maximum number sequence length for Voucher numbers

    The length of Voucher data type is 20 characters, in AX2012 and D365FO. So you should be able to use voucher numbers that are up to 20 characters long.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,316 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans