The record is not in an editable state

I am trying to remove the user defined fields from the sales order entry form. I removed the fields from the customization panel, deleted the customization, deleted user defined fields, rebuilt customizer log, updated custom panels to current level, rebuilt key fields, rebuilt sort fields. But I could still see the fields in the sales order entry screen, then I tried to create a new customization and now all these fields are imported into this new customization I just created and it doesn't let me edit the panel. This is where I get the error "The record is not in an editable state".

FYI: Deleting the customization didn't change anything, I could still see the fields in the sales order entry, while I have already deleted those fields from the sales order detail table and sales order work table