"query.open" cannot compile


I have a NAV 2016 whitch cannot compile some of my code.

it could compile beform upgrade (NAV 2015)

When I write himQuery.open; and then I try to save and compile it throw an syntax error on last char of methode.

I have tryed to recompeil the queries, and creating them from scratch, but I still am getting the same syntax error.


If I use a standard query it works perfekt, but my custom query do not work

Do any of you have any ideas of what I can do to fix it?