I’m trying to migrate data for the Income Tax Slab DocType, but I’m consistently getting a frappe.exceptions.MandatoryError: [Income Tax Slab, PPh 21 TER Kategori A]: currency error.
I’ve already checked the following things:
currencyvalue in my data: The JSON file clearly shows"currency": "IDR".- Currency DocType: I have confirmed that “IDR” exists as a valid and
Enabledcurrency in my Frappe instance.
This error is happening during a data import/migration process. Since the currency value is present in my data and is a valid currency in Frappe, I’m at a loss as to why the system is still flagging the field as mandatory and missing.
Could this be a case sensitivity issue, a hidden character, or something else I’m missing? Has anyone else encountered this problem?
Any help or insights would be greatly appreciated. Thank you!
Or is it because
{
"allow_tax_exemption": 0,
"amended_from": null,
"company": "Company",
"currency": "IDR",
"disabled": 0,
"docstatus": 1,
"doctype": "Income Tax Slab",
"effective_from": "2025-01-01",
"modified": "2025-09-17 11:10:17.404103",
"name": "PPh 21 TER Kategori A",
"other_taxes_and_charges": [],
"slabs":
the company name? or currency name? because i migrate to other company? but the currency stays the same