Random errors in searches
I've got installed the last version of TeiPublisher, but it keeps giving errors in searches, randomly. When it fails, it says:
exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: config:get-identifier($node as node()) item()*. Expected cardinality: exactly one, got 0. [at line 117, column 42, source: /db/apps/Bibliotheca/modules/lib/search.xql] In function: config:get-identifier(node()) [117:19:/db/apps/Bibliotheca/modules/config.xqm] search:show-hits(node()*, map, xs:integer, xs:integer, xs:string?) [223:18:/db/apps/Bibliotheca/modules/lib/search.xql] templates:call-with-args(function, function*, element(), map) [208:13:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [280:13:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [33:13:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] intl:translate(node(), map, xs:string?, xs:string?) [221:18:/db/apps/Bibliotheca/modules/lib/i18n-templates.xql] templates:call-with-args(function, function*, element(), map) [208:13:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [425:9:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] pages:app-root(node(), map) [217:18:/db/apps/Bibliotheca/modules/lib/pages.xql] templates:call-with-args(function, function*, element(), map) [208:13:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [465:17:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*) [273:9:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [131:51:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [88:9:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:apply(node()+, function, map?, map?) [49:5:/Users/Sandra/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
All my XML are well-formed. The same searches work one time and fail another.
Any help?
Thanks.