AL icon indicating copy to clipboard operation
AL copied to clipboard

The request for path /v1.0/sandbox/dev/apps failed with code 422. Reason: The extension specifies a higher compilation target than allowed.

Open srinivasdes opened this issue 8 years ago • 4 comments

Hello,

Facing the following error while publishing the extension to the sandbox.

The request for path /v1.0/sandbox/dev/apps failed with code 422. Reason: The extension specifies a higher compilation target than allowed.

Can anyone help me to fix this issue..

Thanks

srinivasdes avatar Mar 02 '18 08:03 srinivasdes

Hi @srinivasdes In your app.json you have specified "target": "Internal" which is not allowed in the sandbox. Set it back to Extension and publish it again.

thpeder avatar Mar 02 '18 08:03 thpeder

Hi thpeder,

Thanks for your reply.

But if i changed the target value to extension following methods are not found with AL package.

TEMPORARYPATH Report.SAVEASPDF BLOBImport BLOBExport FileMgmt.UploadFile ExcelBuf.OpenBook

Is there any chance to have the above methods to al extension package to ignore the compile error.

Thanks.

srinivasdes avatar Mar 02 '18 12:03 srinivasdes

I'll recommend you searching through issues here on Github. For example TemporaryPath was discussed here: #479.

If your plans are to only run your code on-premise and never to publish it to AppSource then you can switch back to use "target":"Internal". To get started on that you can either create a machine on Azure from our template at http://aka.ms/navdeveloperpreview or use the containers we make available which you can read more about here: https://github.com/Microsoft/nav-docker

thpeder avatar Mar 02 '18 12:03 thpeder

It looks like this issue was resolved. If you have more issues please open a new issue

doivosevic avatar Mar 06 '18 12:03 doivosevic