Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALM Accelerator - Bug] Fails to install Power Platform Build Tools ("A task is missing...") #3450

Closed
piyushpaliwal opened this issue Aug 14, 2022 · 8 comments
Assignees
Labels
alm-accelerator ALM Accelerator Components and Apps question Further information is requested

Comments

@piyushpaliwal
Copy link

What is your question?

I was trying out the ALM Accelerator and was able to configure everything but now when I am trying to use the Commit Solution feature, it throws an error as follows

CustomAzureDevOps.RunPipeline failed: {"$id":"1","innerException":null,"message":"A task is missing. The pipeline references a task called 'microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller' with version '0'. This indicates that the specific task version can not be found. (job 'export_solution_to_git', step ''.) A task is missing. The pipeline references a task called 'microsoft-IsvExpTools.PowerPlatform-BuildTools.publish-customizations.PowerPlatformPublishCustomizations' with version '0'. This indicates that the specific task version can not be found. (job 'export_solution_to_git', step ''.) A task is missing. The pipeline references a task called 'microsoft-IsvExpTools.PowerPlatform-BuildTools.export-solution.PowerPlatformExportSolution' with version '0'. This indicates that the specific task version can not be found. (job 'export_solution_to_git', step ''.) A task is missing. The pipeline references a task called 'microsoft-IsvExpTools.PowerPlatform-BuildTools.export-solution.PowerPlatformExportSolution' with version '0'. This indicates that the specific task version can not be found. (job 'export_solution_to_git', step ''.) A task is missing. The pipeline references a task called 'microsoft-IsvExpTools.PowerPlatform-BuildTools.unpack-solution.PowerPlatformUnpackSolution' with version '0'. This indicates that the specific task version can not be found. (job 'export_solution_to_git', step ''.)","typeName":"Microsoft.Azure.Pipelines.WebApi.PipelineValidationException, Microsoft.Azure.Pipelines.WebApi","typeKey":"PipelineValidationException","errorCode":0,"eventId":3000}

image

I feel like I am doing something wrong, however not able to pinpoint what exactly is happening. Any help would be greatly appreciated.

What component are you experiencing the issue with?

ALM Accelerator Pipelines

What solution version are you using?

August 2022 - 1.0.20220726.1

@piyushpaliwal piyushpaliwal added alm-accelerator ALM Accelerator Components and Apps question Further information is requested labels Aug 14, 2022
@mikefactorial
Copy link
Contributor

@piyushpaliwal thanks for bringing this to our attention. A new version of the build tools were released on Friday that seems to have led to this issue. The build tools are backward compatible for anyone who installed the previous version prior to the new version being released, but it appears that there is no backward compat if you are installing the build tools for the first time with the new version.
We will work to mitigate this. In the meantime you can update the pipelines to the new version by replacing all references to the @0 version with @2. For example change

microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller@0

to

microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller@2

Here is the full list of affected files.
image

@mikefactorial mikefactorial pinned this issue Aug 14, 2022
@mikefactorial mikefactorial changed the title [ALM Accelerator - QUESTION] Fails to install Power Platform Build Tools [ALM Accelerator - Bug] Fails to install Power Platform Build Tools ("A task is missing...") Aug 14, 2022
@mikefactorial
Copy link
Contributor

@piyushpaliwal as a follow up our September release will be on the @2 version so if you make the updates above in the meantime you won't have to worry about remaking those changes going forward.

@piyushpaliwal
Copy link
Author

Thanks @mikefactorial for the inputs. Will try and report in case everything works as expected.

@mikefactorial
Copy link
Contributor

We've published a Hotfix for the v2 Build Tools https://github.com/microsoft/coe-alm-accelerator-templates/releases/tag/CenterofExcellenceALMAccelerator-August2022-HF1

@mikefactorial mikefactorial unpinned this issue Aug 17, 2022
@mikefactorial mikefactorial self-assigned this Aug 25, 2022
@CoEStarterKitBot
Copy link
Collaborator

@piyushpaliwal 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.

@jfung85
Copy link

jfung85 commented Apr 26, 2023

We are on Accelerator Version: 1.0.20230405.2(Managed) and also trying to commit a first solution after configuring all the settings. We received this error: Error running pipeline: CustomAzureDevOps.RunPipeline failed: {"$id":"1","innerException":null,"message":"A task is missing. The pipeline references a task called 'microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com/. (Task version 2, job 'export_solution_to_git', step ''.)\nA task is missing. The pipeline references a…

We are trying to determine if this is a new issue or also considering if it is related to the ALM Accelerator Upgrade steps at this article (https://learn.microsoft.com/en-us/power-platform/guidance/alm-accelerator/setup-upgrade-configuration) that describes updating the pipeline after the ALM Accelerator solution has been upgraded. We've attempted the steps and it looked like it was successful but uncertain if it was completed correctly. After attempting to try the steps again, we receive an error at the syncjob step: Starting: Create PR - update-from-original-repo to main -> ERROR: TF401179: An active pull request for the source and target branch already exists. I'm unable to find the active pull request in order to complete the process so this may be part of the issue.

Is it possible to determine if the original error above is related to the Pipeline upgrade steps or if the microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller is actually missing and needs to be installed?

@jfung85
Copy link

jfung85 commented Apr 26, 2023

We are on Accelerator Version: 1.0.20230405.2(Managed) and also trying to commit a first solution after configuring all the settings. We received this error: Error running pipeline: CustomAzureDevOps.RunPipeline failed: {"$id":"1","innerException":null,"message":"A task is missing. The pipeline references a task called 'microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com/. (Task version 2, job 'export_solution_to_git', step ''.)\nA task is missing. The pipeline references a…

We are trying to determine if this is a new issue or also considering if it is related to the ALM Accelerator Upgrade steps at this article (https://learn.microsoft.com/en-us/power-platform/guidance/alm-accelerator/setup-upgrade-configuration) that describes updating the pipeline after the ALM Accelerator solution has been upgraded. We've attempted the steps and it looked like it was successful but uncertain if it was completed correctly. After attempting to try the steps again, we receive an error at the syncjob step: Starting: Create PR - update-from-original-repo to main -> ERROR: TF401179: An active pull request for the source and target branch already exists. I'm unable to find the active pull request in order to complete the process so this may be part of the issue.

Is it possible to determine if the original error above is related to the Pipeline upgrade steps or if the microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller is actually missing and needs to be installed?

I was able to resolve this error by installing the extension from these steps: https://learn.microsoft.com/en-us/power-platform/guidance/alm-accelerator/setup-components-manually#install-azure-devops-extensions

Thanks for the help @mikefactorial !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alm-accelerator ALM Accelerator Components and Apps question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

4 participants