Unable to retrieve solution components from root folder path Solutions/GlobalizationStudioSecurityRole in the Git. #1315
Unanswered
JeanBroeselSMIT
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Everyone,
I'm currently trying to create a build- and release setup in Azure DevOps for our Powerplatform solutions.
In our DEV and (intermediate) Build environment we have connected one solution to the GIT repository managed in Azure DevOps. Whe I change something in my DEV-Environment I can commit the changes to GIT and then I am able to pull the changes on our Build environment. So far so good...
Now I created a Build Pipeline in DevOps which starts as soon as something is committed to the solution folder in GIT.
Since I don't know from which of my environments the changes are coming, mi first step for this build pipeline is to pull all changes from the repository to the build environment. I'm using this script:
`# Variablen
$clientId = "aaaaaa-bbbb-cccc-dddddddddddd"
$clientSecret = "someVeryFineSecretHere"
$tenantId = "vvvvvvvv-wwww-xxxx-yyyyyyyyyyyy"
$organizationUri = "https://orgsomething.crm4.dynamics.com/"
$solutionUniqueName = "GlobalizationStudioSecurityRole"
$scope = "$organizationUri/.default"
$tokenBody = @{
client_id = $clientId
client_secret = $clientSecret
scope = $scope
grant_type = "client_credentials"
}
$tokenResponse = Invoke-RestMethod -Method Post
-Uri "https://login.microsoftonline.com/$tenantId/oauth2/v2.0/token"-ContentType "application/x-www-form-urlencoded" `
-Body $tokenBody
$token = $tokenResponse.access_token
$restUrl = "$organizationUri/api/data/v9.2/PullChangesFromGit"
$headers = @{
"Authorization" = "Bearer $token"
"OData-Version" = "4.0"
"If-None-Match" = "null"
"Accept" = "application/json"
"Content-Type" = "application/json"
}
$body = @{
SolutionUniqueName = $solutionUniqueName
} | ConvertTo-Json
$response = Invoke-RestMethod -Method POST -Uri $restUrl -Headers $headers -Body $body
$response`
When I execute this script, I get the following error message:
`Invoke-RestMethod : {"error":{"code":"0x80040216","message":"Unable to retrieve solution components from root folder path Solutions/GlobalizationStudioSecurityRole in the Git."}}
In Zeile:42 Zeichen:13
Does someone have any Idea what could be the issue here? The App Registration has system customizer security role in the build environment.
Beta Was this translation helpful? Give feedback.
All reactions