AL icon indicating copy to clipboard operation
AL copied to clipboard

Downloading wrong Symbol Versions from Cloud instances

Open IDAG-FHO opened this issue 1 year ago • 21 comments

Downloading the symbols from Cloud tries to download the Microsoft App Version 25.4 although we have installed the version 25.3. This happened today, Monday 24.02.2025 on all our projects that are in cloud and without any code/settings change from our side.

To reproduce:

  • If you have an app that you can publish in a cloud instance with the actual version, delete the symbol references in your ".alpackages" folder. Try to download the symbols.
  • Create a new Project "AL GO!". Configure your launch.json to a cloud instance with the Microsoft App Version 25.3. Try to download the Symbols.

Result: [2025-02-24 16:26:38.65] The request for path /v2.0/BCTEST/dev/packages?publisher=Microsoft&appName=Business%20Foundation&versionText=25.4.0.0&appId=f3552374-a1f2-4356-848e-196002525837&tenant=d958dac5-4f95-4943-96ed-1ada1fc0581e failed with code NotFound. Reason: No published package matches the provided arguments. [2025-02-24 16:26:38.65] The request for path /v2.0/BCTEST/dev/packages?publisher=Microsoft&appName=System%20Application&versionText=25.4.0.0&appId=63ca2fa4-4f03-4f2b-a480-172fef340d3f&tenant=d958dac5-4f95-4943-96ed-1ada1fc0581e failed with code NotFound. Reason: No published package matches the provided arguments. [2025-02-24 16:26:38.70] The request for path /v2.0/TEST/dev/packages?publisher=Microsoft&appName=Base%20Application&versionText=25.4.0.0&appId=437dbf0e-84ff-417a-965d-ed2bb9650972&tenant=d958dac5-4f95-4943-96ed-1ada1fc0581e failed with code NotFound. Reason: No published package matches the provided arguments. [2025-02-24 16:26:38.70] Error: Failed to download the following references: System Application by Microsoft (25.4.0.0) Business Foundation by Microsoft (25.4.0.0) Base Application by Microsoft (25.4.0.0) [2025-02-24 16:26:38.70] All reference symbols have been downloaded.

IDAG-FHO avatar Feb 24 '25 15:02 IDAG-FHO

I have the same problem since yesterday, Feb 24. With all existing projects a Donwload symbol leads to the error message that the reference to 25.4.0.0 cannot be downloaded. Installed AL Language extension is 14.2.1249978 The sandbox has version 25.3.28755.30175. "application" ist set to 24.0.0.0 "runtime" is set to "14.0" [2025-02-25 08:11:06.59] Error: Failed to download the following references: System Application by Microsoft (25.4.0.0) Business Foundation by Microsoft (25.4.0.0) The error can be reproduced by creating a new project with AL: Go! and then downloading the symbols. Environment shows Version 25.3.28755.30175 with no further updates available. Localisation: Swiss CH

It even happens with a blank new AL:Go! Project. So pure Microsoft.

danexoag avatar Feb 25 '25 07:02 danexoag

Same issue in here. Localisation NL.

Aize-S avatar Feb 25 '25 08:02 Aize-S

I have same issue in localisation ES. I've tried to "force" the base application version in dependencies without success.

evenmiles avatar Feb 25 '25 11:02 evenmiles

Updated to BC25.4, now it works again.

Aize-S avatar Feb 25 '25 11:02 Aize-S

Updated to BC25.4, now it works again.

Yes, now that wen can install the 25.4 update that is one way. But I expect that problem to happen on the next versions, too. And I hope that we get a fix for that. Or at least a hint what we can do about it.

IDAG-FHO avatar Feb 25 '25 12:02 IDAG-FHO

Updated to BC25.4, now it works again.

Yes, now that wen can install the 25.4 update that is one way. But I expect that problem to happen on the next versions, too. And I hope that we get a fix for that. Or at least a hint what we can do about it.

I agree that it's not something that we would like to have happen in next versions.

Aize-S avatar Feb 25 '25 14:02 Aize-S

What version is your app running?

From what I can tell, if an app depends on another app with a version higher than the platform version, it attempts to load the latest symbols platform version.

I’m running into an issue with an app with version 24.0.x.x. It depends on another app with version 23.11.x.x, in my app.json but the only version of that dependent app installed in the SaaS environment is 25.12.x.x.

When downloading symbols in the development environment, it seems to try fetching the latest symbol version (25.4.0.0), even though the SaaS environment is running 25.3.x.x.

