Hello Elsabe,
could you please post one of the documents that you experienced the problem with?
I defined your schema into Tamino 4.1.4.3, then created a simple document conforming to it:
<?xml version="1.0" encoding="UTF-8"?>
<AccountTypeCode>A</AccountTypeCode></pre><BR>When I tried to insert this document the first time, it loaded correctly. When I tried to load it again, I received an error message from the Server Extension.<BR><BR>If Server Extension logging is activated, some interesting information will be written to the log. In particular the X-Query expressions used to check unique constraints.<BR>For the document shown above the following X-Query was executed:<BR><pre class="ip-ubbcode-code-pre"> boolean(/AccountTypeCode[@ino:id!="2"][(.="A")])
To explain this a little bit: the first time I inserted the document it was assigned ino:id=1. The second insert assigned ino:id=2, and the X-Query shown is checking that there is no “AccountTypeCode” document except this one (@ino:id!=“2”) with the value “A”.
If you experience similar problems later (or if you would like to investigate the problem that mysteriously solved itself), perhaps you could activate logging and try executing some of the X-Query expressions “by hand”. Don’t use the [@ino:id=…] filter, just check if any documents match the second filter condition. (Perhaps I should elaborate on this last point: it is conceivable that the generated X-Query expression is somehow incorrect. The easiest way to check the generated expressions is to try and execute them.)
Greetings,
Trevor.
#Tamino#API-Management#webMethods