Overview
This page lists all Currency Validation (DC) error codes that may be returned when a submitted document’s currency codes or currency-dependent amounts fail validation (e.g. mismatched Tax Currency Code, foreign source currency, or document currency).
Each error includes the error code, a description of the error, possible causes, and the proposed solution to resolve it.
Note! Error codes and messages may be updated from time to time as new validation rules are introduced. Always refer to the latest version of this page for the most accurate list.
Error Codes
| Error Code |
Error Description |
Possible Causes |
Proposed Solution |
| DC501 |
Tax Amount currency code is not same as TaxCurrencyCode |
The currency code specified for a tax amount differs from the currency specified in TaxCurrencyCode. Whenever TaxCurrencyCode is provided, all tax-related monetary amounts must use the same currency. |
Ensure all TaxAmount currency codes match TaxCurrencyCode. |
| DC502 |
If the document currency is {0}, all currency codes for amounts should also be {0} |
The document has been issued using a specific DocumentCurrencyCode, but one or more monetary amount fields use a different currency. All monetary values within an e-Invoice must use the same currency as the DocumentCurrencyCode. |
Ensure all amount fields use the same currency as DocumentCurrencyCode. |
| DC510 |
Foreign source currency does not match document currency |
The currency specified for the foreign source transaction in the SourceCurrencyCode differs from the DocumentCurrencyCode. The document currency must be consistent with the source transaction currency. |
Verify that SourceCurrencyCode matches DocumentCurrencyCode. |
| DC512 |
Tax currency is not empty, therefore it should match the document currency or should be MYR |
• The TaxCurrencyCode provided in the document is invalid because it does not match the DocumentCurrencyCode and is not MYR. • When TaxCurrencyCode is included, it can only contain the same currency as DocumentCurrencyCode, or MYR (Malaysian Ringgit). • Any other value will cause validation to fail. |
• If tax reporting is performed in MYR, set TaxCurrencyCode to MYR. • Otherwise set TaxCurrencyCode equal to DocumentCurrencyCode. |
Notes
For a full list of accepted currency codes, please refer to the Codes section.