Data Security page under the Privileges tab, does not load properly and shows error. Why?

Data Security page under the Privileges tab, does not load properly and shows error. Why?

Ensure that the foreign key of the problematic hierarchy has an equivalent match with one of the level column names. The dimension in the combo-box loads according to that. This you can navigate to Administrator->Metadata Management and verify