> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/product-help-and-support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/product-help-and-support/for-large-businesses/cleartax-e-invoicing-malaysia/resources/error-resolution-guide.md).

# Error resolution guide

| Error Message                                                                                                                         | Reasons for the error                                                                                                                                                                            | Resolution for the error                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| An Invoice MUST have an Invoice number with length less than 50.                                                                      | Invoice number provided is more than 50 characters. The allowed character limit for the invoice number by LHDN is 50 characters to generate E-invoice.                                           | The invoice number provided should be less than 50 characters.                                                                                                                                    |
| An Invoice MUST have an Invoice issue date.                                                                                           | Invoice issue date is not provided in the invoice data. Invoice issue date is mandatory to generate E-invoice.                                                                                   | Invoice issue date must be provided in the invoice data to generate E-invoice. The invoice issue date should not be older than 2 days and should be in date format.                               |
| An Invoice MUST have an Invoice issue time.                                                                                           | Invoice issue time is not provided in the invoice data. Invoice issue time is mandatory to generate E-invoice.                                                                                   | Invoice issue time must be provided in the invoice data to generate E-invoice. The invoice issue time should be in time format.                                                                   |
| An Invoice MUST have an Invoice type code.                                                                                            | Invoice type code is not provided in the invoice data. Invoice type code is mandatory to generate E-invoice.                                                                                     | Invoice type code must be provided in the invoice data to generate E-invoice. Invoice type code allowed by LHDN is mentioned [here](https://sdk.myinvois.hasil.gov.my/codes/e-invoice-types/).    |
| An Invoice MUST have an Invoice currency code.                                                                                        | Invoice currency code. is not provided in the invoice data. Invoice currency code. is mandatory to generate E-invoice.                                                                           | Invoice currency code must be provided in the invoice data to generate E-invoice. Invoice currency code allowed by LHDN is mentioned [here](https://sdk.myinvois.hasil.gov.my/codes/currencies/). |
| An Invoice MUST contain the Seller name.                                                                                              | Seller name is not provided in the invoice data. Seller name is mandatory to generate E-invoice.                                                                                                 | Seller name must be provided in the invoice data and it should be less than 300 characters to generate E-invoice.                                                                                 |
| An Invoice MUST have at least one Supplier ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC'.                                  | At least one Supplier ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC' is not present in the Invoice.                                                                                    | At least one Supplier ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC' must be present in the Invoice.                                                                                    |
| An Invoice must contain the Supplier's TIN which is less than 14 characters long.                                                     | Supplier TIN is not provided in the invoice data. Supplier TIN is mandatory to generate E-invoice and must be less than 14 characters.                                                           | Supplier TIN is mandatory to generate E-invoice and must be less than 14 characters.                                                                                                              |
| Suppliers BRN must be less than 20 characters.                                                                                        | Supplier BRN provided is more than 20 characters. The allowed character limit by LHDN is 20 characters to generate E-invoice.                                                                    | Supplier BRN provided should be less than 20 characters.                                                                                                                                          |
| Suppliers NRIC must be less than 12 characters.                                                                                       | Supplier NRIC provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                                   | Supplier NRIC provided should be less than 12 characters.                                                                                                                                         |
| Suppliers PASSPORT must be less than 12 characters.                                                                                   | Supplier PASSPORT provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                               | Supplier PASSPORT provided should be less than 12 characters.                                                                                                                                     |
| Suppliers ARMY must be less than 12 characters.                                                                                       | Supplier ARMY provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                                   | Supplier ARMY provided should be less than 12 characters.                                                                                                                                         |
| Suppliers SST must be present and should be less than 17 characters, Default: NA.                                                     | Supplier SST Number provided is more than 35 characters. The allowed character limit by LHDN is 35 characters to generate E-invoice.                                                             | Supplier SST number provided should be less than 35 characters.                                                                                                                                   |
| Suppliers TTX must be present and should be less than 17 characters, Default: NA.                                                     | Supplier TTX Number provided is more than 17 characters. The allowed character limit by LHDN is 17 characters to generate E-invoice.                                                             | Supplier SST number provided should be less than 17 characters.                                                                                                                                   |
| Suppliers Email must be less than 320 characters.                                                                                     | Supplier email provided is more than 320 characters. The allowed character limit by LHDN is 320 characters to generate E-invoice.                                                                | Supplier email provided should be less than 320 characters.                                                                                                                                       |
| Suppliers Contact Number is mandatory and must be less than 15 characters.                                                            | Supplier contact number is not provided in the invoice data. Supplier contact number is mandatory to generate E-invoice and must be less than 15 characters.                                     | Supplier contact number is mandatory to generate E-invoice and it should be less than 15 characters.                                                                                              |
| Supplierâ€™s Malaysia Standard Industrial Classification (MSIC) Code is Mandatory and should be less than 5 characters.               | Supplier's Malaysia Standard Industrial Classification (MSIC) Code is Mandatory provided is more or less than 5 characters.                                                                      | Supplier's Malaysia Standard Industrial Classification (MSIC) Code is Mandatory provided should be 5 characters.                                                                                  |
| Supplierâ€™s Malaysia Standard Industrial Classification Description (MSIC) Code is Mandatory and should be less than 300 characters. | Supplier's Malaysia Standard Industrial Classification Description (MSIC) Code is Mandatory and should be less than 300 characters.                                                              | Supplier's Malaysia Standard Industrial Classification Description (MSIC) Code is Mandatory and should be less than 300 characters.                                                               |
| An Invoice MUST contain the Seller postal address                                                                                     | Seller postal address is not provided in the invoice data. Seller postal address is mandatory to generate E-invoice.                                                                             | Seller postal address must be provided to generate E-invoice.                                                                                                                                     |
| An Invoice MUST contain the Buyer name.                                                                                               | Buyer name is not provided in the invoice data. Buyer name is mandatory to generate E-invoice.                                                                                                   | Buyer name must be provided in the invoice data and it should be less than 300 characters to generate E-invoice.                                                                                  |
| An Invoice MUST have at least one Buyer ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC'.                                     | At least one Buyer ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC' is not present in the Invoice.                                                                                       | At least one Buyer ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC' must be present in the Invoice.                                                                                       |
| An Invoice must contain the Buyer's TIN which is less than 14 characters long.                                                        | Buyer TIN is not provided in the invoice data. Buyer TIN is mandatory to generate E-invoice and must be less than 14 characters.                                                                 | Supplier TIN is mandatory to generate E-invoice and must be less than 14 characters.                                                                                                              |
| Buyer's BRN must be less than 20 characters.                                                                                          | Buyer BRN provided is more than 20 characters. The allowed character limit by LHDN is 20 characters to generate E-invoice.                                                                       | Buyer BRN provided should be less than 20 characters.                                                                                                                                             |
| Buyer's NRIC must be less than 12 characters.                                                                                         | Buyer NRIC provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                                      | Buyer NRIC provided should be less than 12 characters.                                                                                                                                            |
| Buyer's PASSPORT must be less than 12 characters.                                                                                     | Buyer PASSPORT provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                                  | Buyer PASSPORT provided should be less than 12 characters.                                                                                                                                        |
| Buyer' ARMY must be less than 12 characters.                                                                                          | Buyer ARMY provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                                      | Buyer ARMY provided should be less than 12 characters.                                                                                                                                            |
| Buyers SST must be present and should be less than 17 characters, Default: NA.                                                        | Buyer SST Number provided is more than 35 characters. The allowed character limit by LHDN is 35 characters to generate E-invoice.                                                                | Buyer SST number provided should be less than 35 characters.                                                                                                                                      |
| Buyer's Email must be less than 320 characters.                                                                                       | Buyer email provided is more than 320 characters. The allowed character limit by LHDN is 320 characters to generate E-invoice.                                                                   | Buyer email provided should be less than 320 characters.                                                                                                                                          |
| Buyer's Contact Number must be less than 15 characters.                                                                               | Buyer contact number provided is more than 15 characters. The allowed character limit by LHDN is 15 characters to generate E-invoice.                                                            | Buyer contact number provided should be less than 15 characters.                                                                                                                                  |
| An Invoice MUST contain the Buyer postal address.                                                                                     | Buyer postal address is not provided in the invoice data. Buyer postal address is mandatory to generate E-invoice.                                                                               | Buyer postal address must be provided to generate E-invoice.                                                                                                                                      |
| If DeliveryAddress exist atleast one Delivery Party ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC' should exist.            | If DeliveryAddress exist ,atleast one Delivery Party ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC' is not present                                                                     | If DeliveryAddress exist ,atleast one Delivery Party ID with schemeID as 'ARMY', 'PASSPORT', 'BRN', or 'NRIC' should be Provided                                                                  |
| If DeliveryAddress exist it must contain the Delivery Party TIN which is less than 14 characters long.                                | Shipping recipient TIN is not provided in the invoice data. If shipping details are provided then Shipping recipient TIN is mandatory to generate E-invoice and must be less than 14 characters. | If shipping details are provided then Shipping recipient TIN is mandatory to generate E-invoice and must be less than 14 characters.                                                              |
| Delivery Party BRN must be less than 20 characters.                                                                                   | Shipping recipient BRN provided is more than 20 characters. The allowed character limit by LHDN is 20 characters to generate E-invoice.                                                          | Shipping recipient BRN provided should be less than 20 characters.                                                                                                                                |
| Delivery Party NRIC must be less than 12 characters.                                                                                  | Shipping recipient NRIC provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                         | Shipping recipient NRIC provided should be less than 12 characters.                                                                                                                               |
| Delivery Party PASSPORT must be less than 12 characters.                                                                              | Shipping recipient PASSPORT provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                     | Shipping recipient PASSPORT provided should be less than 12 characters.                                                                                                                           |
| Delivery Party ARMY must be less than 12 characters.                                                                                  | Shipping recipient ARMY provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                         | Shipping recipient ARMY provided should be less than 12 characters.                                                                                                                               |
| An Invoice MUST have at least one Line Item                                                                                           | No line item is present in the invoice                                                                                                                                                           | Please provide atleast one line item                                                                                                                                                              |
| Invoicing period MUST occur maximum once.                                                                                             | Invoicing period is provided more than once                                                                                                                                                      | Invoicing period can only be provided once                                                                                                                                                        |
| Invoice TaxTotal is Mandatory.                                                                                                        | Invoice tax total should be present in the invoice                                                                                                                                               | Please provide the Invoice tax total                                                                                                                                                              |
| The Supplier postal address MUST contain a Seller country code.                                                                       | Seller country code is not provided in the seller postal address. Seller country code is mandatory to generate E-invoice.                                                                        | Seller country code is mandatory to generate E-invoice. The list of allowed country code by LHDN can be referred [here](https://sdk.myinvois.hasil.gov.my/codes/countries/).                      |
| The Supplier Postal Address Line MUST be less than 150 characters                                                                     | Supplier Postal Address provided is more than 150 characters. The allowed character limit by LHDN is 150 characters to generate E-invoice.                                                       | Supplier Postal Address provided should be less than 150 characters.                                                                                                                              |
| The Supplier Postal Zone MUST be less than 50 characters                                                                              | Supplier Postal Zone provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                            | Supplier Postal Zone provided should be less than 50 characters.                                                                                                                                  |
| The Supplier City MUST be less than 50 characters                                                                                     | Supplier City provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                                   | Supplier City provided should be less than 50 characters.                                                                                                                                         |
| The Supplier State MUST be less than 50 characters                                                                                    | Supplier State provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                                  | Supplier State provided should be less than 50 characters.                                                                                                                                        |
| The Buyer postal address MUST contain a Buyer country code.                                                                           | Buyer country code is not provided in the seller postal address. Buyer country code is mandatory to generate E-invoice.                                                                          | Buyer country code is mandatory to generate E-invoice. The list of allowed country code by LHDN can be referred [here](https://sdk.myinvois.hasil.gov.my/codes/countries/).                       |
| The Buyer Postal Address Line MUST be less than 150 characters                                                                        | Buyer Postal Address provided is more than 150 characters. The allowed character limit by LHDN is 150 characters to generate E-invoice.                                                          | Buyer Postal Address provided should be less than 150 characters.                                                                                                                                 |
| The Buyer Postal Zone MUST be less than 50 characters                                                                                 | Buyer Postal Zone provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                               | Buyer Postal Zone provided should be less than 50 characters.                                                                                                                                     |
| The Buyer City MUST be less than 50 characters                                                                                        | Buyer City provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                                      | Buyer City provided should be less than 50 characters.                                                                                                                                            |
| The Buyer State MUST be less than 50 characters                                                                                       | Buyer State provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                                     | Buyer State provided should be less than 50 characters.                                                                                                                                           |
| The Delivery postal address MUST contain a Delivery country code.                                                                     | Shipping recipient country code is not provided in the seller postal address. Shipping recipient country code is mandatory to generate E-invoice.                                                | Shipping recipient country code is mandatory to generate E-invoice. The list of allowed country code by LHDN can be referred here.                                                                |
| The Delivery Postal Address Line MUST be less than 150 characters                                                                     | Shipping recipient Postal Address provided is more than 150 characters. The allowed character limit by LHDN is 150 characters to generate E-invoice.                                             | Shipping recipient Postal Address provided should be less than 150 characters.                                                                                                                    |
| The Delivery Postal Zone MUST be less than 50 characters                                                                              | Shipping recipient Postal Zone provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                  | Shipping recipient Postal Zone provided should be less than 50 characters.                                                                                                                        |
| The Delivery City MUST be less than 50 characters                                                                                     | Shipping recipient City provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                         | Shipping recipient City provided should be less than 50 characters.                                                                                                                               |
| The Delivery State MUST be less than 50 characters                                                                                    | Shipping recipient State provided is more than 50 characters. The allowed character limit by LHDN is 50 characters to generate E-invoice.                                                        | Shipping recipient State provided should be less than 50 characters.                                                                                                                              |
| An Invoice MUST have the Sum of Invoice line net amount.                                                                              | Sum of Invoice line net amount in not present in the invoice                                                                                                                                     | Please provide the sum of invoice line net amount                                                                                                                                                 |
| Amount due for payment = Invoice total amount with Tax - Paid amount + Rounding amount.                                               | Amount due for payment is not correct                                                                                                                                                            | Check whether Amount due for payment is equal to Invoice total amount with Tax - Paid amount + Rounding amount.                                                                                   |
| Each Document level allowance MUST have a Document level allowance reason.                                                            | Document level allowance reason is not provided                                                                                                                                                  | Please provide the reason for Document level allowance                                                                                                                                            |
| Payment Means Code should be equal to 2 characters.                                                                                   | Provided payment means code is not correct                                                                                                                                                       | Payment means code must be used from the list of codes provided by LHDN                                                                                                                           |
| Payee Financial Account should be maximum 150 characters                                                                              | Characters in the Payee Financial Account is exceeding 150 characters                                                                                                                            | Please check & correct the number of characters in the Payee Financial Account, it should not exceed 150 characters                                                                               |
| Payment terms must have maximum 300 characters                                                                                        | Characters in the Payment terms is exceeding 300 characters                                                                                                                                      | Please check & correct the number of characters in the Payment terms, it should not exceed 300 characters                                                                                         |
| Prepaid Payment ID must be less than 150 characters                                                                                   | Prepaid Payment ID provided is more than 150 characters. The allowed character limit by LHDN is 150 characters to generate E-invoice.                                                            | Prepaid Payment ID provided should be less than 150 characters.                                                                                                                                   |
| Prepaid Payment Date must be present                                                                                                  | Prepaid Payment date is not provided when prepayment amount is available                                                                                                                         | Prepaid Payment date must be provided when prepayment amount is available                                                                                                                         |
| Prepaid Payment Time must be present                                                                                                  | Prepaid Payment Time is not provided when prepayment amount is available                                                                                                                         | Prepaid Payment Time must be provided when prepayment amount is available                                                                                                                         |
| Product Tariff Code should be less than 12 characters.                                                                                | Product Tariff Code provided is more than 12 characters. The allowed character limit by LHDN is 12 characters to generate E-invoice.                                                             | Product Tariff Code provided should be less than 12 characters.                                                                                                                                   |
| A time MUST be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression.                                     | Time is not in the correct format                                                                                                                                                                | Please provide the invoice time in hh:mm:ss format                                                                                                                                                |
| currencyID MUST be coded using ISO code list 4217 alpha-3.                                                                            | Currency code is not present in the ISO code list                                                                                                                                                | Please check the provided currency ID is in the ISO code list                                                                                                                                     |
| Invoice currency code MUST be coded using ISO code list 4217 alpha-3                                                                  | Invoice Currency code is not present in the ISO code list                                                                                                                                        | Please check the provided Invoice currency code is in the ISO code list                                                                                                                           |
| Tax currency code MUST be coded using ISO code list 4217 alpha-3                                                                      | Tax Currency code is not present in the ISO code list                                                                                                                                            | Please check the provided Tax currency code is in the ISO code list                                                                                                                               |
| Item classification identifier identification scheme MUST be coded using one of the UNTDID 7143 list.                                 | Item classification identifier is not in the UNTDID 7143 list.                                                                                                                                   | Item classification identifier identification scheme MUST be coded using one of the UNTDID 7143 list.                                                                                             |
| Country codes in an invoice MUST be coded using ISO code list 3166-1                                                                  | Country codes in the invoice is not present in the ISO code list 3166-1                                                                                                                          | Country codes in the invoice should be provided using the ISO code list 3166-1                                                                                                                    |
