Fixing MyInvois e-Invoicing Errors in Odoo 17
· Odoo
Fixing MyInvois e-Invoicing Errors in Odoo 17: Classification, Amount, and IdValue Invalid
If you’re rolling out Malaysia’s e-Invoicing using Odoo 17 and encountering the following blocking error messages right after clicking “Send to MyInvois,” you’re not alone:
- Classification is invalid
- LineItem_ItemPriceExtension_Amount is invalid
- IdValue is invalid
These errors stop your XML invoice payload from reaching the LHDN (Malaysian tax authority) and can be frustrating if you don’t know where to start.
What Do These Errors Mean?
Classification is invalid: Every product or invoice line must include a valid classification code from the official MyInvois classification list, which ranges from 001 to 045. If the product lacks this code, or the code isn’t correctly included in the XML, MyInvois will reject the invoice with this error.
LineItem_ItemPriceExtension_Amount is invalid: This value represents the net amount of each invoice line after discounts but before taxes. If the related XML tag cac:ItemPriceExtension is missing or contains the wrong subtotal value, validation will fail.
IdValue is invalid: Every party on the invoice—whether customer or supplier—must have a valid Tax Identification Number (TIN) and a properly formatted secondary identifier (like NRIC, BRN, or Passport number). Missing or malformed identifiers cause this error.
How We Fixed It
To resolve these errors and ensure seamless MyInvois submissions from Odoo:
- Classification Codes: We enforced mandatory classification codes on all invoice lines and ensured each code included the required listID=“CLASS” attribute as per schema specifications.
- Correct Line Subtotals: We programmed Odoo to automatically fill the cac:ItemPriceExtension section with the correct net amount, accounting for discounts and surcharges.
- Validated Party Identifications: We added checks to guarantee that both TINs and secondary IDs always comply with required formatting rules before sending.
With these safeguards in place, Odoo generates valid UBL XML files that pass LHDN’s rigorous validations without manual XML edits.
Need Help Fixing MyInvois Errors in Your Odoo Setup?
Dealing with these kinds of validation errors can delay your compliance and frustrate your finance team. Our experts specialize in diagnosing and hardening Odoo e-Invoicing flows tailored to Malaysian regulations. Reach out for a consultation, and let us ensure every XML you send to MyInvois is accepted the first time.
If you are thinking if your company has grown larger requiring more comprehensive WMS, consider looking up our Guide and Features to be looking for.
More on Finance & Accounts
How to Create Two Different Quotation Format in Odoo
Read more →How to Monitor current Cashflow and Future Cashflow
Read more →Payments Gateway in Malaysia comparison
Info: updated as of 16 Dec 2025 E-commerce is growing faster during MCO Movement Control Order in Malaysia, these days almost everyone will know three things: Payment Gateways in Malaysia There are many in Malaysia, we will just share most that we come across often To make the comparison easier, you need to be aware […]
Read more →