-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
7
-
Issue Summary
JCMA may fail with the error:
<time-stamp> ERROR <project-key> project-import We couldn't import Issue <issue-key>. Reason: QueryException: Caught BatchUpdateException for insert into "public"."jiraissue"
The error is generic and does not specify the exact problem with the data.
Steps to Reproduce Scenario 1 - Invalid Character
- Create a Jira issue with that contains an invalid character in the Summary (such as \u0000 character)
Steps to Reproduce Scenario 2 - Invalid length
- Create a Jira issue with a length for Summary or Environment that exceeds 255 characters
Expected Results
The error should provide more details about the exact problem so that the user can correct the issue.
Actual Results
The migration fails with the error
<time-stamp> ERROR <project-key> project-import We couldn't import Issue <issue-key>. Reason: QueryException: Caught BatchUpdateException for insert into "public"."jiraissue" ("created", "creator", "description", "description_adf", "effective_subtask_parent_id", "id", "issuenum", "priority", "project", "pkey", "reporter", "resolution", "resolutiondate", "soft_archived", "issuestatus", "summary", "issuetype", "updated", "votes", "watches", "workflow_id") values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?). This caused <N> other items to fail.
Workaround
Review the workound steps here: JCMA migration error: 'We couldn't import issue <issue-key> Reason: QueryException: Caught BatchUpdateException for insert into "public"."jiraissue"'
If the SQL query doesn't identify the issue for Scenario 1, try the following SQL for Scenario 2:
-- Query written for Postgres SELECT * FROM jiraissue WHERE LENGTH(summary) > 254 or LENGTH(environment) > 254;
If the query also returns no results, please reach out to Atlassian Support.