SAP Message UCS0158 - Document type &2 is not valid for task &1

Diagnosis
Task &V1& is assigned to an invalid document type &V2&.

System Response
Task cannot be executed.

Procedure
In the customizing settings for consolidation, assign a valid documenttype to task &V1&.