Skip to main content

Notifications

Announcements

No record found.

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

Unable to download source of my own extension with Effective policies issue

(0) ShareShare
ReportReport
Posted on by 105

HI Experts,

I created an extensions and using it in production environment and it is working as expected.

My issue is about to download my own extension.

Extension Management -> selecting my extension -> Download Source (not greyed) 

Getting this issue: 

"The effective policies for this package do not allow you to download the source code. Contact the extension provider for more information."

Currently i'm working in a new version of the same extension in sandbox env. and i can deploy it with success.

Many thank in advance for any help.

Hicham

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: Unable to download source of my own extension with Effective policies issue

    Hi,

    If you think I was able to help you, you can close this thread by marking Yes button.

    Thanks again.

  • Hicham OE Profile Picture
    Hicham OE 105 on at
    RE: Unable to download source of my own extension with Effective policies issue

    HI NItin,

    To give you an update. I still could not make the first version app downloadable (from BC) but I could upload the seoncd version without any issue and all is working fine.

    I think I did something wrong in the process, because I'm having now the first and the second version displayed in Extension Management, the first one having "Is Intalled" as "No" and second version as "Yes".

    I really don't figure out if it is expected or not, but I'm investigating that in documentation.

    Thank you one more time for your help.

    Hicham

  • Hicham OE Profile Picture
    Hicham OE 105 on at
    RE: Unable to download source of my own extension with Effective policies issue

    Hi Nitin,

    Thank you for your reply, but this solution had already been done.

    In my sandbox, i created a new version of this app, and changed the parameter to donwload the source.

    I can download the second version of the app.

    But still not the first one.

    I tried also to unpack the first version .app contained in my second version project in vscode, published it in sandbox, but the results remain the same, with the effective policy issue.

    kind regards,

    Hicham

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: Unable to download source of my own extension with Effective policies issue

    Hi,

    yes go to the app and change the version no. And upload it again you would not loss data.

  • Hicham OE Profile Picture
    Hicham OE 105 on at
    RE: Unable to download source of my own extension with Effective policies issue

    HI Nitin,

    this is exactly the point, i've forgetted to make the allowDownloading source to true. but now I'm in production.

    Does you suggestion means that I have to upload one more time the same extension version ?

    I'm already having too much data depending from the fisrt version.

    Hicham

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: Unable to download source of my own extension with Effective policies issue

    Hi,

    if the extension belongs to you then please visit the extension in AL code with APP.json file and fine one of the following 

    `"resourceExposurePolicy": {"allowDebugging": <boolean>, "allowDownloadingSource": <boolean>, "includeSourceInSymbolFile": <boolean>}`

    make allowdownladingsource:true

    or find sourcecode: true

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans