SAP Message RTCMMD066 - A role is assigned to hierarchy node &

Diagnosis
The hierarchy node is not flagged as a category but has been assigned arole.
You can only assign a role to a category.

Procedure
You have to delete the role assigned to the hierarchy node.