← centrs docs

input/invalid-query

A --query expression does not parse as a print where condition.

When it happens

retrieve --query and api --query take what you would write after print where: name=ether1, mtu>=1500 and !dynamic, (type=ether or type=vlan). centrs parses it before anything is sent, then runs it on the router as an API query. The error's context.offset points at the problem in context.query.

centrs also refuses spellings that RouterOS reads differently from how they look, or does not accept:

A bare name (disabled, comment) means what it means after where: yes for a boolean and "is set" for anything else. Only the router knows which a property is, so with --validate=false a bare name fails here too.

Fix