Skip to content

Editing and saving a single-occurrence Customer Order address fails with a generic 'Exception while sending data' / 'Database error occurred' error, with a SOAP fault buried in the debug log referencing an unclosed XML element in an address-validation call.

Answer

Check the address name and address lines for an ampersand (&) character — an unescaped '&' in the address data being passed through to an address-validation/tax-service integration (like Avalara) breaks the underlying XML/SOAP payload, producing exactly this kind of 'unexpected end of file, elements not closed' fault. Removing or replacing the '&' character in the address resolves it.

← Browse Distribution, CRM, and commerce questions