Error message

invalid route while WriteMode=unit, route : ${route}, route parameter should be: long

Solution

Check the parameter type of the configured unitized attribute route, which can be only long or java.lang.Long.