Hi Yoann,
[XUDY0014] db:open-pre("simplePLM_test1",17) was not created by copy clause.
In the copy clause, you need to specify the node which is to be modified:
Old: copy $copyNode := $insert-node
New: copy $copyNode := $db
Hope this helps, Christian
(:~ : Add datamodel node types :) declare %rest:path("/addNodeTypes") %output:method("json") %output:json("format=attributes") %output:json("lax=yes") function _:addNodeTypes( ) { let $db := db:open("simplePLM_test1") let $insert-node := $db//objectType[@name="nodes"]/template/nodeType return copy $copyNode := $insert-node modify ( replace value of node $insert-node/@id with 100, insert node $insert-node as first into $db//nodeTypes ) return $copyNode };
The syntax seems ok but I get this error which I don't really understand :
does any one know where I'm wrong?
Cordialement / Best Regards,
Yoann Maingon Minerva France
+33 6 64 32 49 66
Download Aras Innovator - Téléchargez Aras Innovator