AL icon indicating copy to clipboard operation
AL copied to clipboard

Could not download symbols. The request for path ... failed with code Forbidden. Reason: You do not have the following permissions on TableData Published Application: IndirectRead for company ...

Open NH2501 opened this issue 4 years ago • 7 comments

1. Describe the bug I got an on-prem (container) implementation upgraded from 18.0 to 19.0 I've checked previous similar issues and Google, but nothing worked for me. When try to download symbols I'm getting a permission error. I've double checked app.json and launch.json. I've checked permission assigned to the user I'm using. I got SUPER and EXTEN. MGT. - ADMIN roles assigned without specifying company. My dev/demo license for BC19 got this object with full rights, also is on the Effective permissions page.

2. To Reproduce Steps to reproduce the behavior:

I got the same on a clean container using 19.0.29884.30693 W1 artefacts.

3. Expected behavior To be able to download symbols in VS Code.

4. Actual behavior [2022-02-22 22:19:18.94] Using reference symbols cache path: some_path [2022-02-22 22:19:18.94] Sending request to some_url:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=19.0.0.0&appId=00000000-0000-0000-0000-000000000000&tenant=default [2022-02-22 22:19:18.94] Sending request to some_url:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0&appId=8874ed3a-0643-4247-9ced-7a7002f7135d&tenant=default [2022-02-22 22:19:19.51] The request for path /BC/dev/packages?publisher=Microsoft&appName=System&versionText=1.0.0.0&appId=8874ed3a-0643-4247-9ced-7a7002f7135d&tenant=default failed with code Forbidden. Reason: You do not have the following permissions on TableData Published Application: IndirectRead for company some_company.

To view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '31'. [2022-02-22 22:19:19.51] The request for path /BC/dev/packages?publisher=Microsoft&appName=Application&versionText=19.0.0.0&appId=00000000-0000-0000-0000-000000000000&tenant=default failed with code Forbidden. Reason: You do not have the following permissions on TableData Published Application: IndirectRead for company some_company.

To view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '32'. [2022-02-22 22:19:19.52] Could not download reference symbols. Please ensure that:

  1. The correct server name and instance are specified in the launch.json file.
  2. The correct application version is specified in the app.json file.
  3. The dependencies are correctly specified in the app.json file.

5. Versions:

  • AL Language: 18.0, runtime 7.0 / 19.0, runtime 8.0
  • Visual Studio Code: 1.64.2
  • Business Central: W1 19.0 (Platform 19.0.29884.30666 + Application 19.0.29894.30693)

Thank you for help.

NH2501 avatar Feb 22 '22 22:02 NH2501

When you are deploying an app, then the app will added to all companies. That means you need to have insert permissions in all companies. If you have a Production license then you are allowed to publish to both evaluation and non-evaluation companies. but if you have a evaluation license then it is allow to publish to evaluation companies, but only to non-evaluation companies for 30 days. For example, I have an environment with a evaluation license. It is 25 days since I got the license and created the environment. My environment has both a non-evaluation and a evaluation company, and I deploy all the apps I like. Then another 10 days roll by and now I try to deploy an app again, but now it fails. In order to keep testing my apps, I then go in and remove my non-evaluation companies, so my environment now only contains evaluation companies, and it is again possible for me to deploy apps.

To learn more see: Licensing in Business Central - Business Central | Microsoft Docs

thpeder avatar Feb 25 '22 08:02 thpeder

how to resolve this

sarikamaheshwari05 avatar Mar 21 '22 15:03 sarikamaheshwari05

And any hope to get a clearer error message about it as current notification is very misleading and improper.

NH2501 avatar Mar 22 '22 06:03 NH2501

Same error message as mention in subject line. I am upgrading from BC16.6 to BC19. after upgrade trying to download symbols from VS

On Tue, Mar 22, 2022 at 6:26 AM NH2501 @.***> wrote:

And any hope to get a clearer error message about it as current notification is very misleading and improper.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/AL/issues/6946#issuecomment-1074784934, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYKRTNKXUULW2VGZ3DEZO5TVBFRYJANCNFSM5PCU2WRQ . You are receiving this because you commented.Message ID: @.***>

-- Regards; Sarika Maheshwari +91-9971484155

sarikamaheshwari05 avatar Oct 11 '22 07:10 sarikamaheshwari05

Sarikamaheshwari, you can try to remove evaluation company mark directly in SQL, in company table, as far as I remember. This should allow you to proceed.

NH2501 avatar Oct 11 '22 12:10 NH2501

although this is quite an old issue I would like to add an unexpected resolution that worked for me.

the solution is to use the .flf file in stead of the .bclicense file.

Cost me some time to exclude all other suggestions. It is a license related issue so I tried the .flf file

BC Version 19.1 ? Please try this if everything else fails.

PeterBizz avatar Oct 30 '23 12:10 PeterBizz

although this is quite an old issue I would like to add an unexpected resolution that worked for me. the solution is to use the .flf file in stead of the .bclicense file. Cost me some time to exclude all other suggestions. It is a license related issue so I tried the .flf file BC Version 19.1 ? Please try this if everything else fails.

Thank you very much @PeterBizz I kept beating my head on the wall for a day until I found your suggestion!

UrpoKo avatar Apr 02 '25 06:04 UrpoKo