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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Customer order creation failing on new POS set up

(0) ShareShare
ReportReport
Posted on by 60

Hi All

I have configured an evironment and a new POS, which is working OK except for customer orders. 

At the point of creating the order, I am getting an error "We cannot process your request at this time."  The error message in the event viewer (below) suggests it's something to do with order masks for the channel reference ID. 

I've set up receipt numbering in the functionality profile (which works for carry-out sales) but still get this error for customer orders. 

Has anyone seen this before?  Have I missed some simple config or a number sequence?

Thanks

Neil

Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Dynamics.Commerce.Runtime.Services.OrderNumberMaskFiller.ApplyMask(String identifier, String mask, String characterPool)
at Microsoft.Dynamics.Commerce.Runtime.Services.SalesOrderService.<GenerateOrderNumber>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.RequestHandlerAdapter.Execute(Request request)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__41`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__41`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.Execute[TResponse](Request request, RequestContext context, IRequestHandler handler, Boolean skipRequestTriggers)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.Execute[TResponse](Request request, RequestContext context, IRequestHandler handler)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.Execute[TResponse](Request request, RequestContext context)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.OrderWorkflowHelper.FillChannelReferenceIdWithRandomString(RequestContext context, SalesTransaction salesTransaction)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.OrderWorkflowHelper.FillMissingRequirementsForOrder(RequestContext context, SalesTransaction salesTransaction)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.CustomerOrderWorkflowHelper.FillMissingRequirementsForOrder(RequestContext context, SalesTransaction salesTransaction)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.SaveCustomerOrderRequestHandler.Process(SaveCustomerOrderRequest request)
at Microsoft.Dynamics.Commerce.Runtime.SingleRequestHandler`2.Execute(Request request)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__41`1.MoveNext()

I have the same question (0)
  • WillWU Profile Picture
    22,363 on at

    Hi partner,

    Suggest you to raise a ticket to Microsoft.

  • Suggested answer
    asedawy Profile Picture
    119 on at

    Dear Neil

    check that the sales order number sequence is configured correctly in accounts receivable parameters

    also check that a receipt profile is assigned in the hardware profile 

    hope this helps

  • Neil  Clarke Profile Picture
    60 on at

    Hi Ahmed

    Thanks for the suggestion - the number sequence is already set up and I tried the receipt profile but it hasn't made any difference.  

    I have raised a ticket with MS and will update this with the resolution.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 81 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 70 Super User 2026 Season 1

#3
Sagar Suman Profile Picture

Sagar Suman 58 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans