AL icon indicating copy to clipboard operation
AL copied to clipboard

CTRL+ALT+F5(RAD Development) = Delete data from extension!!!

Open albgen opened this issue 10 months ago • 9 comments

Dears,

This is a major issue i have. I'm trying to deploy am extension(hopefully on a test/dev environment) and wanted to use RAD publishing without debugging for faster experience. Everytime i try to do it, it will just delete all the data from the extension. It seems it is unpublishing/uninstalling and deleting all the data and than publishing again. I'm on version 15.0.19.45509 of AL Compiler.

thanks Internal work item: AB#566561

albgen avatar Feb 19 '25 14:02 albgen

What does your "schemaUpdateMode" inside launch.json/workspace settings say?

dannoe avatar Feb 19 '25 15:02 dannoe

"schemaUpdateMode": "ForceSync"

Just to be clear; with a CTRL+F5, everything works and nothing is deleted.

albgen avatar Feb 19 '25 15:02 albgen

RAD only publishes differences. It takes the changes as a compilation unit and the rest of the original code base is self referenced, with other original references. It is an AL compilation step and thus a publishing operation. I will take it as a bug for now, that we either fix it or we skip ForceSync on RAD

kalberes avatar Feb 21 '25 14:02 kalberes

The important part is to not have the data deleted. Hopefully nobody is using rad on production(i guess) but it any case it's just not normal to delete the data.

albgen avatar Feb 21 '25 14:02 albgen

RAD is a developer scenario from VsCode only

kalberes avatar Feb 21 '25 14:02 kalberes

@albgen

Can we have more details on this? What have you changed. Since I have been trying to repro and it seems to work.

kalberes avatar Feb 21 '25 14:02 kalberes

I restored a production environment on a development environment and than just ctrl+alt+f5. Is there any log or something i can enable so i can get more info?

albgen avatar Feb 21 '25 15:02 albgen

For RAD you need to have a baseline of an app published, then you do changes in your code base for that app and issue a Ctrl Alt F5. The changes can be seen in the rad.json if you just do a Ctrl Shift B (build) before doing a Ctrl ALt F5.

I would have done a Ctrl F5 in your scenario first. Although it is weird that with no RAD state you lost data. What if you do the same with a Ctrl F5, (restore and Ctrl F5)?

kalberes avatar Feb 21 '25 15:02 kalberes

I restored a production environment on a development environment and than just ctrl+alt+f5. Is there any log or something i can enable so i can get more info?

If you can share the AAD tenant ID with us, we can also look at the logs to see what is happening on the server if it's a SaaS environment.

thloke avatar Mar 03 '25 00:03 thloke

Issue was never reproduced and no input was given. Closing as stale.

EmilDamsbo avatar Jul 24 '25 16:07 EmilDamsbo