Other users have reported this error on the forum when upgrading. Here’s one example:
Try searching “Publication_id Null Upgrade” on the forum and you’ll see a number of other relevant results that offer suggestions for what to try when facing this issue.