WaelHamze / xrm-ci-framework

xRM CI Framework provides you with the tools automate the build and deployment of your CRM Solution. Using the framework to implement a fully automated DevOps pipeline will allow you to deploy more frequently with added consistency and quality.
MIT License
186 stars 116 forks source link

How to Download the Log File from Import Solution which was failed to import #223

Closed missdynamicscrm closed 5 years ago

missdynamicscrm commented 5 years ago

Hi Wael Hamze,

Thanks for amazing work you have done! We have been using these tools. Just want to know, is there any way to download the solution import error when the import failed like if we import manually from UI, I mean the XML?

In my case is: SoluitonFailed_myorgCore((20190625.2)).xml I am using AzureDevOps Services (Online), if we can get the XML file then it will be very good so can understand the error message.

We have these errors:

2019-06-26T03:41:05.1529592Z PackageDeployer Information: 8 : myorgCore Import Failed 2019-06-26T03:41:05.1529827Z result: 2019-06-26T03:41:05.1529977Z code: 0 2019-06-26T03:41:05.1530118Z Description: Solution Import failed while running import, Check Log and solution result file named SoluitonFailed_myorgCore((20190625.2)).xml 2019-06-26T03:41:05.1530509Z Details 2019-06-26T03:41:05.3434418Z ##[error]Failed to import the solution into Microsoft Dynamics CRM. Verify the state of the solution in CRM. Rerunning this tool may correct the state. **\nThe solution import failed. See the log file. 2019-06-26T03:54:00.7047737Z ##[error]The operation was canceled. 2019-06-26T03:54:00.7053353Z ##[section]Finishing: MSCRM Package Deployer: myorg.Cmp.SalesSupport.Crm.DeploymentPackage.dll

Thank you!

ManirajKV commented 5 years ago

Hi Aileen, I guess, we have the log files in the Import jobs entity ? can't we get from there? Many thanks.

WaelHamze commented 5 years ago

@missdynamicscrm the logs get uploaded to the pipeline logs, so you should be able to download it from there, if there are any issues in upload, the importjobid should be disabled in the logs, so you can always download it from the CRM instance later

kushalbhola commented 9 months ago

Is this issue resolved? I am getting a same error and cannot find any logs