272
Views
4
Comments
Solved
How to restore data
Question

Hello All,

I lost some data by following below steps: 

Step1: Changed attribute name ex. Full_Name to FullName

Step2: Deploy code from dev to QA

after step two I lost data which was there initially. How to restore it?

Any pointer would be helpful.

Thanks & Regards

Prajakta Roshankhede


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi Prajakta,

If you rename back to the old name and publish again, you will have access again to the data.

Please read: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Database_Reference/How_Data_Model_Changes_are_Handled

"If you rename an Attribute, OutSystems creates a new column with the new name in the database. The old column with all its data remains in the database untouched, but it won’t be available in the development environment.

If there’s already a column with the same name in the database, OutSystems tries to map the attribute to the existing database column. OutSystems tries to convert the column data type if necessary."


Regards,

Daniel

2022-05-23 14-35-34
Michael Schindler

Due to this behavior, I am not able to rename an already populated column. Why did Outsystems decide to create a new column instead of creating a new column alias on renaming?

2025-11-19 06-14-01
Miguel Verdasca
Champion

It isn't really deleted, the platform actually creates another field on the database, if you change back to the original field name you can see that the data is all still there.

You can read more about it here Why a new database attribute is created when you rename it in Service Studio

Cheers,
Nuno Verdasca


2021-01-12 14-29-49
Prajakta Roshankhede

Thanks Daniel and Nuno. It really helps me a lot.

-Prajakta

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.