AL icon indicating copy to clipboard operation
AL copied to clipboard

This Extension cannot be published as it has the same App ID and Version as a previously published Extension

Open RodrigoPuelma opened this issue 2 years ago • 62 comments

Please include the following with each issue:

1. Describe the bug When trying to publish an extension via VS Code to a clean sandbox, I get the following error:

"The request for path [] failed with code UnprocessableEntity. Reason: This Extension cannot be published as it has the same App ID and Version as a previously published Extension."

The sandbox is created in a tenant where the Production environment has current version 23.5.16502.16589 while the sandbox is created with the next version 24.0.16410.17628.

The extension versions are different as we are trying to do some testing for the next version of Business Central. This has never been an issue before.

2. To Reproduce

  1. Create new sandbox environment with version: AU Business Central 24.0 (Platform 24.0.18532.0 + Application 24.0.16410.17628)
  2. Run to publish app.

3. Expected behavior No errors when publishing app via VS Code.

4. Actual behavior Error message: "The request for path [] failed with code UnprocessableEntity. Reason: This Extension cannot be published as it has the same App ID and Version as a previously published Extension."

5. Versions: AU Business Central 24.0 (Platform 24.0.18532.0 + Application 24.0.16410.17628)

Final Checklist

Please remember to do the following:

  • [X] Search the issue repository to ensure you are reporting a new issue

  • [X] Reproduce the issue after disabling all extensions except the AL Language extension

  • [X] Simplify your code around the issue to better isolate the problem

RodrigoPuelma avatar Apr 19 '24 00:04 RodrigoPuelma

Update: After removing other sandbox environments and publishing again, I instead get the error below:

Reason: No published extensions match the specified parameter values.

When logging in I can see the extension published but not installed in the extension management. If I try to publish yet again, I continue getting the same error above.

RodrigoPuelma avatar Apr 19 '24 02:04 RodrigoPuelma

we encounter exactly the same issue.

YvesDesrumaux avatar Apr 19 '24 11:04 YvesDesrumaux

same issue here too

cghasvi avatar Apr 19 '24 11:04 cghasvi

Same thing happens to me too, even if in the development sandbox you try to load the app with the load extensions. If you compile from vs code the app is only published and not installed and if you do the manual installation operation it works. This is a Microsofts bug.

ENDO261985 avatar Apr 19 '24 12:04 ENDO261985

Hello, can you please provide some context on the state of your sandbox as you are trying to publish from VSCode?

  1. Is the currently installed version installed as a global app, a PTE, or a DEV extension?
  2. Does this happen only when publishing from VSCode as a DEV extension, and not via the extension management page?
  3. What happens if you uninstall the currently installed version, then re-install it, and then publish from VScode?

We recommend you to open a support case in order to get the necessary information about your environment. Please refer customer support to this GitHub issue if you do open the support case.

EmilDamsbo avatar Apr 19 '24 13:04 EmilDamsbo

Hi, if I'm publishing from vs code it means I'm developing on a sandbox, not a PRODUCTION. Even with the loading extensions I have problems, even if I unpublish the app and have a higher version of the app. Business central SAAS 24 wave 1.

ENDO261985 avatar Apr 19 '24 13:04 ENDO261985

I did this test to reproduce:

  1. Create new, fresh Sandbox - version 24.0.16410.17628 lang: NO
  2. Create new extension in Visual Code with AL:GO!
  3. Try to publish the new extension to new Sandbox with CTR+F5 or F5
  4. Error in VB Code . failed with code UnprocessableEntity. Reason: Ingen publiserte utvidelser samsvarer med de angitte parameterverdiene. (last part in Norwegian for some reason but same error as stated before)
  5. Extension is published to environment, but not installed
  6. I can install the published extension within BC "Installed Extension" page
  7. Main problem for me is that I cannot debug in version 24 now

cghasvi avatar Apr 19 '24 15:04 cghasvi

We have same issue from friday and hoping. but we can't even install from extension page. I hope that it will be fixed soon, this is really big error.

KarelKoncel avatar Apr 20 '24 17:04 KarelKoncel

Hello, can you please provide some context on the state of your sandbox as you are trying to publish from VSCode?

  1. Is the currently installed version installed as a global app, a PTE, or a DEV extension?
  2. Does this happen only when publishing from VSCode as a DEV extension, and not via the extension management page?
  3. What happens if you uninstall the currently installed version, then re-install it, and then publish from VScode?

We recommend you to open a support case in order to get the necessary information about your environment. Please refer customer support to this GitHub issue if you do open the support case.

Hello,

Thank you for your reply.

  1. The extension is installed from VS Code. The version installed in the PROD is a published, previous version (23).
  2. Impossible to know as I am pushing to a version that is a later version (24) and not available for production (I believe it is today 22/04/2024).
  3. It never gets installed, so there is nothing to uninstall.
  4. I have raised a question in Yammer. Considering no development cant be done by devs there is quite an urgency in having this issue solved.

RodrigoPuelma avatar Apr 21 '24 21:04 RodrigoPuelma

Hi, we have identified an issue with publishing in BC24 that will cause this. We're currently working on a hotfix and will deploy it to all clusters once ready.

Unfortunately, there is no workaround for this. It's non-deterministic, and eventually retrying will succeed.

thloke avatar Apr 22 '24 07:04 thloke

I'm getting the same issues too.

Suggestion: For deployment use the Extension Management interface Just for Debugging, you can add a configuration for Attach in the launch.json, Example below { "name": "Attach: Microsoft cloud sandbox", "type": "al", "request": "attach", "environmentType": "Sandbox", "environmentName": "sandbox", "breakOnError": "All", "breakOnRecordWrite": "None", "enableSqlInformationDebugger": true, "enableLongRunningSqlStatements": true, "longRunningSqlStatementsThreshold": 500, "numberOfSqlStatements": 10, "breakOnNext": "WebClient" }

RhipeDynamics avatar Apr 23 '24 05:04 RhipeDynamics

The same issue since 18/04 for me.

cvicq avatar Apr 23 '24 05:04 cvicq

Thank you @RhipeDynamics . The "attach" workaround is working and helps with debugging.

cghasvi avatar Apr 23 '24 05:04 cghasvi

same issue facing since yesterday and after upgrading app id and version it shows image

RDJ202V avatar Apr 23 '24 09:04 RDJ202V

Same here....

StijnBt avatar Apr 23 '24 09:04 StijnBt

I believe this is the same error -> #7726

ManishKutar avatar Apr 23 '24 10:04 ManishKutar

The same issue for me.

nick-webbgh avatar Apr 23 '24 14:04 nick-webbgh

Exactly the same issue for me.

bricetaullee avatar Apr 23 '24 14:04 bricetaullee

Same issue here, right now different/new error: image

frankjanssenwewo avatar Apr 23 '24 14:04 frankjanssenwewo

Same Issue for me, I am publishing the app as PTE and still it errored with "**Deployment failed. Errors: App ID : ******* Message : { An app with package ID '*******' is already published for tenant 'msft1a6720t93294803' } - Job Id : *********" . On extension management it is published, but not installed. Then I am able to install it successfully from there.

ashishsharmainecta avatar Apr 23 '24 16:04 ashishsharmainecta