Avalara Plugin uninstall take more than hour

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 года назад
Hi Team,
Recently we upgraded nop 4.0 to 4.2 .
While uninstalling avalara plugin take more then 1 hour
Any reason for that ? or it's bug ?
4 года назад
It should not take that long time.

In nop v4.2, you need to restart application after clicking Uninstall button of plugin. Otherwise changes will not be applied. Did you follow that process?
4 года назад
Thanks for reply
I followed steps are same
In plugin uninstall
foreach (var taxCategory in _taxCategoryService.GetAllTaxCategories())
            {
                _genericAttributeService.SaveAttribute<string>(taxCategory, AvalaraTaxDefaults.TaxCodeDescriptionAttribute, null);
                _genericAttributeService.SaveAttribute<string>(taxCategory, AvalaraTaxDefaults.TaxCodeTypeAttribute, null);
            }
            foreach (var customer in _customerService.GetAllCustomers())
            {
                _genericAttributeService.SaveAttribute<string>(customer, AvalaraTaxDefaults.EntityUseCodeAttribute, null);
            }
            foreach (var customerRole in _customerService.GetAllCustomerRoles(true))
            {
                _genericAttributeService.SaveAttribute<string>(customerRole, AvalaraTaxDefaults.EntityUseCodeAttribute, null);
            }
            foreach (var product in _productService.SearchProducts(showHidden: true))
            {
                _genericAttributeService.SaveAttribute<string>(product, AvalaraTaxDefaults.EntityUseCodeAttribute, null);
            }
            foreach (var attribute in _checkoutAttributeService.GetAllCheckoutAttributes())
            {
                _genericAttributeService.SaveAttribute<string>(attribute, AvalaraTaxDefaults.EntityUseCodeAttribute, null);
            }

            //settings            
            _taxSettings.ActiveTaxProviderSystemName = _taxPluginManager.LoadAllPlugins()
                .FirstOrDefault(taxProvider => !taxProvider.PluginDescriptor.SystemName.Equals(AvalaraTaxDefaults.SystemName))
                ?.PluginDescriptor.SystemName;
            _settingService.SaveSetting(_taxSettings);
            _widgetSettings.ActiveWidgetSystemNames.Remove(AvalaraTaxDefaults.SystemName);
            _settingService.SaveSetting(_widgetSettings);
            _settingService.DeleteSetting<AvalaraTaxSettings>();

These will take to much time
4 года назад
Hi.
There is a work item for this in our issue tracker. We'll investigate it.
4 года назад
Thanks for the update we will wait for the fix
4 года назад
Fixed in this commit.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.