web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Getting latest number sequence failed

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans