RM 5.1 rule throws Unexpected Error when updating or deleting variable

C5 and C8
2.4.3.133

I have a rather long rule that sets the color of my exterior lighting based on the month, holiday, occasion, etc., which includes six local date and one boolean variables. Whenever I try to update or delete a variable, the app throws an Unexpected Error:
An unexpected error has occurred trying to load the app. Check Logs for more information.
Error: Cannot invoke method startsWith() on null object

I'm able to Restore from a backup, but it continues to throw the error when I try to update.
I have two hubs at separate locations running basically the same rule, and it happens on both. I've noticed it over the last few Platform Versions, so it's not new to the current release.

What is the error you see in Logs?

If the variables are global, have you checked to make sure they have values in the variables table (in the settings -> Hub Variables) ? If the variables are null, that could be a cause of some of those errors. Seems like I recall an issue a while back around that issue. But, I cannot find the thread now.

1 Like

Thanks. The variables are all local, and have values assigned.

1 Like