【发布时间】:2019-08-07 08:24:00
【问题描述】:
我是 MLDataHubFramework 的新手,开始按照 marklogic 文档创建新的实体流。
1. 创建客户实体并提取到暂存数据库。
2. 在尝试进行协调时,我遇到了以下问题。
错误输出:
java.lang.RuntimeException: com.marklogic.client.FailedRequestException: Local message: failed to apply resource at resources/ml:sjsFlow: Internal Server Error. Server Message: TDE-INDEX: xdmp:eval("xdmp.docume
ntInsert(\"/12545362905389506919.json\",trace,xdmp.de...", {trace:{trace:{jobId:"38b8a84d-7927-4aac-a482-33d64a9cf56e", format:"json", traceId:"12545362905389506919", ...}}}, {database:"3883525708217113046", co
mmit:"auto", update:"true", ...}) -- Error applying template /tde/Customer-0.0.1.tdex to document /12545362905389506919.json: TDE-EVALFAILED: Eval for $subject-iri='sem:iri(concat("http://example.com/Customer-0
.0.1/Customer/", fn:encode-for-uri(./CustomerId)))' returns TDE-BADVALEXPRESSION: Invalid val expression: XDMP-ARGTYPE: (err:XPTY0004) arg1 is not of type xs:string? . See the MarkLogic server error log for fur
ther detail.
但在这里我已将 CustomerId 定义为字符串。我尝试使用多个实体并为所有人遇到相同的问题。 谁能建议我出了什么问题?我也交叉验证了 TDE 文件和其他内容(架构、实体 json、xsd),但在这些文件中没有发现任何问题。
【问题讨论】: