Not able to restore achive data using NAVAPP.RESTOREARCHIVEDATA(Tableid) in extensions for NAV 2017

Hello Experts,

I have created an extension for an addons . While testing in my local system I have found some bug so in order to fix that I have to uninstall the extension but I have stored some data in my custom table which I don't want to delete.

So in my upgrade codeunit where I have created one global function named OnNavAppUpgradePerCompany I have written below code


But when I have uninstalled that addons and again install that addons in my local machine I was not able to get my Archive data.

Please suggest me what should I need to do in order to fix that, I have followed below link but still not able to restore archive data.