Key Error when saving Dadra and Nagar Havelli as GST State

Team,

We are using ERPNext 12.13.0. When we try to save the GST State as Dadra and Nagar Havelli as GST State in the Address Doctype, we are getting this error

image

I get the same error for Daman and Diu.

However other state i am able set it properly.

Any suggestion on how to resolve this?

Thanks,
Saravana

Hi, it isn’t sufficient to add a state in Customize Form. It needs to be configured here as well. You can open / sponsor a Pull Request for the same.

EDIT: I don’t think this will make for a good PR, though. As it stands, these two union territories were merged recently. If you still need to denote these separately, you can do so in the state field of Address.

Hi @snv. Thanks for the response.

If i understood correctly, currently in the regional file, the name is “Dadra and Nagar Haveli and Daman and Diu”. However in the Address DropDown, we have Dadra and Nagar Haveli and Daman and Diu as separate options.

So need to remove those two options in Address Doctype using Customize Form and add “Dadra and Nagar Haveli and Daman and Diu” as single option for it to work.

Is that the right understanding?

Thanks,
Saravana