ERROR on trigger:after-create-document(xs:anyURI) during import
(Line: 35 String/5289584731021130267) 13:50:14.451Z ::: STARTING IMPORT
(Line: 35 String/5289584731021130267) 13:50:14.451Z ::: publishing textgrid:3r132
[…]
04 Dec 2023 15:15:56,966 [qtp1976870927-110] ERROR (DocumentTriggers.java [afterCreateDocument]:240) - Error during trigger prepare
org.exist.collections.triggers.TriggerException: Error during trigger prepare
Caused by: org.exist.xquery.XPathException: exerr:ERROR The actual return type does not match the sequence type declared in the function's signature: commons:get-languages(xs:string) xs:string+. Expected cardinality: one or more, got 0. [at line 130, column 39, source: /db/apps/ahiqar/modules/commons.xqm]
In function:
commons:get-languages(xs:string) [122:19:/db/apps/ahiqar/modules/commons.xqm]
commons:get-text-types(xs:string) [24:32:/db/apps/ahiqar/modules/commons.xqm]
dbt:process-triggers(xs:anyURI) [13:5:/db/apps/ahiqar/triggers/trigger.xqm]
trigger:after-create-document(xs:anyURI) [-1:-1:/db/apps/ahiqar/triggers/trigger.xqm]
[…]
(Line: 35 String/5289584731021130267) 15:16:06.095Z ::: FINISHED IMPORT