Skip to main content

Notifications

Announcements

No record found.

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

Deployment extension to business central

Posted on by 29

Hello Everyone,

I have a question. I am a business central functional consultant. My company recently wanted me to develop a custom workflow for item journal. First, I simulated on a test environment and it worked perfectly. However, deploying to a production environment has not been fruitful. I could publish successfully but I keep getting a permission (execute) issues for the created codeunits. I have generated the necessary permissions (using AL: Generate permissions) and also make sure i have the super access rights with a full user experience. It seems to me that the license needs certain rights or entitlement to publish objects to BC. Please, kindly note our environment is on-prem.

What can be done please?

Regards 

Bryma

  • VaHiX Profile Picture
    VaHiX 3,044 on at
    Deployment extension to business central
     

    ** Please don't forget to close up the thread here by Like and verify it as an answer if it was solved **

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    Deployment extension to business central
    If it is on-pre, this may be a license issue, such as not reallocating the object range.
    You are using a development license in the development environment, so there is no such problem.
    In addition, you need to pay attention to the following issues.
    Dynamics 365 Business Central Universal code initiative
     
    Hope this helps.
    Thanks.
    ZHU
  • tafa bryma Profile Picture
    tafa bryma 29 on at
    Deployment extension to business central
    @Jun,
     
    Kindly see attached image. This also happens when we try to write a codeunit for API connector.
  • Suggested answer
    ACHILLE SONGA Profile Picture
    ACHILLE SONGA 17 on at
    Deployment extension to business central
    From my understanding, Execute Permission is required when a user need to execute certain codeunits, and not all permissions require it.

    I would suggest checking your Effective Permissions in the test environment and check if all permissions are the same as the production environment and if they are different, make necessary adjustments.

    Check the Execute Permission column.
    Check the permissions that are needed to access your codeunits.

    I hope this helps,

    Best Regards,
    Achille Songa.
  • Suggested answer
    VaHiX Profile Picture
    VaHiX 3,044 on at
    Deployment extension to business central
    Did you try the Permission Recorder tool in Business Central to record the permissions required for the custom workflow?
    This can help identify any missing permissions that need to be added to the permission set.
     
  • Jun Wang Profile Picture
    Jun Wang 7,443 Super User 2024 Season 2 on at
    Deployment extension to business central
    Could you share screenshot of the error message?

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans