Skip to main content

Notifications

Announcements

No record found.

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()

  • Neil  Clarke Profile Picture
    60 on at
    RE: Customer order creation failing on new POS set up

    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.

  • Suggested answer
    asedawy Profile Picture
    117 on at
    RE: Customer order creation failing on new POS set up

    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

  • WillWU Profile Picture
    22,352 on at
    RE: Customer order creation failing on new POS set up

    Hi partner,

    Suggest you to raise a ticket to Microsoft.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,886 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans