WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Set Admin Mode error: Object reference not set to an instance of an object #244

Open khoait opened 3 years ago

khoait commented 3 years ago

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

parvezghumra commented 2 years ago

I am getting the same error with the same Task and parameters