Resolving PbP S2C migration failures due to excessive custom field character limits
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
During PbP S2C migrations, certain migrations fail due to DataAccessException
errors, specifically com.atlassian.jira.issue.customfields.impl.FieldValidationException
related to custom fields exceeding character limits. This article addresses the steps to diagnose and resolve these issues to ensure a successful migration.
Environment:
Jira 7.6 and higher
All JCMA versions
Diagnosis
To diagnose this problem, check the migration logs for errors similar to the following:
DataAccessException: com.atlassian.jira.issue.customfields.impl.FieldValidationException: Bug Url can't exceed 255 characters
DataAccessException: com.atlassian.jira.issue.customfields.impl.FieldValidationException: The entered text is too long. It exceeds the allowed limit of 32,767 characters
These errors indicate that the migration process has encountered custom fields with values exceeding permissible character limits, leading to incomplete migrations.
Cause
The root cause of this issue is the migration process encountering custom fields where the data exceeds the set character limits (255 for specific fields like Bug Url and 32,767 for general text fields). This can occur due to extensive customization allowed in server versions or during the user mapping process in migrations.
Solution
Issues with FieldValidationException
due to custom field values exceeding character limits during PbP S2C migrations will now be mitigated and Jira will automatically trim any custom field values that exceed their maximum allowed character limits during the migration process.
Was this helpful?