"Undefined" rule won't load - can't delete

OH 4.3.7 on openHABian

I somehow created a rule that shows as “undefined” and won’t finish loading. Since it won’t load I can’t delete it. If I try and save it says it needs an ID and if I look at the code I see only {}.

I tried to go to the json file, and also json inactive, to execute a manual delete per my online search, but I don’t see it there.

How can I fix/delete this rule?

If this rule isn’t in the JSONDB, isn’t in a file under $OH_CONF/rules or $OH_CONF/automation than a restart of OH and a refresh of the browser where MainUI is running should eliminate the rule. If it still shows up, it is in one of those files somewhere. The fact that it’s not loading correctly implies that there is something wrong with it so it might not be easy to find (e.g. the UID is corrupted or not there in the JSONDB).

If after a restart and a refresh, post the URL when that rule’s page is open. The last part after “rules/” is what OH thinks is the UID. Based on that me might be able to find the entry in the JSONDB. If that UID isn’t there in the file, you’ll have to go after it the opposite direction and find the one rule in the JSONDB file that isn’t one of the working rules.