depending on your rule to open the file... if you create a new one each time, will not work as expected, you may change to chek if file exists and create only if not and later open it and append new lines at the end...
did you try the DELETE %NOTRIGGER ?
Certifications & Credly badges:
Ariel has no Certifications & Credly badges yet.
Global Masters badges:
Ariel has no Global Masters badges yet.
Followers:
Ariel has no followers yet.
Following:
Ariel has not followed anybody yet.
is the stream modified during logic A; I mean, why not to apply logicA & logicB at the same time? where is the restriction for that?