Hi,
I have a similar issue. After I migrated to CRM 2016 from 2015, when trying to deactivate a custom entity record, I get the below error.
State code or status code is invalid.
State code is invalid or state code is valid but status code is invalid for a specified state code.
1 is not a valid status code for state code progres_rsdreviewState. Inactive on progres_rsdreview with Id 22a3112d-91b6-e411-b429-005056817afb.
I tried checking the state and status code are in sync in CRM 2015 and 2016. But it works fine in the previous version but not in the later.
I am unable to figure out the problem.
Any help would be greatly appreciated.
Regards,
Ganesh A