PCJ-Error stating Caused by: com.atlassian.jira.exception.CreateException: Error occurred while creating issue through workflow
Problem
If when running a data import you receive an error similar to the error shown in the stack trace below, this indicates that the workflows which the issues being imported use, contains a Validator or Post Function on the Create transition which is failing and this is why the issue cannot be imported.
The reason for this is that Project Configurator uses the built-in Jira data import functionality to import in issue issues and this function executes the create a transition in the workflow when creating an issue and if a Validator or Post Function on the Create transition fails then it will not create the issue and will display the error that you are receiving.
Caused by: com.atlassian.jira.exception.CreateException: Error occurred while creating issue through workflowSolution
In order to work around this error, you should review the workflows for the projects for which you are importing issues inside the destination instance and to remove any Validators or Post Functions and then to re-run the import ensuring you skip importing workflows with Project Configurator.
After successfully exporting and importing the projects you can then re-add any Validators or Post Functions to workflows which you removed.