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

"Object reference not set to an instance of an object" when importing #221

Closed randombyte-developer closed 3 years ago

randombyte-developer commented 3 years ago
2020-11-05T08:22:44.9660661Z ##[section]Starting: Import Solution
2020-11-05T08:22:44.9916787Z ==============================================================================
2020-11-05T08:22:44.9918988Z Task         : Import Solution
2020-11-05T08:22:44.9919311Z Description  : Import a Solution into a PowerApps/CDS/Dynamics 365 environment
2020-11-05T08:22:44.9919583Z Version      : 12.0.5
2020-11-05T08:22:44.9919785Z Author       : Wael Hamze
2020-11-05T08:22:44.9920993Z Help         : This task invokes [ImportSolutionRequest](https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.importsolutionrequest?view=dynamics-general-ce-9)
2020-11-05T08:22:44.9921554Z ==============================================================================
2020-11-05T08:22:47.1304755Z ##[error]Object reference not set to an instance of an object.
2020-11-05T08:22:47.1969725Z ##[section]Finishing: Import Solution
steps:
- task: MSCRMImportSolution@12
  displayName: 'Import Solution'
  inputs:
    crmConnectionString: 'AuthType=Office365;Url=$(Url);UserName=$(User);Password=$(Password)'
    solutionFile: '<something something>/solution.zip'

Exports work but imports don't. Any help where the problem could be?

WaelHamze commented 3 years ago

@randombyte-developer are you able to run the pipeline in debug mode and share more logs?

randombyte-developer commented 3 years ago

Sorry for the late reply.

Idk why but it works now. I didn't change anything. Maybe something in the backend wasn't working correctly at that time. I'll let you know when I get this error again.