Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Getting latest number sequence failed

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

I'm trying to activate mPOS, but ran into this error and can't seem to figure it out.

I checked Event Viewer and this is what I get. Where do I need to go to fix this problem? 

Non-CommerceRuntimeException was thrown.System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at Microsoft.Dynamics.Commerce.Runtime.Services.ReceiptMaskFiller.GetNumberSequenceFromReceipt(String receiptMask, String receiptId)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.NumberSequenceRequestHandler.GetNumberSequenceDataByReceiptId(SalesTransaction salesTransaction)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.NumberSequenceRequestHandler.GetNumberSequenceFromChannelDatabase(String terminalId)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.NumberSequenceRequestHandler.Process(GetNumberSequenceRequest request)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.WorkflowRequestHandler`2.Execute(Request request)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.Composition.PipelineRequestHandler.Execute(IRequestHandler handler, Request request)

 

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Getting latest number sequence failed

    The cause was the receipt numbering format was too big. What I did was change it back to a smaller value. I did it in  Retail > Setup > POS > Profiles > Functionality profiles at the bottom you should see Receipt numbering edit that and run 1090 + 1070  job and try to activate mPOS again.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans