To use the update variable action, you need to have a variable data element. Indeed, when configuring the update variable action, the first item in the form is which variable data element to use. Then use the same variable data element in the send event action as the XDM object.