New rule crashes

I was going to create a rule to disable some rules (a vacation switch), and when I went to create a the new rule, the rule crashed and now I can't do anything with it.

This may not have been the right way to go about this, but I was exploring options....

I created a new rule called "Vacation". I went to "Select Trigger Events" and selected "Rule Paused", that threw an immediate error.

Unexpected Error

An unexpected error has occurred trying to load the app. Check Logs for more information.

Error: No such property: currentnull for class: java.lang.String

Now I can't remove the botched rule, because every time I try to open the rule I get the above error.

Is this a bug?

Rule Machine is fragile. If you accidentally hit the Back button or the Apps list button while editing a rule without first hitting Done, things get damaged, as you have discovered. When they get into the state you have, the only way to recover is to restore a backup that doesn’t have this issue.

I was afraid of that, but I did not click the back button at all. I was able to duplicate this issue 3 times, and they all do the same thing at the same time.

Then it would help if you clearly documented the steps to repeat, since you seem to have a repeatable case, and report it to Bruce Ravenel (@bravenel) so he can fix the bug.

1 Like

Steps to reproduce:

  1. Click Apps
  2. Click Rule Machine
  3. Create New Rule
  4. Name new rule Vacation
  5. Click Select Trigger Events
  6. Select Rule Paused

That will trigger the error and the rule cannot be removed/modified.

I have since found a more elegant solution to my quandary, so my initial reason for playing with this has been resolved.

2 Likes

Ok, @bravenel, you’ve got your repeatable case. Thanks, @g.maus, you have helped us all.

1 Like

Do not use restore for cloning rules it will completely crash RM.
You will have to do a full restore of the hub from an earlier date.
Import also fails but does not completely crash RM.

1 Like

Similar issue here - I am glad I had a backup for each of my rules though.

This morning after the upgrade they were crashing a lot so I kept cloning them and then once I renamed my mobile phone then any new or existing rules containing it got affected.

I've posted this earlier as well so hopefully HE support get involved soon - Here's the error message anyway:

I am able to create and modify rules successfully though:

1 Like

This bug will be fixed in upcoming hot fix release.

5 Likes