SAP Message SMOE_CHECK002 - Referenced publication not found, although generator is not to be deleted

Diagnosis
On the checked system the publication is missing, but the SubscriptionGenerator is not in state 'To Be Deleted'. This is an error situationbecause invalid subscriptions will not be deleted by the SubscriptionAgent.

System Response
Publications for which subscription generators are defined on thesystem are protected against deletion. However, when a deletion of apublication is transported into the system such a check is notpossible. In this case the publication will be deleted and thesubscription generator will be set to status 'To Be Deleted'automatically.
In this state the Subscription Agent tries to delete all subscriptionscreated by this generator in the following runs. As soon as allsubscriptions have been removed on all clients on the system thegenerator will be deleted, too.
On the system the generator is not in status 'To Be Deleted'.

Procedure
Set the subscription generator to status 'To Be Deleted'.