'Sys_app' record for custom application missing after clone

Alfred4
Tera Contributor

Hi!

Background:
We are developing a custom application. This monday we had a scheduled clone from production, so to save the application I both published a first version of it and also saved the entire application as an update set. After the clone we installed the application again, but to our surprise we could not edit the app in Studio anymore. After a quick check I found out that this was due to the 'sys_app' record for the application being lost after the clone. So we did a rollback of the clone and it's now OK again.

So, how can we sure to avoid this problem when doing a clone again? What I want to confirm specifically is how we can restore the 'sys_app' record after cloning. For example, if we link it to source control and import it from there after a clone, does that create the 'sys_app' record? 

Thanks in advance

//Alfred

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi

can you please explain in detail how you created the update set, as I assume that the sys_app is not contained there.

And why did you not publish your app to the Application Repository? That way you shouldn't have any problems.

Kind regards
Maik

I used the "Publish to Update set" UI action from the application view in "My Company Applications". We did publish the app to the application repository, and it was no problem installing it after the clone. But since the 'sys_app' record was lost in the clone and not installed with the application, we could not develop it further using Studio

We learned the same lesson and needed to add the sys_app table to our data preservers on clone.

Asal Moezi
Tera Expert

Hi, 

We just faced the same issue and were able to solve it easily, so I thought I let you know here for the future:

 

you need to publish the application in the company application repository before the clone. After the clone, install the application from My Company Applications. then you should set the scope to your custom app and open the application files from My Company Applications. You find a related link Convert to Development Mode and by selecting it, a sys_app record for the custom application will be automatically added. you will also be able to find the app in studio and edit it.