It seems that in VERSION 9.3 (November 29, 2019) the doc-available($xml-doc) seems to be broken; it should return a boolean but throws an exception. Has this been fixed recently? Cannot find a reference to such a fix in GIT. Arjan ---------- Forwarded message --------- Van: Arjan Loeffen <arjan.loeffen@armatiek.nl> Date: za 25 apr. 2020 om 17:55 Subject: Doc-available() function, behavior? To: BaseX <basex-talk@mailman.uni-konstanz.de> Dear Basex People, I have this fragment: let $xml-doc := 'MyDatabase/bogus-entry.xml' let $list := *if (doc-available($xml-doc)) then doc($xml-doc)/** else () return $list I'd expect BaseX to return the empty sequence when the document is not in the collection. But Basex returns an error: [basex:doc] Database path 'MyDatabase/bogus-entry.xml' yields no documents. What am I doing wrong? I thought I was following the example in https://docs.basex.org/wiki/Databases#XML_Documents nicely... Thanks in advance!! -- *Arjan Loeffen* Armatiek BV & Armatiek Solutions BV 06-12918997 -- *Arjan Loeffen* Armatiek BV & Armatiek Solutions BV 06-12918997