An error has occurred

An error has been generated by the application.

exerr:ERROR Exception while transforming node: A sequence of more than one item is not allowed as the first argument of normalize-space() ("2020-01-20", "2022-02-01")  [at line 1801, column 18]
In function:
	app:insert-document(node(), map, xs:string?, xs:string?, xs:string) [35:9:/db/apps/pacelli/modules/app.xql]
	templates:call-with-args(function, function*, element(), map) [208:13:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [146:81:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [146:81:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [146:81:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [146:81:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [28:13:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	intl:translate(node(), map, xs:string?, xs:string?) [35:9:/db/apps/pacelli/modules/i18n-templates.xql]
	templates:call-with-args(function, function*, element(), map) [208:13:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [462:17:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:surround(node(), map, xs:string, xs:string?, xs:string?, xs:string?) [35:9:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:call-with-args(function, function*, element(), map) [208:13:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [131:51:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:process(node()*, map) [88:9:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]
	templates:apply(node()+, function, map?, map?) [46:5:/usr/local/lib/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]