Hi @akwankl, It seems like a typo in the documentation but the anonymous block should be closed with $$; $$BEGINSET @v_snapshot_from = select parent_id from (select history_meta('email_tracking_experience_event_dataset') ) tab where is_current;SET @v_snapshot_to = select snapshot_id from (select his...