Apache Derby DB Error Code 42Z71 – XML values are not allowed in top-level result sets; try usi

In this blog post, let’s learn about the error message “42Z71- XML values are not allowed in top-level result sets; try usi” in Apache Derby Database and the description of the error.

Error Message

42Z71- XML values are not allowed in top-level result sets; try usi

Error Details

XML values are not allowed in top-level result sets; try using XMLSERIALIZE.