Unexpected error when pasting in RM: 3 rules broken, i.e., uneditable

Hey guys,

I've read prior occurrences of this but found no solution. Per the subject, I'm making a ton of edits (and backing up regularly) since integrating a new Envisalink. I've experienced 3 corrupted rules in as many days--the causal step is always the same: I copy/paste something. I've re-created 2 rules so far but this one is lengthy and the recurrence/pain is high hence reaching out.

I've tried cloning and replacing devices--didn't work.
I've tried exporting/importing in the hopes some syntax/coherence hygiene in the import codepath might fix it--didn't work.
I've tried looking at the exported JSON--nothing obvious in there (needle in a haystack mostly, though, prevented anything useful).

Looking for suggestions. :+1:

Happy to post the entire metadata and JSON if needed but wondered if there's a trick?

@bravenel for any assistance since he's addressed a few of these over the years (TIA!).

Feature suggestion: CTRL-Z for rule machine; rewind 1 minute or the like.

Thx!

I would need to know exactly what is copy/pasted to discover the cause of this.

One way to avoid this outcome is to clone the rule before doing these sorts of edits.

Thanks for the input!

To your question: tough to say but I believe they were a jumble of variables & equality conditions whose actions changed the state of some device or another. If I could get into the rule to see the clipboard, I could be specific... but I can't.

Here's a bit more detail from a recent trigger:

My best guess at the pasted line is highlighted (as best I recall; 90+% certainty):

Thx!

Next step is to delete that action, and add it back without using copy/paste. See if that works.

LOL... obviously, I would've done that if I could. :slight_smile: I'm unable to get into the Actions editor, doing so triggers the errors I pasted. Is there another way to edit Actions, perhaps a command-line interface I'm unaware of?

I am not able to reproduce any problem with copy/pasting actions like yours. So I have no way to determine what is causing this problem. You will have to recreate the rule and avoid copy/paste -- unless you want to attempt to determine exactly the steps that caused the problem.

There is no "command-line interface", or any way to repair this rule. I'm sorry there is a problem, but for the moment there is no way to determine just what it is so as to fix it.

OK, understood.

Is there a way for me to export it, send the file to you, you import it and try to repro?

The error you posted above is from the rule running, correct? What about an error in the logs when you try to open the rule?

Here you go.

And actually, I think I was wrong earlier--the error I posted before appears to also have been caused by me trying to enter the Actions editor (the Sonos speaker was relaying a lightning warning at the same time hence... unless the error returned is the same which seems unlikely).

I have to look, but I think this may have been fixed for the next release.

That would be great. Two questions then:

  1. when do you expect to release that update?
  2. does the update address the cause of the rule corruption or the inability to edit the actions of a corrupted rule... or perhaps both?

Thx!

// EDIT: @bravenel , I can repro this now. Net net: I restored to a 2-day old backup, exported the rule, restored back to a moments-old backup, recreated the conditional delay, copied it, pasted it... broken. The live logs, however, reported the same error I've already posted. What I do have, though, is a working copy of the rule in an exported JSON file... happy to provide it if helpful.

This has been fixed for next release. Not sure when that will come out...

1 Like

Which aspect? Corruption, editing Actions to fix... or both?

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