Re: [MarkLogic Dev General] XDMP-CHILDLINK error
Thanks for your reply Justin. We usually have fragments created for the node element. So it is considered as individual document I guess. Moreover it is the existing design.So probably I will look at that option as well. We normally update the category inside the node element, whenever the latest values are populated. To achieve this we use xdmp:node-replace(). This is only happening for specific node. For other nodes the node replace is working fine. So am not sure, whether the node replace inserted as separate fragment and caused to break the link from the document or something else. Thanks, Prasanth On Thu, Jan 14, 2016 at 4:18 PM, Justin Makeig wrote: > Taking a step back from your immediate problem, your document structure > looks like you're trying to model many atomic entities in a single > document. Generally in MarkLogic, each atomic item should be its own > document. This how we've optimized our indexes and I/O. The relational > database analog would be that documents map to rows, not tables. In your > case, you'd have 4,000+ individual documents, each with root > elements. (Even better would be to give a semantically meaningful name to > your node elements, for example, "product" or "user".) > > If you can provide more detail around what you're trying to accomplish we > might be able to provide more/better guidance. > > Justin > > > -- > Justin Makeig > Director, Product Management > MarkLogic > > > On Jan 14, 2016, at 10:36 AM, Prasanth N V R > wrote: > > Hi, > > I have 4000+ nodes in a document. Below is the structure of the document > and loaded under "/test/testDocument.xml". > > > > a > 1234 > A > > > b > 1234 > B > > > c > 1234 > C > > : > : > > > If a node name matches my input, then I will do a xdmp:node-replace of > that. > let $result := cts:search(my search query goes here) > return xdmp:node-replace($result/category,newCategory > > When I try to do node replace, am getting error like, > *XDMP-CHILDLINK:* (err:XPTY0004) *Invalid child link node* > fn:doc("/test/testDocument.xml")/rootnode/node[257] > > Your help is much appreciated! > > Thanks, > Prasanth > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > > > > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > > ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] XDMP-CHILDLINK error
Taking a step back from your immediate problem, your document structure looks like you're trying to model many atomic entities in a single document. Generally in MarkLogic, each atomic item should be its own document. This how we've optimized our indexes and I/O. The relational database analog would be that documents map to rows, not tables. In your case, you'd have 4,000+ individual documents, each with root elements. (Even better would be to give a semantically meaningful name to your node elements, for example, "product" or "user".) If you can provide more detail around what you're trying to accomplish we might be able to provide more/better guidance. Justin -- Justin Makeig Director, Product Management MarkLogic > On Jan 14, 2016, at 10:36 AM, Prasanth N V R wrote: > > Hi, > > I have 4000+ nodes in a document. Below is the structure of the document and > loaded under "/test/testDocument.xml". > > > > a > 1234 > A > > > b > 1234 > B > > > c > 1234 > C > > : > : > > > If a node name matches my input, then I will do a xdmp:node-replace of that. > let $result := cts:search(my search query goes here) > return xdmp:node-replace($result/category,newCategory > > When I try to do node replace, am getting error like, > XDMP-CHILDLINK: (err:XPTY0004) Invalid child link node > fn:doc("/test/testDocument.xml")/rootnode/node[257] > > Your help is much appreciated! > > Thanks, > Prasanth > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general smime.p7s Description: S/MIME cryptographic signature ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
[MarkLogic Dev General] XDMP-CHILDLINK error
Hi, I have 4000+ nodes in a document. Below is the structure of the document and loaded under "/test/testDocument.xml". a 1234 A b 1234 B c 1234 C : : If a node name matches my input, then I will do a xdmp:node-replace of that. let $result := cts:search(my search query goes here) return xdmp:node-replace($result/category,newCategory When I try to do node replace, am getting error like, *XDMP-CHILDLINK:* (err:XPTY0004) *Invalid child link node* fn:doc("/test/testDocument.xml")/rootnode/node[257] Your help is much appreciated! Thanks, Prasanth ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] XDMP-CHILDLINK Error
Contact support. That's a low-level error, and there's very little else you can do about it. If you aren't already using the latest release they'll probably ask you to upgrade, too. -- Mike On 14 Mar 2014, at 12:10 , Rupinder Singh wrote: > Hi, > > We got this error: XDMP-CHILDLINK: (err:XPTY0004) -- Invalid child link node > while we were trying to load the data into MarkLogic. Actually someone > restarted the MarkLogic at the same time we were trying to load the data > using Java and XCC. So we are thinking that because of restart, something > weird happened within the server and we got this error. > > If someone has some other thoughts regarding this error then please share. Or > if someone can suggest on how to fix this. > > This is the first time we saw this kind of error. We are hoping it will not > happen in future but if it happens again, we just want to find out the root > cause and a way to fix this. > > Thanks, > Rupinder > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general
[MarkLogic Dev General] XDMP-CHILDLINK Error
Hi, We got this error: *XDMP-CHILDLINK: (err:XPTY0004) -- Invalid child link node* while we were trying to load the data into MarkLogic. Actually someone restarted the MarkLogic at the same time we were trying to load the data using Java and XCC. So we are thinking that because of restart, something weird happened within the server and we got this error. If someone has some other thoughts regarding this error then please share. Or if someone can suggest on how to fix this. This is the first time we saw this kind of error. We are hoping it will not happen in future but if it happens again, we just want to find out the root cause and a way to fix this. Thanks, Rupinder ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] XDMP-CHILDLINK error
I'll do that. Thanks. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Blakeley Sent: Wednesday, August 10, 2011 12:40 PM To: General MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] XDMP-CHILDLINK error The best advice I can give you is to contact support. That error code is coming from deep within the server, where there are no user-servicable parts. -- Mike On 10 Aug 2011, at 07:46 , Gary Larsen wrote: > Hi, > > There appears to be a document which lost an internal pointer, I'm guessing to a fragment (ModelLineageImpl). > > 2011-08-10 10:36:56.403 Notice: Dev-10T-XDBC: XDMP-CHILDLINK: (err:XPTY0004) let $keys := "iE064C7D5437E45C18B551FA75E296FAF" let $cq := cts:and-query((cts:directory-query("/db/netvisn/content/", "infinity"), cts:element-value-query(fn:QName("http://developer.envisn.com/xmlns/envisn/n etvisn/", "key"), $keys))) return { for $info in cts:search(fn:doc(), $cq, "filtered")/content/lookupInfo return { $info/key }{ $info } } -- Invalid child link node fn:doc("/db/netvisn/content/sub52/iE064C7D5437E45C18B551FA75E296FAFY3NfY2Vyc 0NvcnJlY3RpdmUgQWN0aW9uIFRhYmxlcw==.xml")/*:content/*:lineage/*:modelLineage /*:ModelLineageImpl[18] > > . Is it possible to fix this? > . Are there any utilities which can check for inconsistencies in the database? > . Any suggestions to avoid this? > > Thanks for any assistance. > gary > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] XDMP-CHILDLINK error
The best advice I can give you is to contact support. That error code is coming from deep within the server, where there are no user-servicable parts. -- Mike On 10 Aug 2011, at 07:46 , Gary Larsen wrote: > Hi, > > There appears to be a document which lost an internal pointer, I’m guessing > to a fragment (ModelLineageImpl). > > 2011-08-10 10:36:56.403 Notice: Dev-10T-XDBC: XDMP-CHILDLINK: (err:XPTY0004) > let $keys := "iE064C7D5437E45C18B551FA75E296FAF" let $cq := > cts:and-query((cts:directory-query("/db/netvisn/content/", "infinity"), > cts:element-value-query(fn:QName("http://developer.envisn.com/xmlns/envisn/netvisn/";, > "key"), $keys))) return { for $info in cts:search(fn:doc(), $cq, > "filtered")/content/lookupInfo return { $info/key }{ $info > } } -- Invalid child link node > fn:doc("/db/netvisn/content/sub52/iE064C7D5437E45C18B551FA75E296FAFY3NfY2Vyc0NvcnJlY3RpdmUgQWN0aW9uIFRhYmxlcw==.xml")/*:content/*:lineage/*:modelLineage/*:ModelLineageImpl[18] > > · Is it possible to fix this? > · Are there any utilities which can check for inconsistencies in the > database? > · Any suggestions to avoid this? > > Thanks for any assistance. > gary > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general
[MarkLogic Dev General] XDMP-CHILDLINK error
Hi, There appears to be a document which lost an internal pointer, I'm guessing to a fragment (ModelLineageImpl). 2011-08-10 10:36:56.403 Notice: Dev-10T-XDBC: XDMP-CHILDLINK: (err:XPTY0004) let $keys := "iE064C7D5437E45C18B551FA75E296FAF" let $cq := cts:and-query((cts:directory-query("/db/netvisn/content/", "infinity"), cts:element-value-query(fn:QName("http://developer.envisn.com/xmlns/envisn/n etvisn/", "key"), $keys))) return { for $info in cts:search(fn:doc(), $cq, "filtered")/content/lookupInfo return { $info/key }{ $info } } -- Invalid child link node fn:doc("/db/netvisn/content/sub52/iE064C7D5437E45C18B551FA75E296FAFY3NfY2Vyc 0NvcnJlY3RpdmUgQWN0aW9uIFRhYmxlcw==.xml")/*:content/*:lineage/*:modelLineage /*:ModelLineageImpl[18] . Is it possible to fix this? . Are there any utilities which can check for inconsistencies in the database? . Any suggestions to avoid this? Thanks for any assistance. gary ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general