AL icon indicating copy to clipboard operation
AL copied to clipboard

Facing issue with error 422

Open RagRawat opened this issue 8 years ago • 7 comments

hi,

Getting the Issue when I am Publish or publish without debugging.

The request for path /DynamicsNAV110/dev/apps failed with code 422. Reason: The extension was unable to be deployed due to a dependency between extensions.

Can anyone please help how can I do the same, previously I am working with the same.

launch.json { "version": "0.2.0", "configurations": [ { "type": "al", "request": "launch", "name": "Raghubir", "server": "http://localhost:7049", "serverInstance": "DynamicsNAV110", "authentication": "Windows" } ] }

RagRawat avatar Jul 03 '18 05:07 RagRawat

Do you have any dependencies in the app.json? "capabilities": [], "dependencies": [{ "appId": "abc12345-6789-0123-de45-fghi67890jkl","name": "My App", "publisher": "Myself", "version": "1.0.0.0"}], "screenshots": [],

As you are developing for NAV 2018 (I'd guess based on the ServerInstance Name), which AL Language Extension are you using?

dNsl9r avatar Jul 03 '18 05:07 dNsl9r

Thanks,

But I don't have any dependency.

app.json { "id": "0e4d8830-1f7a-4b91-8a5c-7fad9f31863c", "name": "ALProject3", "publisher": "Raghubir", "brief": "", "description": "Testing AL ", "version": "1.0.0.0", "compatibilityId": "0.0.0.0", "privacyStatement": "", "EULA": "", "help": "", "url": "", "logo": "", "capabilities": [], "dependencies": [], "screenshots": [], "platform": "11.0.12925.0", "application": "11.0.19394.0", "idRange": { "from": 50100, "to": 50149 } }

RagRawat avatar Jul 03 '18 06:07 RagRawat

@RagRawat I've seen this when another extension depends on the extension you want to update. Maybe this is the case for you as well?

tfenster avatar Jul 03 '18 06:07 tfenster

@tfenster means if I use 50000 in NAV with another project I cant do the same in another project.

RagRawat avatar Jul 03 '18 07:07 RagRawat

If you have another app with the ID range of 50100 .. 50149 you will not be able to publish the extension. But you'll get another error as far as I know. In my opinion Tobias question is, if you do have another extension that depends on your extension "ALProject3".

Just to be on the safe side I'd recommend you to uninstall and unpublish all previous extensions from your test database.

dNsl9r avatar Jul 03 '18 07:07 dNsl9r

Hi @RagRawat,

This error means that there is another extension on the server, which depends on your extension. This could happen, for example, if you use an in-client designer. The current behavior is that the designer automatically takes a dependency on all currently published extensions (see https://github.com/Microsoft/AL/issues/1704)

You can open Extension Management page and uninstall/unpublish the extensions which might have a dependency on yours.

defr0std avatar Jul 03 '18 09:07 defr0std

Thanks a lot to all friends. 👍

by uninstall and un publish will work.

RagRawat avatar Jul 06 '18 05:07 RagRawat