Improved error message in USXXML export