Error executing code: xRecord object does not have method 'setActiveSiteAndItemDimensions'.

I again re-compile the code and restart the AOS.it works fine now.