We have the following scenario:
We created a managed package that contains a Platform Event and an Apex Trigger subscribed to it and installed it at a customer Org. In the Customer Production Org we have a custom Process Builder Flow and a custom apex trigger subscribed to the packaged event. So in Production it's all working fine, however upon Sandbox Refresh (Full Copy, from Production) we experienced difficulties.
The two apex triggers (managed and custom) are not listed as subscribers of the managed event anymore (Setup > Develop > Platform Events > MyEvent__e > Subscriptions).
After reading up on the issue it seems to be a SF Known Issue that has not been addressed yet (see also this question). There is a similar StackExchange question that comes up with a workaround. By simply editing and saving the custom trigger we were able to fix this but only for the custom trigger. We have no way of recompiling the managed trigger in the same way.
So far we have tried these different approaches:
- recompiling all apex classes
- re-install of the same package version
- install of a higher package version (patch version)
But we could not solve this issue. A complete uninstall and reinstall in the SB is not possible due to many customizations to the packaged components in the customer Org.
Any workarounds or suggestions are highly appreciated. Thanks in advance