Maybe your dataset or page hasn’t executed onready event? Try putting console log in page on ready and test