Sorry, an error has occurred

Your request generated an error.

If you think this is a bug, you can help us by opening an issue here: sarit-existdb issues. To be useful, please copy the detailed error message (shown below), as well as the URL your browser is currently showing.

Detailed error message:

exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: tpu:parse-pi($doc as document-node(), $view as xs:string?) item()*. Expected cardinality: exactly one, got 0. [at line 102, column 33, source: /db/apps/sarit-pm/modules/lib/pages.xql]
In function:
	tpu:parse-pi(document-node(), xs:string?) [102:20:/db/apps/sarit-pm/modules/lib/util.xql]
	pages:load-xml(xs:string?, xs:string?, xs:string) [70:9:/db/apps/sarit-pm/modules/lib/pages.xql]
	pages:load(node(), map, xs:string, xs:string?, xs:string?, xs:string?) [-1:-1:/db/apps/sarit-pm/modules/lib/pages.xql]
	templates:process-output(element(), map, item()*, element()) [211:9:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [189:28:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:call(item(), element(), map) [137:36:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process(node()*, map) [148:81:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process(node()*, map) [148:81:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process(node()*, map) [148:81:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process(node()*, map) [518:9:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	pages:app-root(node(), map) [-1:-1:/db/apps/sarit-pm/modules/lib/pages.xql]
	templates:process-output(element(), map, item()*, element()) [211:9:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [189:28:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:call(item(), element(), map) [137:36:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process(node()*, map) [428:17:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process-output(element(), map, item()*) [230:9:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [211:9:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [189:28:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:call(item(), element(), map) [137:36:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process(node()*, map) [133:51:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:process(node()*, map) [90:9:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]
	templates:apply(node()+, function, map?, map?) [48:5:/opt/lib/sarit-existdb/exist/webapp/WEB-INF/data/expathrepo/shared-0.8.2/content/templates.xql]