我正在尝试将示例应用程序从Microsoft“ AL入门”文章(https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started)发布到我公司的D365沙箱中。我已严格按照指南中的步骤进行操作,但是在尝试下载构建和发布项目所需的符号时收到验证错误。我的帐户具有完整的管理员权限,因此我不会出现任何错误。
我发现了多次提到此错误的信息,但它们都适用于使用NAV软件包而不是附加AL应用程序构建外部应用程序,并且所提出的解决方案均无效。我们也一直在尝试从MS支持人员那里寻求帮助,但是自然已经获得了解决方法。
确切错误:
[2019-01-25 11:00:56.01] Using reference symbols cache path: c:\Users\tbarnett\Documents\AL\ALProject1\./.alpackages
[2019-01-25 11:00:56.01] Authenticating...
[2019-01-25 11:00:56.84] Sending request to https://api.businesscentral.dynamics.com/v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0
[2019-01-25 11:00:56.85] Sending request to https://api.businesscentral.dynamics.com/v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=13.0.0.0
[2019-01-25 11:01:25.08] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0 failed with code Unauthorized. Reason: Authorization has been denied for this request.
[2019-01-25 11:01:25.26] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=13.0.0.0 failed with code Unauthorized. Reason: Authorization has been denied for this request.
Microsoft (R) AL Compiler version 2.1.1.3797
Copyright (C) Microsoft Corporation. All rights reserved
Compilation started for project 'ALProject1' containing '1' files at '11:1:25.270'.
c:\Users\tbarnett\Documents\AL\ALProject1\HelloWorld.al(5,45): error AL0247: The target Page "Customer List" for the extension object is not found
Compilation ended at '11:1:25.273'.
Error: The package could not be created.
Account permissions changed, now I receive the following:
New Error:
The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=System&versionText=13.0.0.0 failed with code Forbidden. Reason: You do not have the following permissions on TableData NAV App: IndirectRead.
To view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '109457'.
launch.json(我尝试使用注释掉的服务器URL,上面的指南中未提及,未注释,但结果相同):
{
"version": "0.2.0",
"configurations": [
{
"type": "al",
"request": "launch",
"name": "Microsoft cloud sandbox",
//"server": "https://gryphonnetworks.crm.dynamics.com",
"startupObjectId": 22,
"startupObjectType": "Page"
}
]
}
我的开发环境:
Visual Studio代码:版本:1.30.2(系统设置程序)
提交:61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
日期:2019-01-07T22:54:13.295Z
AL语言扩展:2.1.69331
电子:2.0.12
铬:61.0.3163.100
Node.js:8.9.3
V8:6.1.534.41
操作系统:Windows_NT x64 6.1.7601
答案 0 :(得分:0)
一旦暴露了对TableData NAV应用程序没有IndirectRead权限的根本错误,我能够找到以下GitHub文章,其中详细说明了需要添加哪些权限才能下载和发布应用程序的符号: