Importing a RL Rule from a C7 to a C8, need help with logs and error

Hello, I am toying with the idea of consolidating my automations (at least the built in ones) on to my current devices hub. Currently, all of my automations, rules, etc. are on one "server" hub (a C7), and the devices are on a C8, and shared via hub mesh.

I am trying to export a RL rule, then importing in onto the C8. Whenever I import the RL, I get an unexpected error. I would appreciate any assistance in understanding what the error is, if and how to fix it, and how to figure it out and fix it myself next time. Thanks!

Here is the rule (as it is on the C7) :

When I upload the exported .json file to my C8, I get this unexpected error:

When I go to the logs; this is what I see:

That really doesn't mean anything to me. I don't see how to do anything with line 101, and don't know enough about java to do anything with it if I did. I would appreciate any help or tips anyone can offer

Probably one for @bravenel to look at (that line number would only mean something to the person who wrote the code or could at least see it -- looks like it's coming from the imported RL instance?).

1 Like

Yep. The RL on the "Server" hub works as intended. the problem popped up when I tried to import it on to the C8 running 2.3.5.3.121 (thought I see there is an update to 2.3.5.123, so I'll go ahead and pick that up).

@bravenel @bertabcd1234 I have been try to experiment with this. I am also having this issue trying to import from Rule Machine as well as room lighting.

Have you updated to .125 and tried again? There was at least one import-related fix in this version, though I don't know if it was intended to address this specific issue.

I need to know what app 1403 is (click on red error in the logs, see what app opens). You may need to force quite Export/Import/Clone by opening its app status page, and removing it. I'm assuming that app 1403 is Export/Import/Clone, but need to know.

Are you getting the prompt to select device replacements when you import? At what step specifically does this error happen?

I was actually updating as I posted this. I will try it again.
A) 1403 is the RL import RL rule.
B) Yes. In the original rule the devices were hub meshed from the hub i'm trying to import to . I selected the ACTAUL devices on the hub i'm trying to import to.
C) When I click on the imported rule it get (I get teh same thing if I click on the red error box)

.

Most likely you've got some confused device ids going on. BTW, posting "Unexpected Error" like you just did is of no help. Only the Logs are helpful.

I would suggest simply re-creating that particular RL from scratch. That's going to take less time than chasing this...

I don't think you can Export from one hub and then Import to another hub an RL instance with a Room selected, as Export/Import/Clone does not map Room ids, and they may be probably different on the two hubs.

1 Like

I'm in a reboot now, but the error was the same as the one in the first post.

(after Reboot)
I removed that one RL and tried another, getting the same error

I'm looking to move all of my rules from a C7 to my C8, and was really hoping to not have to rebuild them all from scratch.

Also, have now updated both hubs to 2.3.5.125. It looks like now this is only happening with RL. RM rules were doing it, but now they seem to be importing and working correctly.

Posted the above before I read your last reply. That make a bit more sense. Dang. wish I had thought of that sooner..

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