microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
719 stars 242 forks source link

Problème de package avec Microsoft dynamics 365 #7725

Closed gbiyoghe27 closed 2 months ago

gbiyoghe27 commented 2 months ago

Je fais face à un bug concernant des packets nons pris en charge voici ce qui est mentioné: Quelqu'un à t il déja rencontré ce type de problème ? [2024-04-20 18:32:12.45] Using reference symbols cache paths: [c:\Users\gcbiy\Documents\AL\ALProject1.alpackages] [2024-04-20 18:32:12.45] Acquiring token for authority https://login.microsoftonline.com/common using correlation e3c5e4d4-b530-4c0c-a5c9-35922bce338c. [2024-04-20 18:34:00.67] Authenticated as user 'gil.christ@CRMbc254508.onmicrosoft.com' in tenant '619ec3b7-2827-438d-b87e-6eb992c2d67f'. Please note that these credentials are cached. Clear the credentials cache to authenticate as another user. [2024-04-20 18:34:00.67] Targeting Dynamics 365 Business Central. [2024-04-20 18:34:00.69] Sending request to https://api.businesscentral.dynamics.com/v2.0/sandbox/dev/metadata [2024-04-20 18:34:01.06] The request for path /v2.0/sandbox/dev/metadata failed with code NotFound. Reason: Not Found [2024-04-20 18:34:01.06] Sending request to https://api.businesscentral.dynamics.com/v2.0/sandbox/dev/webendpoint [2024-04-20 18:34:01.17] The request for path /v2.0/sandbox/dev/webendpoint failed with code NotFound. Reason: Not Found [2024-04-20 18:34:01.18] Sending request to https://api.businesscentral.dynamics.com/v2.0/sandbox/dev/metadata [2024-04-20 18:34:01.96] The request for path /v2.0/sandbox/dev/metadata failed with code NotFound. Reason: Not Found [2024-04-20 18:34:01.96] Sending request to https://api.businesscentral.dynamics.com/v2.0/sandbox/dev/webendpoint [2024-04-20 18:34:02.06] The request for path /v2.0/sandbox/dev/webendpoint failed with code NotFound. Reason: Not Found Microsoft (R) AL Compiler version 13.0.14.54431 Copyright (C) Microsoft Corporation. All rights reserved

Compilation started for project 'ALProject1' containing '1' files at '18:34:02.072'.

error AL1022: A package with publisher 'Microsoft', name 'Application', and a version compatible with '24.0.0.0' could not be found in the package cache folders: c:\Users\gcbiy\Documents\AL\ALProject1.alpackages error AL1022: A package with publisher 'Microsoft', name 'System', and a version compatible with '1.0.0.0' could not be found in the package cache folders: c:\Users\gcbiy\Documents\AL\ALProject1.alpackages

Compilation ended at '18:34:02.073'.

Error: The package could not be created.

Dyn

thloke commented 2 months ago

This looks like you're targeting an environment that doesn't exist. I see a sandbox under your current AAD tenant ID, but it's with a different name. Please double check your launch.json settings.

You need to change the environmentName property

gbiyoghe27 commented 2 months ago

Mon environnementName semble etre bien écrit , je te fournis le code au cas où tu trouverais une erreur dans Launch { "version": "0.2.0", "configurations": [ { "name": "Microsoft cloud sandbox", "request": "launch", "type": "al", "environmentType": "Sandbox", "environmentName": "sandbox", "startupObjectId": 22, "startupObjectType": "Page", "breakOnError": "All", "launchBrowser": true, "enableLongRunningSqlStatements": true, "enableSqlInformationDebugger": true } ] }``