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
117 stars 56 forks source link

duplicate import job id already exists #113

Closed ToHa-Its closed 4 years ago

ToHa-Its commented 5 years ago

Hi Wael,

first of all: Thanks for the great task definitions that you provide for Azure DevOps. They help a lot.

The task I used most of the time is your ImportSolution-Task. Randomly the task throws an error and does not finish importing the solution. When I restart the CRM-Server most of the time the next import succeeds. When I use the manual import wizard of CRM I never receive this error. Do you know what it is about and how it can be solved?

It occures on both CRM 8.0 and CRM 9.0 servers.

Thanks a lot.

Greetings Torsten

Snippet from the logs:

[section]Starting: MSCRM Import Solution

============================================================================== Task : MSCRM Import Solution Description : Import a Dynamics CRM Solution package Version : 9.0.4 Author : Wael Hamze Help : This task invokes ImportSolutionRequest in Async mode

Solution Name: Replaced Solution Version: 2016.2.0.277 Solution not currently installed

[error]Solution Import Failed: 31 Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: A duplicate import job id already exists : 9cbdad89-43e3-4d8b-89cf-42723c6f5d16Detail:

WaelHamze commented 4 years ago

@ToHa-Its seem to be like an issue with the environment, if you query the importjob table in CRM, How many jobs do you see in there and what is the failure reason for each?

WaelHamze commented 4 years ago

Closing due to inactivity, please re-open if you still have issue