Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hello,
I am trying to start a query with
im issues --queryDefinitionFile="C:/Temp/queryDef.txt"
queryDef.txt contains the query definition:
--queryDefinition=(("field[Document ID]=516733")and("item.live")and("item.meaningful"))
This returns the error "MKS124814: Cannot show view information: Missing end )"
I have tried a lot with leaving out "--queryDefinition=" and more and less ",(,), whatsoever. The definition is definitely correctly readable from the file, which I can see with the im issues -F option which returns the content of the queryDef.txt file as an error message (I just mention this to clarify that the path and name and everything is flawless)
I don´t see any error in the syntax. I can even use this query definition with directly typing
im issues --queryDefinition=(("field[Document ID]=516733")and("item.live")and("item.meaningful"))
and get the result that I am looking for. But of course there is little point in using the CLI if I not wanted to automize something.
Solved! Go to Solution.
If you remove all of the double quotes, I think you'll find the command works as expected.
The brackets are used to separate the query conditions, so you only need double quotes to wrap the entire query def on the CLI.
So using --queryDefinitionFile
Using --queryDefiniition your command would be:
I hope this helps!
-Andrew
If you remove all of the double quotes, I think you'll find the command works as expected.
The brackets are used to separate the query conditions, so you only need double quotes to wrap the entire query def on the CLI.
So using --queryDefinitionFile
Using --queryDefiniition your command would be:
I hope this helps!
-Andrew
Hi ascott,
thanks a lot, the solution of my queryDefinitionFile problem is to leave out all quotes....That was maybe the only thing thing of a million things I didn´t try 🐵
Regards,
Thorsten
The query definition file should be a bit different. The problem is with the quotes around the item.live and item.meaningful conditions, though the field names can be quoted or unquoted within the file.
Try this line in the file and it should work:
((field[Document ID]=516733)and(item.live)and(item.meaningful))
thanks, this also works perfectly