Error AL 1045

Published by admin. 29. June 2019 2 Comments

Symptons: You are creating a new AL Project for Business Central with Visual Studio Code and you get the following error message: The package cache [...]/.alpackages could not be found. And after trying to compile you get the error: error AL1045: [...]/.alpackages could not be found. as well as a message saying you do not have the required permissions on the TableData NAV App: IndirectRead. This happened to me after executing an update for Business Central. After that, my privileges for the sandbox were set to default and I had to change them again.

Explanation: If you open Effective Permissions in your BC sandbox and you search for the object name “NAV App”, with the object type “TabeData” you will see that the value for Read Permissions is not set to “yes” or “indirect”. You need to get this permission for NAV App. The easiest way to do so is to ask a BC user with enough privileges to add you to a user group which has the permission to read from NAV App.

Solution:

  1. Sign in to BC using an account with enough permissions
  2. Open the Sandbox
  3. Navigate to “Permission Set By User”
  4. Add the correspoding user to a suitable group

2 Comments

Justin says:

Long time supporter, and thought I’d drop a comment.

Your wordpress site is very sleek – hope you don’t mind
me asking what theme you’re using? (and don’t mind if I steal
it? :P)

I just launched my site –also built in wordpress like yours–
but the theme slows (!) the site down quite a bit.

In case you have a minute, you can find it by searching for “royal cbd”
on Google (would appreciate any feedback) – it’s still in the works.

Keep up the good work– and hope you all take care of yourself during the coronavirus scare!

admin says:

Hey mate, thanks a lot! I am using the Velux theme. Just checked out your website and I must say it looks pretty neat already, I don’t think you need to use my theme.

Leave a Reply

Your email address will not be published. Required fields are marked *