Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Custom Functionality Not working on the Production Instance

Posted on by 1,646

Hi All,

I did customization on the sandbox instance, The customization is when someone creates a new record on the Custom created owner table the same values inserted on the dimension of owner [Values inserted would be Code and name from the owner table to owner dimension values]. This customization works perfectly on all the sandbox instance but however it is not working on the production instance. I have deployed the same latest extension on the production instance. what was the problem? could anyone tell us why the functionality not working on the production instance? 

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 72,941 Super User 2024 Season 2 on at
    RE: Custom Functionality Not working on the Production Instance

    Hi, have you generated or updated the permissions file? This is not required in Sandbox but is required in production

    More details:

    New command to generate or update AL permission set

    https://yzhums.com/29221/

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Custom Functionality Not working on the Production Instance

    Hi,

    Did you try to put the specifically permission on that codeunit?

    Thanks

  • Inkey Solutions Profile Picture
    Inkey Solutions 1,646 on at
    RE: Custom Functionality Not working on the Production Instance

    Hi Nitin Verma ,

    I have check permission set and it works for one dimension but not work for another dimension.

  • Inkey Solutions Profile Picture
    Inkey Solutions 1,646 on at
    RE: Custom Functionality Not working on the Production Instance

    Hi NorthW 

    I have used Event subcriber, please see the below code.

    pastedimage1680002851993v1.png

    pastedimage1680002878033v2.png

    pastedimage1680002897905v3.png

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Custom Functionality Not working on the Production Instance

    When you try to run the code in your production environment are you using licensed user or a CSP user?

    Are your code using job queues during the execution or is it all done in a trigger or a event?

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Custom Functionality Not working on the Production Instance

    Hi,

    Can you check if required permission are set?

    Thanks.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Custom Functionality Not working on the Production Instance

    hi

    there could be multiple reasons why the customization is not working on the production instance:

    Data differences: The production instance might have different data compared to the sandbox instance, which could result in the customization not working as expected.

    Code differences: There could be differences in the code between the sandbox and production instances. Make sure that the latest code has been deployed to the production instance and that there are no errors or warnings during the deployment.

    Environment differences: The sandbox and production instances could be running on different environments, which could affect the customization. For example, if the customization relies on a specific version of a library, the production instance may be running a different version, which could cause issues.

    Configuration differences: There could be differences in the configuration settings between the sandbox and production instances. Make sure that the necessary configuration settings are set up correctly in the production instance.

    Permission differences: Check if the user account that is being used to test the customization in the production instance has the necessary permissions to access the objects and tables required by the customization.

    It's important to debug the issue by checking the logs and debugging the code to identify the root cause of the issue. Once the root cause is identified, it can be addressed accordingly.

    DAniele

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/forums/thread/details/?threadid=48cbc6bf-5aa0-4071-8784-fcb7386e9b2d%27nvOpzp;%20AND%201=1%20OR%20(%3C%27%22%3EiKO))," - Too many )'s.