Legacy Knowledge Base
Published Sep. 10, 2025

How to resolve "Attempting to upgrade table UserGroupGroupRole by adding a temporary column" DB2 database upgrade errors

Written By

Isaac Wilson

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When trying to upgrade Liferay DXP from a 7.4 U release to 2024.q1.3 using a DB2 11.5 database, we encountered the following errors relating to the UserGroupGroupRole table:
INFO  [ServerService Thread Pool -- 78][UpgradeProcess:119] Upgrading com.liferay.portal.upgrade.v7_4_x.PortalUpgradeProcessRegistryImpl - Modifying table UserGroupGroupRole to alter the type of the column groupId to LONG null
INFO  [ServerService Thread Pool -- 78][DB2DB:127] Attempting to upgrade table UserGroupGroupRole by adding a temporary column due to: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=;alter table UserGroupGroupRole;set data type bigint;<space>, DRIVER=4.31.10
INFO  [ServerService Thread Pool -- 78][UpgradeProcess:137] Failed upgrade process com.liferay.portal.upgrade.v7_4_x.PortalUpgradeProcessRegistryImpl - Modifying table UserGroupGroupRole to alter the type of the column groupId to LONG null in 120294 ms
INFO  [ServerService Thread Pool -- 78][PortalUpgradeProcess:335] Failed upgrade process com.liferay.portal.upgrade.PortalUpgradeProcess in 120341 ms
ERROR [ServerService Thread Pool -- 78][PortalContextLoaderListener:70] com.liferay.portal.kernel.upgrade.UpgradeException: com.ibm.db2.jcc.am.SqlTransactionRollbackException: DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=68, DRIVER=4.31.10
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.ibm.db2.jcc.am.SqlTransactionRollbackException: DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=68, DRIVER=4.31.10

Environment

  • DXP 7.4
  • 2023.Q4

Resolution

  • As the root cause of this is a database driver error (see the error portion that notes "ERROR ... DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=68, DRIVER=4.31.10"), this can be resolved by switching the bundle's DB2 driver to a more recent one which no longer encounters the issue
Did this article resolve your issue ?

Legacy Knowledge Base