Annotation Is Disappearing When Conducting Certain Action

Resolution when Annotation disappears when conducting certain action.

Root Cause: Using a Microsoft Activities Library, only with the default Microsoft activities the problem appears. This is because all these activities are generic activities. The "TypeArgument" property will cause the Workflow Foundation to delete the old activity and create a new activity of the selected generic type. This is why the annotation is lost, because the annotation is bound to the activity instance that was deleted.


Resolution: While switching the "TypeArgument" property in activities like "For Each" or "Add Data Column", the annotation that is added to those activities are disappeared.

  1. Add a "For Each" activity

  1. Add an annotation

  1. In the Properties panel, change the Type Argument and the annotation will disappear