hreinnbasicform avatar Feb 26 '25 17:02 hreinnbasicform

Not able to download the symbol today onwards, Any solution

error AL1022: A package with publisher 'Microsoft', name 'Business Foundation', and a version compatible with '25.4.0.0' could not be found in the package cache folders: d:\RS.alpackages error AL1022: A package with publisher 'Microsoft', name 'System Application', and a version compatible with '25.4.0.0' could not be found in the package cache folders: d:\RS.alpackages error AL1022: A package with publisher 'Microsoft', name 'Base Application', and a version compatible with '25.4.0.0' could not be found in the package cache folders: d:\RS.alpackages

AnasNavTech avatar Feb 28 '25 14:02 AnasNavTech

Only solution I can provide at the moment is to update a sandbox environment to BC Version 25.4 and develop with the symbols downloaded from there. Deployment will still work on 25.3.

IDAG-FHO avatar Feb 28 '25 14:02 IDAG-FHO

after updating getting error in object like below

Image

AnasNavTech avatar Feb 28 '25 14:02 AnasNavTech

Restart extensionhost fixed the missing symbol for me, i.e. restart VSCode.

hreinnbasicform avatar Feb 28 '25 14:02 hreinnbasicform

Is any of the dependencies with a version higher than valid, i.e. 23.20.x.x - this seems causes the debug server to deliver the incorrect symbol files.

hreinnbasicform avatar Feb 28 '25 14:02 hreinnbasicform

Thank you so much for swift reply . It works after reloading windows

AnasNavTech avatar Feb 28 '25 14:02 AnasNavTech

We have the same issue in localization FR

leelane0 avatar Feb 28 '25 17:02 leelane0

Still the same issue here (NL);

app.json { .. "platform": "25.0.0.0", "application": "25.0.0.0", "runtime": "14.0" .. }

jeffreypoen avatar Mar 05 '25 08:03 jeffreypoen

I had the same problem in NL version , By following below steps it got fixed.

  1. Update the sandbox with latest version
  2. Download the symbol again
  3. Reload the AL window

Thank you

AnasNavTech avatar Mar 05 '25 08:03 AnasNavTech

@jeffreypoen can you list the versions of the dependencies of the project ? If any dependency has a version info that is invalid (i.e. 25.14) then this error will be caused - at least in my case.

@AnasNavTech has posted a solution - you can update the sandbox and still deploy to production without updating production.

hreinnbasicform avatar Mar 05 '25 09:03 hreinnbasicform

This thread has split into two different issues.

  1. Symbol downloading takes the highest published version, not the tenant's installed version of a dependency. This has always been like this, and is expected though we might want to revisit this since it's been a while since we last thought about this.
  2. __MissingTypeSymbol__ error after downloading symbols. This is not expected. Is there a reliable repro for this?

@kalberes - we've discussed in the past changing the way we download symbols to use installed instead of latest published. Maybe this could be a launch.json or config.

thloke avatar Mar 10 '25 04:03 thloke

The pattern seems to have started to occur from last update to version 25.4 from 24.3. Its happening again now, at least for several Norwegian tenants which are currently on 25.4.29661.29959. With new version available 25.5.30849.31109

It doesn't work changing the VS Code settings for the AL Language ( pre-release etc. ) It doesn't work changing the runtime or platform/ application dependencies. It doesn't work waiting x amount of time and try again.

The only way I found to fix this is to do one of the below:

  1. Schedule an early update, then pull the updated symbols.
  2. Paste the symbols into the current app stored from a previous download in another project ( with the current version ).
  3. If you do not posses the symbols you need to create a new instance with the next version, which interestingly at the time of writing, is unable to be created with the current ( pre-update ) version ( 25.4 ), and could be related to the problem:

Image

I assume the propagated dependencies is triggered from a MS app that is force fed from the cloud tenant, that does not correspond with the currently installed version. This version does not exist currently and is referencing the symbols for the next version in the queued update.

I've tried this with an app without dependencies, same result:

The following dependencies will be queried for propagated dependencies: System Application by Microsoft (25.5.0.0) Business Foundation by Microsoft (25.5.0.0) Base Application by Microsoft (25.5.0.0)

PHN-TRIMIT avatar Mar 13 '25 19:03 PHN-TRIMIT

Having this issue in sweden since yesterday, might be related to the fact that microsoft verification script was causing massive problems. Have MS shared any insights on this issue yet?

FredrikDeGovia avatar Mar 21 '25 14:03 FredrikDeGovia