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

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

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... 292,680 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,639 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans