Symptom
While attempting to delete a content object, the system shows: "Validation Error | Please correct the following errors before proceeding: [object id] cannot be removed because it is in use".
Environment
SAP SuccessFactors Learning
Reproducing the Issue
- Import a learning content via Import content >
- Navigate to Content > Content Objects and search for the newly imported content object >
- At the content object level, try to delete >
- The system will display the validation error "ContentObjectID cannot be removed because it is in use".
Cause
When importing via import content, the system will create two entities that are linked:
- Content Package;
- Content Object.
Resolution
NOTE: Please kindly notice that it's discouraged to delete these primary records directly due to referential integrity constraints.
If customer insists on doing so, they can refer to the steps below, but this is still not the recommended method. The best way is to inactivate the entity instead. (Refer to KBA2253851.)
These entities are linked in the database level, the Content Package references the Content Object.
Due to this referential integrity constraint, the Content Object cannot be deleted while the Content Package still references it. To delete the content Object:
- Delete the Content Package first >
- The delete the content object.
See Also
Keywords
SuccessFactors, Learning, Content Object, delete, import content, cannot be removed because it is in use, validation error , KBA , LOD-SF-LMS-CNT , Content , How To
SAP Knowledge Base Article - Public