dyn365-ce-vsts-tasks
dyn365-ce-vsts-tasks copied to clipboard
Set Admin Mode error: Object reference not set to an instance of an object
Hi,
Thanks for sharing the amazing tools!
I am facing below error using Set Admin Mode: true action. I was using System Admin user and tried passing static values to parameters but still the same error.
2021-05-17T18:28:45.1187024Z ##[section]Starting: Set Admin Mode: true 2021-05-17T18:28:45.1323054Z ============================================================================== 2021-05-17T18:28:45.1323435Z Task : Set Online Instance Admin Mode 2021-05-17T18:28:45.1323770Z Description : Enables/Disables Admin Mode for a PowerApps/CDS/Dynamics 365 environment 2021-05-17T18:28:45.1324053Z Version : 12.0.4 2021-05-17T18:28:45.1324272Z Author : Wael Hamze 2021-05-17T18:28:45.1324706Z Help : This task uses the (Microsoft.Xrm.OnlineManagementAPI)[https://www.powershellgallery.com/packages/Microsoft.Xrm.OnlineManagementAPI] 2021-05-17T18:28:45.1325189Z ============================================================================== 2021-05-17T18:28:47.8439186Z Downloading Microsoft.Xrm.OnlineManagementAPI 1.2.0.1 to: C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.37 2021-05-17T18:28:50.5053600Z ##[error]Object reference not set to an instance of an object. 2021-05-17T18:28:50.5913467Z ##[section]Finishing: Set Admin Mode: true
I am getting the same error with the same Task and parameters