Skip to main content

Notifications

Announcements

No record found.

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

Custom Functionality Not working on the Production Instance

(0) ShareShare
ReportReport
Posted on by 1,707

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 74,115 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,707 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,707 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans