Hi again,
I finally found the problem: the error "TM: no context value bound" occured because in the XML text of my insert command there was a string like "...{TM}..." (with curly braces). This got interpreted as command. Christian already addressed this problem in a StackOverflow post (https://stackoverflow.com/a/48887497/792962) After removing the braces, everything went fine. Best regards, Michael ________________________________ Von: BaseX-Talk <basex-talk-boun...@mailman.uni-konstanz.de> im Auftrag von BIRKNER Michael <michael.birk...@akwien.at> Gesendet: Donnerstag, 30. August 2018 09:40 An: Christian Grün Cc: BaseX Betreff: Re: [basex-talk] BaseX insert/delete node performance Hi Christian, thank you for your reply again. I will try to create a complete example and come back to you with it in some days (I am just about to travel at the moment so I have to find some time for it). Maybe, while creating the example, I'll find the error myself. In that case I also will report that. Best regards, Michael<https://www.wie-soll-arbeit.at> ________________________________ Von: Christian Grün <christian.gr...@gmail.com> Gesendet: Donnerstag, 30. August 2018 09:15 An: BIRKNER Michael Cc: BaseX Betreff: Re: [basex-talk] BaseX insert/delete node performance Hi Michael, > So when this XQuery is executed the second time: > > let $parent := db:open('DB_Name')/path/to/parent/node > return insert node <childNode><subNode>Example 1</subNode><subNode>Example > 2</subNode></childNode> into $parent > > ... the error is thrown. In order to understand what might go wrong, I would once again be thankful if you could provide us with reproducible steps, or a self-contained example. I tried to simulate the repeated insertion in Java, but the attached Java code does not raise any errors. In the error message you attached, org.basex.core.BaseXException: Stopped at ., 1/5847730: [XPDY0002] TM: no context value bound. the query parser indicates that you want to address a TM step in your query – which does not exist if no database is opened, or if no item is bound to the current context. This is why I asked for the query that triggered the error (it’s difficult to judge what goes wrong without having more insight). If your query contains confidential information, you could open it in the BaseX GUI and jump to the referenced error position (line 1, column 5847730). Cheers Christian Beachten Sie, dass Sie uns ab sofort unter einer geänderten Rufnummer erreichen. Bitte speichern Sie gleich Ihren Kontakt zur AK Wien ein unter 501 65 1, gefolgt von der gewohnten Durchwahl. Dieses Mail ist ausschließlich für die Verwendung durch die/den darin genannten AdressatInnen bestimmt und kann vertrauliche bzw rechtlich geschützte Informationen enthalten, deren Verwendung ohne Genehmigung durch den/ die AbsenderIn rechtswidrig sein kann. Falls Sie dieses Mail irrtümlich erhalten haben, informieren Sie uns bitte und löschen Sie die Nachricht. UID: ATU 16209706 I https://wien.arbeiterkammer.at/Datenschutz_(DSGVO).html Beachten Sie, dass Sie uns ab sofort unter einer geänderten Rufnummer erreichen. Bitte speichern Sie gleich Ihren Kontakt zur AK Wien ein unter 501 65 1, gefolgt von der gewohnten Durchwahl. Dieses Mail ist ausschließlich für die Verwendung durch die/den darin genannten AdressatInnen bestimmt und kann vertrauliche bzw rechtlich geschützte Informationen enthalten, deren Verwendung ohne Genehmigung durch den/ die AbsenderIn rechtswidrig sein kann. Falls Sie dieses Mail irrtümlich erhalten haben, informieren Sie uns bitte und löschen Sie die Nachricht. UID: ATU 16209706 I https://wien.arbeiterkammer.at/Datenschutz_(DSGVO).html