I need HELP - Upgrading 221 to 251

Hi, i have upgrade cmdbuild version 2.2.1 to version 251 with tomcat 7 and PostgreSql v 9.3 with docker file. We want to upgrade to 31 but we are stagnant in 251.
We have 2 big problems.

  • Not all the data of a CI is available to choose when creating a new relation or modifiying one
  • We cant save the relation.

Call: services/json/management/modcard/createrelations

Error: org.cmdbuild.exception.ORMException: ORM_ERROR_RELATION_CREATE

Any idea how to continue or where to look for mistakes?
i dont know what to do, i proove, I have tried everything already

Thanks, sandra