Could you share the service user mapping xml/screenshot? Is the code-bundle where this query is written, given appropriate permissions via service user mapping?Does that service user has read (or appropriate) access on the folder path where your query runs (/content/sample)?Could you enable logging ...