Issue
The upgrade is failing from Liferay DXP 7.1 FixPack 21 to Liferay-dxp-2023.q4.4 resulting in the below error:
Caused by: java.lang.NullPointerException
at com.liferay.dynamic.data.mapping.report.DDMFormFieldTypeReportProcessor.updateData(DDMFormFieldTypeReportProcessor.java:46) ~[?:?]
at com.liferay.dynamic.data.mapping.internal.report.RadioDDMFormFieldTypeReportProcessor.process(RadioDDMFormFieldTypeReportProcessor.java:40) ~[?:?]
at com.liferay.dynamic.data.mapping.internal.upgrade.v3_7_3.DDMFormInstanceReportUpgradeProcess._processDDMFormValues(DDMFormInstanceReportUpgradeProcess.java:264) ~[?:?]
at com.liferay.dynamic.data.mapping.internal.upgrade.v3_7_3.DDMFormInstanceReportUpgradeProcess.doUpgrade(DDMFormInstanceReportUpgradeProcess.java:109) ~[?:?]
at com.liferay.portal.kernel.upgrade.UpgradeProcess.lambda$upgrade$0(UpgradeProcess.java:122) ~[portal-kernel.jar:?]
at com.liferay.portal.db.partition.util.DBPartitionUtil.forEachCompanyId(DBPartitionUtil.java:177) ~[portal-impl.jar:?]
at com.liferay.portal.dao.db.BaseDB.process(BaseDB.java:469) ~[portal-impl.jar:?]
at com.liferay.portal.kernel.dao.db.BaseDBProcess.process(BaseDBProcess.java:384) ~[portal-kernel.jar:?]
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:107) ~[portal-kernel.jar:?]
Steps to reproduce:
- Start the 7.1.x portal
- Go to Content & Data → Forms
- Add a new Form with a Text field
- Publish the Form
- Submit at least one entry
- Edit the Form
- Open the Text field sidebar
- Change the field type to Single Selection
- Save the Form
- Submit at least one entry
- Run the upgrade to Liferay-dxp-2023.q4.4
Actual Result: The upgrade fails.
Expected Result: The upgrade should be successful.
Environment
- DXP 2023.Q4.4
Resolution
- This issue has been addressed via LPD-24806
- Please submit a support ticket for getting the hotfix on the same by attaching patch details.
Additional Information
- Always upgrade the DXP to the latest update to achieve the expected behavior: Upgrade Basics
- Please submit a support ticket if you require more information from the product aspect by attaching patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide to installation of the hotfix in the respective environment.