@SorenB
To verify if uielement is causing issue …try to remove the argument and check if the flow works without error
Cheers