You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently hit an issue with Xero responding with the following error;
A validation exception occurred (Due Date for Sales Invoices must be between 1 and 31 when set to the following (or current) month)
Validation errors:
Due Date for Bills must be between 1 and 31 when set to the following (or current) month.
We have had this in the past, and haven't had chance to explore further, however would like to get to the bottom of it. I believe it always happens around New Year, yet the Date being sent isn't around 01/01/22 00:00 etc.
I don't send a DueDate to Xero, so it uses the default +7 days for all raised invoices. However I have set a DueDate on the above to see if it solves the issue, but still the same.
When I raised this with Xero, they believe it's down to PaymentTerms being sent as 0. However, we don't set any PaymentTerms in our requests, and the contact doesn't have any PaymentTerms set on Xero.
Xero have asked me to remove this and test again, however 1) we are not setting them in our code, so can only assume it's being added to the request by the Xero library, and 2) as it's only affecting one invoice, I don't believe this is the issue.
Has anyone seen this before please? No other invoice creation since the above has thrown this error.
The error in the response from Xero is;
<ValidationErrors>
<ValidationError>
<Message>Due Date for Bills must be between 1 and 31 when set to the following (or current) month.</Message>
</ValidationError>
<ValidationError>
<Message>Due Date for Sales Invoices must be between 1 and 31 when set to the following (or current) month.</Message>
</ValidationError>
</ValidationErrors>
<Contact>
<ValidationErrors>
<ValidationError>
<Message>Due Date for Bills must be between 1 and 31 when set to the following (or current) month.</Message>
</ValidationError>
<ValidationError>
<Message>Due Date for Sales Invoices must be between 1 and 31 when set to the following (or current) month.</Message>
</ValidationError>
</ValidationErrors>
The text was updated successfully, but these errors were encountered:
I've recently hit an issue with Xero responding with the following error;
We have had this in the past, and haven't had chance to explore further, however would like to get to the bottom of it. I believe it always happens around New Year, yet the
Date
being sent isn't around 01/01/22 00:00 etc.I don't send a
DueDate
to Xero, so it uses the default +7 days for all raised invoices. However I have set a DueDate on the above to see if it solves the issue, but still the same.When I raised this with Xero, they believe it's down to PaymentTerms being sent as 0. However, we don't set any PaymentTerms in our requests, and the contact doesn't have any PaymentTerms set on Xero.
Xero have asked me to remove this and test again, however 1) we are not setting them in our code, so can only assume it's being added to the request by the Xero library, and 2) as it's only affecting one invoice, I don't believe this is the issue.
Has anyone seen this before please? No other invoice creation since the above has thrown this error.
The error in the response from Xero is;
The text was updated successfully, but these errors were encountered: