I'm just learning to use MarkLogic, going thru the tutorials, etc. I'm getting an error message I don't understand. When I'm in the Query Console and need to create a new tab, I click the plus sign at the right end of the row of existing tabs, and I get the following error message instead of a new tab:
XDMP-COMPARE: (err:XPTY0004) qconsole:focus eq fn:true() -- Items not comparable: xs:untypedAtomic("") eq fn:true()
This recently worked, but now it doesn't.
Open the exported workspace XML in your IDE and look through each "query" node. The file should only have a single node with the attribute focus="true", the rest should be focus="false". If you see more than one "true" or empty values "" (from your comment below), then change these all to "false", except for the one set to "true", and resave the file. Then re-import the workspace back into Query Console. This will fix the problem.
--
I've also filed a bug against Query Console since the application should be able to handle any malformed data gracefully.