microsoft / coe-starter-kit

Other
767 stars 226 forks source link

[ALM Accelerator - BUG]: Error Deleting unmanaged solution #3727

Closed rfarris2000 closed 2 years ago

rfarris2000 commented 2 years ago

Describe the issue

The step Power Platform Delete solution throws an error with "A task was canceled."

The actual solution is deleted and is not present in the environment and but the error is thrown.

pac solution delete --solution-name SolutionName

We applied the changes from #3716 but this has no effect as it is later in the pipeline

Expected Behavior

If the solution is deleted then no error should be thrown.

What component are you experiencing the issue with?

ALM Accelerator Pipelines

What solution version are you using?

Latest

Steps To Reproduce

Using the ALM initiate a delete of an unmanaged solution

Anything else?

No response

mikefactorial commented 2 years ago

@rfarris2000 any chance you can provide the full error message? Also, have you tried rerunning the pipeline that failed from Azure DevOps to see if it will finish?

rfarris2000 commented 2 years ago

@mikefactorial Here is the full log. I haven't tried re-running it because the solution is actually deleted.

2022-09-20T18:39:17.8197655Z ##[section]Starting: Power Platform Delete Managed Solution 2022-09-20T18:39:17.8408866Z ============================================================================== 2022-09-20T18:39:17.8409938Z Task : Power Platform Delete Solution 2022-09-20T18:39:17.8410300Z Description : Power Platform Delete Solution 2022-09-20T18:39:17.8410538Z Version : 2.0.7 2022-09-20T18:39:17.8410795Z Author : Microsoft 2022-09-20T18:39:17.8411080Z Help : More Info 2022-09-20T18:39:17.8411430Z ============================================================================== 2022-09-20T18:39:18.1645597Z Discovered environment url from explicit input parameter 'Environment': $(BuildTools.EnvironmentUrl) 2022-09-20T18:39:18.1678141Z Discovered Azure DevOps variable expression that needs resolving: $(BuildTools.EnvironmentUrl) -> BuildTools.EnvironmentUrl 2022-09-20T18:39:18.1689124Z Falling back to url from service connection, using: https://ORGHIDDEN.crm.dynamics.com/ 2022-09-20T18:39:18.1715976Z [ 'authN to env: authType=SPN; cloudInstance: Public; envUrl: https://ORGHIDDEN.crm.dynamics.com/' ] 2022-09-20T18:39:20.9272269Z [ '\'\' authenticated successfully.' ] 2022-09-20T18:39:20.9322399Z [ 'Validating connection...' ] 2022-09-20T18:39:21.5597912Z [ 'Connected to...Developer\'s Environment' ] 2022-09-20T18:39:21.6864198Z [ 'Authentication profile created' ] 2022-09-20T18:39:21.6891676Z [ ' DATAVERSE https://ORGHIDDEN.crm.dynamics.com/ : ** Public' ] 2022-09-20T18:39:21.6892152Z [ '' ] 2022-09-20T18:39:21.8896815Z [ 'The Authentication Result: \'\' authenticated successfully.,Validating connection...,Connected to...Developer\'s Environment,Authentication profile created, * DATAVERSE https://ORGHIDDEN.crm.dynamics.com/ : *** Public,' ] 2022-09-20T18:39:21.8903612Z [ 'Calling pac cli inputs: solution delete --solution-name SolutionNameHidden' ] 2022-09-20T18:39:23.9148474Z [ 'Connected to...Developer\'s Environment' ] 2022-09-20T18:39:24.1008929Z [ 'Deleting Dataverse Solution...' ] 2022-09-20T18:43:25.3228689Z [ 'Microsoft PowerPlatform CLI' ] 2022-09-20T18:43:25.3230051Z [ 'Version: 1.18.4+g1a00e63' ] 2022-09-20T18:43:25.3230597Z [ '' ] 2022-09-20T18:43:25.3231158Z [ 'Error: A task was canceled.' ] 2022-09-20T18:43:25.3231647Z [ '' ] 2022-09-20T18:43:25.3232142Z [ '' ] 2022-09-20T18:43:25.3232911Z [ 'Usage: pac solution delete --solution-name' ] 2022-09-20T18:43:25.3233445Z [ '' ] 2022-09-20T18:43:25.3234361Z [ ' --solution-name Name of the solution (alias: -sn)' ] 2022-09-20T18:43:25.3235096Z [ '' ] 2022-09-20T18:43:25.4761190Z ##[error]error: 1 2022-09-20T18:43:25.4781636Z ##[error]failed: Connected to...Developer's Environment Deleting Dataverse Solution... Microsoft PowerPlatform CLI Version: 1.18.4+g1a00e63

Error: A task was canceled.

Usage: pac solution delete --solution-name

--solution-name Name of the solution (alias: -sn)

2022-09-20T18:43:26.6199691Z [ 'Authentication profiles and token cache removed' ] 2022-09-20T18:43:26.8148413Z [ 'The Clear Authentication Result: Authentication profiles and token cache removed' ] 2022-09-20T18:43:26.8161455Z ##[error]Error: Connected to...Developer's Environment Deleting Dataverse Solution... Microsoft PowerPlatform CLI Version: 1.18.4+g1a00e63

Error: A task was canceled.

Usage: pac solution delete --solution-name

--solution-name Name of the solution (alias: -sn)

2022-09-20T18:43:26.8318674Z ##[section]Finishing: Power Platform Delete Managed Solution

CoEStarterKitBot commented 2 years ago

@rfarris2000 This has been fixed in the latest release. Please install the latest version of the toolkit following the instructions for installing updates. Note that if you do not remove the unmanaged layers as described there you will not receive updates from us.