Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-78031

Project import validation fails with NullPointerException referencing CustomFieldValue.xml.

XMLWordPrintable

      Issue Summary

      Project import validation fails with NullPointerException referencing CustomFieldValue.xml.
      This happens because of NullPointerException is due to the missing stringvalue/textvalue/numbervalue/datevalue associated to the custom field entries defined in the entities.xml file.

      This error should not happen in the first place and this bug is to address this issue.

      Steps to Reproduce

      1. Generate an XML backup from your source Jira instance
      2. Run a Project Import on the destination instance
      3. Run into the problem

      Expected Results

      Project import runs successfully.

      Actual Results

      Project import does not finish successfully.

      The below exception is thrown in the atlassian-jira.log file:

      2021-06-07 13:07:55,949+0000 JiraTaskExecutionThread-6 ERROR Test 787x492x1 7zbvjj 172.29.186.150 /secure/admin/ProjectImportSelectProject.jspa [c.a.j.imports.project.DefaultProjectImportService] There was an unexpected problem processing the file '/xxx/xxx/CustomFieldValue.xml' when performing a project import.
      java.lang.NullPointerException
          at com.atlassian.jira.imports.project.customfield.TextLengthValidatingCustomFieldImporter.canMapImportValue(TextLengthValidatingCustomFieldImporter.java:24)
          at com.atlassian.jira.imports.project.handler.CustomFieldValueValidatorHandler.validateCustomFieldValueWithField(CustomFieldValueValidatorHandler.java:98)
          at com.atlassian.jira.imports.project.handler.CustomFieldValueValidatorHandler.handleEntity(CustomFieldValueValidatorHandler.java:73)
      

      The cause of incorrect data in the XML source files is unknown.

      Workaround

      Follow the Solution step from the knowledge article

        1. image-2024-09-03-09-11-13-042.png
          432 kB
          Marko Filipan
        2. image-2024-09-03-09-17-16-386.png
          432 kB
          Marko Filipan

              Unassigned Unassigned
              mfilipan Marko Filipan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: