|}
==Update Errors (XUSTFOUP, XUDY, XUST, XUTY, FOUP)==
{| class="wikitable" width="100%"
! width="40%"|Examples
|- valign="top" scope="row"
|<code>XUST0001FOUP0001</code>| No updating expression is allowed hereThe first argument of <code>fn:put()</code> must be a document node or element.|<code>delete node /fn:put(text { 1 }, "finished'file."txt')</code>
|- valign="top" scope="row"
|<code>XUST0002FOUP0002</code>| An updating expression is expected in the The second argument of <code>modifyfn:put()</code> clause or an updating functionis not a valid URI.|<code>copy $a fn:= put(<x/> modify 1 return $a</code>|- valign="top" scope="row"|<code>XUST0003</code>| The revalidation mode was declared more than once.|<code>declare revalidation ...</code>|- valign="top" scope="row"|<code>XUST0026</code>| The query contains a revalidate expression (revalidation is not supported by BaseX).|<code>declare revalidation ...<, '/code>|- valign="top" scope="row"|<code>XUST0028</code>| no return type may be specified in an updating function.|<code>declare updating function local:x() as item() { () }; (')</code>
|-
| colspan=3 style="background-color:white;"|
| Multiple calls to <code>fn:put()</code> address the same URI.
|<code>for $i in 1 to 3 return put(<a/>, 'file.txt')</code>
|-
| colspan=3 style="background-color:white;"|
|- valign="top" scope="row"
|<code>XUST0001</code>
| No updating expression is allowed here.
|<code>delete node /, "finished."</code>
|- valign="top" scope="row"
|<code>XUST0002</code>
| An updating expression is expected in the <code>modify</code> clause or an updating function.
|<code>copy $a := <x/> modify 1 return $a</code>
|- valign="top" scope="row"
|<code>XUST0003</code>
| The revalidation mode was declared more than once.
|<code>declare revalidation ...</code>
|- valign="top" scope="row"
|<code>XUST0026</code>
| The query contains a revalidate expression (revalidation is not supported by BaseX).
|<code>declare revalidation ...</code>
|- valign="top" scope="row"
|<code>XUST0028</code>
| no return type may be specified in an updating function.
|<code>declare updating function local:x() as item() { () }; ()</code>
|-
| colspan=3 style="background-color:white;"|
| An attribute must not be inserted into a document node.
|<code>insert node <e a=""/>/@a into document {'a'}</code>
|-
| colspan=3 style="background-color:white;"|
|- valign="top" scope="row"
|<code>FOUP0001</code>
| The first argument of <code>fn:put()</code> must be a document node or element.
|<code>fn:put(text { 1 }, 'file.txt')</code>
|- valign="top" scope="row"
|<code>FOUP0002</code>
| The second argument of <code>fn:put()</code> is not a valid URI.
|<code>fn:put(<a/>, '//')</code>
|}
Still to be finished…