AL icon indicating copy to clipboard operation
AL copied to clipboard

Cannot publish to cloud sandbox from VS Code (any extension)

Open himalpatel81 opened this issue 7 years ago • 6 comments

  • AL Extension Version: 2.0.56856

  • Server Version: Sandbox

  • Created a new project and set the proper name/publisher in app.json file.

  • HEre is my launch.json file. { "version": "0.2.0", "configurations": [ { "name": "Publish", "type": "al", "request": "launch", "startupObjectId": 22 } ] } -Getting the following error during publish. There is no other error in Debug Console or event viewer.

Could not publish the package to the server. See Visual Studio Code debug console for more details.

himalpatel81 avatar Dec 04 '18 05:12 himalpatel81

I have the same issue. I could not publish to either online sandbox or local container sandbox.

RuiningFan avatar Dec 04 '18 06:12 RuiningFan

I have the same issue. I could not publish to either online sandbox or local container sandbox.

try to set "runtime": "2.0" in your app.json file and try again.

himalpatel81 avatar Dec 04 '18 07:12 himalpatel81

Is your vscode version 1.29.x ? If it is, downgrade to 1.28.x: https://code.visualstudio.com/updates/v1_28

And disable background update untill a new version which fix the problem is released image

judecot avatar Dec 04 '18 07:12 judecot

Check if you have "runtime": "2.0" in your app file. We got the same issue around 2 weeks ago and spend some considerable time to realise the issue which we didn't had previously. If you try to install it to your on-premise installation it will show the error on the event log.

Tharangac avatar Dec 09 '18 22:12 Tharangac

@himalpatel81 have you resolved your problem? You can see more information about runtime versioning here: https://youtu.be/7jNByP3kFPk?t=2804 . If the issue is not related to versioning, could you please post the version of VSCode you are using, the version of the sandbox you are targetting, and any log messages that you think might be relevant.

atoader avatar Dec 12 '18 07:12 atoader

Thanks for sharing the link. Yes, i got the issue resolved by changing the runtime version to 2.0.

On Wed, Dec 12, 2018 at 6:53 PM Alexandru Toader [email protected] wrote:

@himalpatel81 https://github.com/himalpatel81 have you resolved your problem? You can see more information about runtime versioning here: https://youtu.be/7jNByP3kFPk?t=2804

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/AL/issues/4304#issuecomment-446494574, or mute the thread https://github.com/notifications/unsubscribe-auth/AOINxU57fkjysVv9--_LydyQONUkOAgZks5u4LXlgaJpZM4Y_7uB .

himalpatel81 avatar Dec 12 '18 09:12 himalpatel81