web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 102
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
    102 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 468

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 219 Super User 2025 Season 2

#3
Yng Lih Profile Picture

Yng Lih 143

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans