Hi Rob,

Could you provide us with a self-contained example? The following example code works as expected:

  store:read('x'),
  delete node <a/>

Best,
Christian


Von: Rob Stapper via BaseX-Talk <basex-talk@mailman.uni-konstanz.de>
Gesendet: Donnerstag, 4. Dezember 2025 14:26
An: basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.de>
Betreff: [basex-talk] store:read within an updating function
 
Hello Christian,
 
Allthough the store:read function returns an empty sequense I found that it still triggers  the error: 'expressions must all be updating ....', when used within an updating function.
 
I guess this error is unnecesary. 
The workaround is quite easy by using a void function[1]
 
[1] store:read( $name) => void()
 
mvgr. Rob Stapper