Rules before Items

Hi,

Some of my rules fails to load and the reason for that seems to me that they don’t find an Item:

2018-10-21 15:20:49.027 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'security.rules' has errors, therefore ignoring it: [22,3]: no viable alternative at input 'Openhab_Init'

2018-10-21 15:20:49.235 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'camera.rules' has errors, therefore ignoring it: [25,3]: no viable alternative at input 'Openhab_Init'

I suspect it is because the item is still not defined when the rule is loaded (item definition exists course). From reading it seems to that this is somehow known but I am not sure.

Any solution for that?

Thx

It often means you have an error in a rule triggering condition.

I’ll take a really wild guess…
when Item Openhab_Init (does what?)

@rossko57

Yes, seems you right. My bad … I just figure out that one of my “search and replace” removed the word Item before the name, which explains the failure :frowning:

I found it as I run touch on the rule and I still got the error …