Subscription service: unexpected PublishResponse with OutOfMemory error status on newly created subscription
Description
Publish response are returned as ServiceFault with Bad_OutOfMemory error status on a newly created subscription. It occurs only if a previous subscription was deleted whereas MoreNotification = TRUE was set for this subscription and the new one uses the same subscription Id.
Analysis
New subscription has MoreNotification = TRUE state remaining from previously deleted subscription. This leads to creation of notification message with 0 elements which is unexpected and results in a OutOfMemory status code.
Fix
Reset the MoreNotification state of subscription on deletion as it was done for all other internal states.
Edited by Vincent Monfort