java.sql.SQLException: This column [ZSOID] has some null values, hence it cannot be modified as not-null.
Cause
The issue arises because the zsoid field for some users has null values corresponding to their zuid. The Cloud team wrote the provided migration (solution) before 2019. The problem appears to affect customers who were previously on build version 4350. This specific build is no longer available for installation to test the scenario.
Solution
The migration script needs to be executed to automatically generate the 'zsoid' values for users with missing data (null values) based on their corresponding 'zuid'.
We strongly recommend not attempting to use the upgrade failed AnalyticsPlus folder/instance. Instead, consider restoring your application from a backup or snapshot created before the upgrade attempt.
Create a new folder inside the <AnalyticPlus home> directory and name the folder "fixes" (If not already available).
Move the downloaded patch file to the <AnalyticsPlus Home>/fixes folder.
Restart the AnalyticsPlus service.
Ensure that zsoid's are populated by executing the below query in DB Query tool (Settings >> Troubleshoot >> DB Query tool). Once the zsoid are populated, stop the service and proceed with upgrade.
Select zsoid from ZDBUserPlan;