The Database Upgrade error is issued in the following situations:

Do one of the followings: Delete the attribute from your entity definition; or add it in the database table as specified in your eSpace.

Edit the entity and change the primary key to a suitable attribute.

Do one of the followings: Delete the attribute from your entity definition; or add it in the database table as specified in your eSpace.

Do one of the followings:

a) Rename the attribute. If you rename the attribute after this error, OutSystems Platform creates a new empty column for you in the database table, and starts using this new column instead of the old one. It still keeps the old column and its data in the table, but it won't be visible in the development environment. You can retrieve the old data using direct access to the database, for example using a script.

b) Alternatively you can create a timer that is executed one time, when publishing the application, to move or delete the records that are hindering the conversion.

Don't forget to apply the same solution after deploying your application to another environment.

If the error you have got does not match any of these situations, please check with your Database Administrator for what might be the cause.

See Also

Managing entities | Create Entity Attributes | Defining the Primary Key | About Error Messages