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
Answered

Loading trigger handler failed because of invalid trigger type

(4) ShareShare
ReportReport
Posted on by 94
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:
  • Verified answer
    jamesfrancis Profile Picture
    94 on at
    Loading trigger handler failed because of invalid trigger type

    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 171 Super User 2025 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 140 Super User 2025 Season 1

#3
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 127 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans