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

##[error]Aggregation Exception thrown, One or more errors occurred., first Exception message is: Object reference not set to an instance of an object. #145

Open
David-hughes8 opened this issue Jan 19, 2024 · 0 comments

Comments

@David-hughes8
Copy link

I'm using the LogicAppTemplate at the being of a build pipeline in MS DevOps. Unfrotunately the inline script returns:

##[error]Aggregation Exception thrown, One or more errors occurred., first Exception message is: Object reference not set to an instance of an object., for more information read the output file.

When i run:
$token= & az account get-access-token --resource=https://database.windows.net --query accessToken
Write-Host "##vso[task.setvariable variable=sqlToken;isOutput=true]$token"

            $token = $token | ConvertFrom-Json

            Write-Host "AccessToken:" $token

            Write-Host "Generating the template for $(ObjectName)" 
            Write-Host "From ResourceGroup: " $(DevResourceGroup)
            Write-Host " "               
            $templateO = Get-LogicAppTemplate -Token $token -LogicApp $(ObjectName) -ResourceGroup $(DevResourceGroup) -SubscriptionId $(DevSubcriptionId) 

I did put in the parameter -DebugOutPutFolder "$(System.DefaultWorkingDirectory)" but the debug file hasn't appeared neither.

Any ideas what could be missing?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant