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 :
Small and medium business | Business Central, N...
Suggested Answer

Trigger not working on Production Environment

(0) ShareShare
ReportReport
Posted on by 84

Hello, is there anyone having some issue which only works on production environment?

We have feature when someone posting an invoice, an event subscriber run to insert Invoice Data to custom table.
It's not working on client production instance but works on any other than production.
I tried to debug it on on client env and my local PC, but it's working just fine so I couldn't reproduce the issue.

I already registered all custom object for the license and set allow all permission on custom object.


Is there any suggestion on how to troubleshoot the issue?

I have the same question (0)
  • Indira88 Profile Picture
    980 on at
    RE: Trigger not working on Production Environment

    is it because of the user. Maybe your user has the super role but the client user does not have the role that is related to the custom table. Please verify and let us know.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,241 Super User 2025 Season 2 on at
    RE: Trigger not working on Production Environment

    The last two parameters for event subscribers are SkipOnMissingLicense and SkipOnMissingPermission, what values did you set? if you set those to true then it will skip if the user does not have a license for that object or permission, but if you set false you will get an error.  I believe you might have set those to true, so it is skipping them because of missing permission or license.

  • Bilal Fazrin Profile Picture
    84 on at
    RE: Trigger not working on Production Environment

    Thanks for the respond.

    I might try to use this one,

    But for the role or permission, I already allowed related to user to use the custom objects, I also set rmid to table permission inside the code.

  • Bilal Fazrin Profile Picture
    84 on at
    RE: Trigger not working on Production Environment

    Thanks for the respond. Suresh Kulla

    I did set it false to all my event subscriber, but I received no error
    That's what make me confuse.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,421

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,878 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,645 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans