NXQL query

Hi :) I am making a NXQL and passsing a parameter like this: session.query(“SELECT * FROM document_type_name WHERE xpath_name LIKE " +parameter+“%“);

But it throws an exception saying Syntax error : Invalid token

0 votes

1 answers

502 views

ANSWER



Hi,

Stacktrace is always welcomed here. It could help to debug.

In your case, I think your missing the surrounding quotes. See the documentation examples.

In your case it would be:

session.query(“SELECT * FROM document_type_name WHERE xpath_name LIKE '" + parameter + "%'");
0 votes



Thanks Kevin it worked.But it receives an empty list.The xpath is not wrong .the parameter too.I don't get it
10/13/2017