Subsequent Imports from Pivotal Tracker Fails with java.lang.Exception

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

First import (e.g. for testing purposes) from Pivotal Tracker works fine. However, after creating the required workflows, subsequent imports fail with this error message:

2012-08-12 00:03:11,556 INFO - Import started by omer using com.atlassian.jira.plugins.importer.imports.pivotal.PivotalDataBean
2012-08-12 00:03:11,836 INFO - ------------------------------
2012-08-12 00:03:11,836 INFO - Importing: Users
2012-08-12 00:03:11,836 INFO - ------------------------------
2012-08-12 00:03:11,836 INFO - Only new items will be imported
2012-08-12 00:03:12,095 INFO - 6 users associated with import.
2012-08-12 00:03:12,101 INFO - ------------------------------
2012-08-12 00:03:12,101 INFO - Finished Importing : Users
2012-08-12 00:03:12,102 INFO - ------------------------------
2012-08-12 00:03:12,102 INFO - 0 users successfully created.
2012-08-12 00:03:12,102 INFO - Retrieving projects...
2012-08-12 00:03:12,146 INFO - Successfully linked the project to the following applications: JIRA
2012-08-12 00:03:12,420 ERROR - Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state
java.lang.Exception: Unable to import Project ExternalProject[jiraId=<null>,id=451625,externalName=Test Site,name=tss,key=TSS,url=<null>,lead=test user,description=<null>,projectCategoryName=<null>,assigneeType=2,versions=<null>,components=<null>,issues=<null>,workflowSchemeName=<null>]
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importProject(DefaultJiraDataImporter.java:587)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:257)
...
Caused by: java.lang.RuntimeException: Error setting up Pivotal Rapid Board for project KEY
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalDataBean$3.afterProjectCreated(PivotalDataBean.java:335)
	at com.atlassian.jira.plugins.importer.imports.importer.impl.DefaultJiraDataImporter.importProject(DefaultJiraDataImporter.java:583)
	... 13 more
Caused by: java.lang.NullPointerException
	at com.atlassian.greenhopper.api.rapid.view.RapidViewCreationServiceImpl.setStatusMappings(RapidViewCreationServiceImpl.java:83)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalRapidBoardManager.createRapidBoard(PivotalRapidBoardManager.java:110)
	at com.atlassian.jira.plugins.importer.imports.pivotal.PivotalDataBean$3.afterProjectCreated(PivotalDataBean.java:330)
	... 14 more

Diagnosis

The JIRA Importer plugin was upgraded between the first import and the subsequent imports. In Atlassian Cloud, this plugin may have been upgraded automatically.

Cause

Due to the plugin upgrade, the internal changes in the plugin causes the workflows and settings from the first import to be invalid. This is tracked at JIM-618.

Workaround

  1. Delete/rename the Pivotal Tracker (PT) Workflow Scheme
  2. Delete/rename the PT Workflow
  3. Delete/rename the PT Issue Statuses
  4. Delete/rename the PT Subtask Workflow
  5. Attempt to perform the import again

Related Content

Last modified on Feb 23, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.