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
Answered

Loading trigger handler failed because of invalid trigger type

(5) ShareShare
ReportReport
Posted on by 106
Hi All, 
 
I'm getting error when I use PostCartCheckoutTrigger .

manifest.json looks like this
 
 {
          "name": "PostCartCheckoutTrigger",
          "description": "Post Cart Checkout Trigger.",
          "triggerType": "PostCartCheckout",
          "modulePath": "Extend/Triggers/PostCartCheckoutTrigger"
 }
 
Categories:
I have the same question (0)
  • Verified answer
    jamesfrancis Profile Picture
    106 on at

    Hi All,

    You need to use the trigger type PostCartCheckoutTransaction for PostCartCheckoutTrigger.

    To find all the trigger types (since they are not mentioned in the documentation—if anyone has them, please share), you can use the Store Commerce source code.

    1. Open the following file in your editor (VS Code is recommended):
      C:\Program Files\Microsoft Dynamics 365\10.0\Store Commerce\Microsoft\contentFiles\Pos\ExtensibilityFramework\Pos.ExtensibilityFramework.js

    2. Search for the error message:
      "Loading trigger handler failed because of invalid trigger type"

    3. Add the following console.log statements as shown in the image above:

      console.log(_this._nonCancelableTriggerTypes);
      console.log(_this._cancelableTriggerTypes);
    4. Close and reopen Store Commerce, check inspect to see the list of cancelable and non-cancelable trigger types.

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 100 Super User 2026 Season 1

#2
Sagar Suman Profile Picture

Sagar Suman 72 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans