An error has occurred

An error has been generated by the application.

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 48, column 37, source: /db/apps/polk-papers/modules/lib/transform.xql]
In function:
	tpu:parse-pi(document-node(), xs:string?) [48:24:/db/apps/polk-papers/modules/lib/util.xql]