Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

Loading trigger handler failed because of invalid trigger type

(3) ShareShare
ReportReport
Posted on by 86
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
    jamesfrancis 86 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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,286 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans