Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

Cancel customer order - MPOS

(0) ShareShare
ReportReport
Posted on by 92

I'm trying to cancel a customer order at MPOS and getting the below error:

customer-order-cancel-error.jpg

In the event viewer the same error is shown:

event-viewer-error_5F00_1.jpg

  • Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,597 on at
    RE: Cancel customer order - MPOS

    Hi,

    You should be able to see exact error in Event viewer of F&O or Retail server (via direct event viewer access or LCS search) - this way should tell you what exactly was wrong during RTS call.

  • Suggested answer
    RE: Cancel customer order - MPOS

    Hi,

    This is a product defect issue reported to us , Please check below KBs and apply the one that related to your version:

    Description:
    When the user recall some customer order and try to cancel it , POS receives error:  

    The Real-time Service call failed. This may be because of an unhandled exception or because the headquarters did not recognize the Real-time Service Profile permissions. Contact your system admin.


    pastedimage1581341919108v1.png

    - Error details from logs 

    "A record in (SalesTable) can not be edited.
    Operation can not be completed because the record was not marked for update. Remember the clauses TTSBEGIN / TTSCOMMIT and FORUPDATE."

    Root cause :

    At the beginning of the CancelCustomerOrder method, the sales table is not selected for update, this can cause errors if the code tries to update that record before it's selected for update. In 10.0.4, some logic was added to update the Estimate field on the SalesTable in a method that gets called early on in the CancelCustomerOrder flow. If that logic gets triggered it can cause the call to fail, because it is trying to update a SalesTable record that has not been selected for update. This will be fixed by a code change to select the sales table for update at the beginning of the SalesTable method.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans