Orphaned rule

I have a 5.1 rule that I can no longer open to view or edit. When I try to view it I get "Error: Cannot invoke method toInteger() on null object". It was a test rule that I'd just like to delete, but having trouble with that. If I click on the Gear to the left of the rule, at the bottom of that screen there is a button to "Remove this child instance of Rule 5.1". I am not clear whether that will remove just that rule or the whole Rule Machine. The rule does not show up as broken if I use the RM "Find broken rules" button.
I'm on the latest version 2.3.3.140. I searched and see a few other topics with similar errors, but do not see a solution to my situation.

This.

I have had this happen once or twice when I used my browser's back button or otherwise left the page without clicking "done." Many people clone a rule before editing it just in case they get happy fingers while editing.

If your rule is a complex one, it may be worth the time to try to recover it. Assuming you have a backup of the intact rule before it got corrupted you can do a current backup, then restore from a backup containing an uncorrupted copy of the broken rule, then export it, restore from your current backup, and import the rule.

Thanks. It was a test rule that I no longer need, so I'm not worried about preserving it. Just want to clean up and get rid of it. My concern is I don't see a way to delete it.

Clicking on the gear to the left and then clicking on "remove this child instance" will get rid of it, and just it.

Thanks again. I overcame my fear, clicked on it, and just that rule is now gone.
Had a back-up anyway, just in case.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.