Skip to main content
Avalara Help Center

How do I fix CertCapture error message ERROR: 22021 : A database error has occurred?


As a result of an API call to CertCapture, you received an error message "ERROR: 22021 : A database error has occurred" and want to know how to resolve this error.




  • This error is thrown by the database and indicates that an invalid character has been passed in your request. If you were attempting to create a customer, please review the customer name and address looking for any unusual characters (such as accented letters). Replacing these with the standard letter should resolve the issue.