Influxdb ambiguous feature call error

Ver: 3.0.2 Synology Docker


I’m struggling with a one line rule that is throwing the following error:

12:08:00.187 [ERROR] [.internal.handler.ScriptActionHandler] - Script execution of rule with UID 'rCalcAverageRain2Hours' failed: Weather_ActualRain_avg. ___ postUpdate(Weather_CurrentRainVolume.averageSince(now().minusMinutes(120),"influxdb"))

   Ambiguous feature call.
The extension methods
        postUpdate(Item, State) in BusEvent and
        postUpdate(Item, Number) in BusEvent
both match.; line 1, column 23, length 10

The rule is:


Weather_CurrentRainVolume is successfully persisted in Influx:

While I initially defined the items as length quantity type, I changed them both to Number (no quantity type) as a troubleshooting step.

Am I missing a casting / qualifier in the rule or is it something else? It wasn’t clear from looking at the many posts on similar problems.

Many thanks

No,it just means the DSL rules parser cannot guess what type of result to handle. Let’s tell it.

1 Like

That was it. Many thanks for you prompt assistance.