Question
Pegasystems Inc.
AU
Last activity: 14 Aug 2015 17:15 EDT
Created a new application with a wrong role - how do I clean up
New to Pega7, I created a new app via admin@mainco. After I deleted the app, I cannot created a new app with the same name under the LeadArchitect role?. It looks like the app HRServices still alive or its related rules are still in the system. How can I clean up completely. e.g. Delete the app and also clean up its associated rules.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Updated: 14 Aug 2015 10:12 EDT
Pegasystems Inc.
IN
Hello Seri
I assume that it is an accidental deletion of application and not intentional.
I tried to replicate the same behavior in my in house lab and noticed that PRPC actually preventing us to create a new application with the same name !
Well I am yet to determine the root cause of it or whether it is a bug or not, but considering the fact that your application is gone and perhaps you are in a situation of not able to use any of your existing rules, I felt that may be I can help you with some quick steps to recover the deleted application rule ?
Please try to follow the below steps to recover the deleted application rule
1) Open RULE-OBJ-SUMMARYVIEW HISTORY-RULE RULEUPDATEHISTORY!ALL instance and run it.
2) It will ask for criteria which you wish to use to listout the instance to recover
3) Drill down into the appropriate Performer in the initial summary view presented.
4) The list of instance history will be presented for your selection.
5) Select the record with an ‘Action’ of ‘Delete’ and you should now be presented with the expected ‘Recover from history’ button.
Hello Seri
I assume that it is an accidental deletion of application and not intentional.
I tried to replicate the same behavior in my in house lab and noticed that PRPC actually preventing us to create a new application with the same name !
Well I am yet to determine the root cause of it or whether it is a bug or not, but considering the fact that your application is gone and perhaps you are in a situation of not able to use any of your existing rules, I felt that may be I can help you with some quick steps to recover the deleted application rule ?
Please try to follow the below steps to recover the deleted application rule
1) Open RULE-OBJ-SUMMARYVIEW HISTORY-RULE RULEUPDATEHISTORY!ALL instance and run it.
2) It will ask for criteria which you wish to use to listout the instance to recover
3) Drill down into the appropriate Performer in the initial summary view presented.
4) The list of instance history will be presented for your selection.
5) Select the record with an ‘Action’ of ‘Delete’ and you should now be presented with the expected ‘Recover from history’ button.
6) Press the ‘Recover from history’ button and the rule will be opened such that you can re-save it.
Once you restore your application, you can change the settings if you want to make change in referencing ruleset etc.
Also, the good part is, you can do the exercise with [email protected] / rules log in as well.
Updated: 14 Aug 2015 11:59 EDT
Pegasystems Inc.
AU
Well, I would like to learn more
1. Thanks for the steps to recover/restore. I found this in the PDN and is able to recover the deleted app (via restore)
https://community.pega.com/sites/default/files/help_v718/procomhelpmain.htm
Recovering using Recent Actions
You can use the Recent Actions landing page to look for the deleted rule.
Well, I would like to learn more
1. Thanks for the steps to recover/restore. I found this in the PDN and is able to recover the deleted app (via restore)
https://community.pega.com/sites/default/files/help_v718/procomhelpmain.htm
Recovering using Recent Actions
You can use the Recent Actions landing page to look for the deleted rule.
- If the rule is not part of the current application, access the application menu and select Switch Application > application to make that application current.
- Select the > Application > Development > Recent Actions menu item.
- Click the View Deleted Rules button.
- Click a column header to sort the display by type, rule set, or operator.
- Click the value in the Rule Name row containing the Delete action.
- Click the Restore button. The rule and its history are re-established.
2. if I truly want to delete application created (for some reason, e.g. created under the wrong role admin instead of LeadArchitect), it seems to me that I cannot clean up all the associated rules. If that is the case, I will need to invent a new app name e.g. HRService-1 instead of using the correct name e.g HRService (that I deleted)
How do I delete application and recreate it using the same name, or is there a way to replaced operator who creates the app to be LeadArchitect?
Pegasystems Inc.
IN
Hi Seri,
Can you let me know the exact steps you used to delete application ?
Pegasystems Inc.
AU
Pegasystems Inc.
IN
And you are trying to create the new application using "New Application" wizard ?
Pegasystems Inc.
AU
Pegasystems Inc.
IN
When we create a new Apllication in Pega, it creates multiple rules like Application Rule, Rule Sets and other desired rules.
Ruleset name is always same as Application name.
You just deleted the application rule. If you want to delete the application, you need to also delete all Rulesets also using Delete Ruleset wizard.
So when you are trying to create a new Application with same name, it will also try to create a Ruleset with same name which already exists from previous iteration.
And that is the error you are getting.
You need to delete the Application ruleset also using Delete Ruleset wizard then you should be able to create a new application.
Pegasystems Inc.
AU
Updated: 14 Aug 2015 17:15 EDT
Pegasystems Inc.
IN
I am assuming "SAE-HRServices-Int" class is in Application Int rule set.
You need to delete Integration ruleset also before you delete the main ruleset. Then Integration class will be deleted which will solve both the errors.
Basically you need to delete all the rulesets which were generated by Application wizard.
HRServices
HRServicesInt