Taxes not being calculated. CommerceBuilder.AbleCommerceTax
Taxes not being calculated. CommerceBuilder.AbleCommerceTax
Taxes are not being calculated. This doesn't happen for every order, only some.
Error log shows this error:
Could not calculate with the configured tax provider: CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax, CommerceBuilder.AbleCommerceTax Object reference not set to an instance of an object.
We have tried debugging by viewing the result of the TaxCalculator.Recalculate(_Order) statement. And it shows 0.
We don't have any customized tax providers. Only simple Tax rules. Ablecommerce version is 7.0.5.
Error log shows this error:
Could not calculate with the configured tax provider: CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax, CommerceBuilder.AbleCommerceTax Object reference not set to an instance of an object.
We have tried debugging by viewing the result of the TaxCalculator.Recalculate(_Order) statement. And it shows 0.
We don't have any customized tax providers. Only simple Tax rules. Ablecommerce version is 7.0.5.
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
ERROR 2013-04-23 14:02:50,768 1756292ms Object a - Could not calculate with the configured tax provider: CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax, CommerceBuilder.AbleCommerceTax
System.NullReferenceException: Object reference not set to an instance of an object.
at CommerceBuilder.Taxes.Providers.AbleCommerce.TaxRuleHelper.GetPotentialTaxRules(Int32[] taxCodeIds, TaxAddress billingAddress, List`1 shippingAddresses, User user)
at CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax.Recalculate(Order order)
at CommerceBuilder.Taxes.TaxCalculator.Recalculate(Order order)
ERROR 2013-04-23 14:10:39,180 2224705ms Object a - Could not calculate with the configured tax provider: CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax, CommerceBuilder.AbleCommerceTax
System.NullReferenceException: Object reference not set to an instance of an object.
at CommerceBuilder.Taxes.Providers.AbleCommerce.TaxRuleHelper.GetPotentialTaxRules(Int32[] taxCodeIds, TaxAddress billingAddress, List`1 shippingAddresses, User user)
at CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax.Recalculate(Order order)
at CommerceBuilder.Taxes.TaxCalculator.Recalculate(Order order)
System.NullReferenceException: Object reference not set to an instance of an object.
at CommerceBuilder.Taxes.Providers.AbleCommerce.TaxRuleHelper.GetPotentialTaxRules(Int32[] taxCodeIds, TaxAddress billingAddress, List`1 shippingAddresses, User user)
at CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax.Recalculate(Order order)
at CommerceBuilder.Taxes.TaxCalculator.Recalculate(Order order)
ERROR 2013-04-23 14:10:39,180 2224705ms Object a - Could not calculate with the configured tax provider: CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax, CommerceBuilder.AbleCommerceTax
System.NullReferenceException: Object reference not set to an instance of an object.
at CommerceBuilder.Taxes.Providers.AbleCommerce.TaxRuleHelper.GetPotentialTaxRules(Int32[] taxCodeIds, TaxAddress billingAddress, List`1 shippingAddresses, User user)
at CommerceBuilder.Taxes.Providers.AbleCommerce.AbleCommerceTax.Recalculate(Order order)
at CommerceBuilder.Taxes.TaxCalculator.Recalculate(Order order)
- ForumsAdmin
- AbleCommerce Moderator
- Posts: 399
- Joined: Wed Mar 13, 2013 7:19 am
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
Is this by any chance happening for orders placed by anonymous users?
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
Yes, I have looked at some orders that are affected by this and that seems to be the case. So what's the fix?
- ForumsAdmin
- AbleCommerce Moderator
- Posts: 399
- Joined: Wed Mar 13, 2013 7:19 am
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
My guess is that anonymous user get deleted by the maintenance routine, and at some later stage, re-calculation of taxes is invoked on the order, may be as a result of some action in merchant admin. When this happens the exception occurs.
In Configure -> Maintenance : Anonymous User Maintenance section, try to increase the number of days anonymous users are retained.
In Configure -> Maintenance : Anonymous User Maintenance section, try to increase the number of days anonymous users are retained.
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
well, sometimes the order needs to be edited or an order is placed through admin. So I guess that if the anonymous user does not exist, it will revert the taxes to 0. Just wondering what's the relation between taxes and anonymous users. I mean what could have been going through the developer's mind, that he programmed such a glitch?
So is there a workaround or do we have to turn off anonymous user checkout?
So is there a workaround or do we have to turn off anonymous user checkout?
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
Another thing I am noticing is that the orders that were placed today have their user ids changed to 0 after 15 minutes of order placed. Why would that be? We have our anonymous user setting at 30 days.
- ForumsAdmin
- AbleCommerce Moderator
- Posts: 399
- Joined: Wed Mar 13, 2013 7:19 am
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
This is strange. AC doesn't do that even in the maintenance routine. It will delete the old anonymous users but it will not reset the ids to 0. Do you have any customizations on your site that could cause this?Another thing I am noticing is that the orders that were placed today have their user ids changed to 0 after 15 minutes of order placed. Why would that be? We have our anonymous user setting at 30 days.
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
ForumsAdmin wrote:This is strange. AC doesn't do that even in the maintenance routine. It will delete the old anonymous users but it will not reset the ids to 0. Do you have any customizations on your site that could cause this?Another thing I am noticing is that the orders that were placed today have their user ids changed to 0 after 15 minutes of order placed. Why would that be? We have our anonymous user setting at 30 days.
Well, I mean it's not changing the ids in the user table. But in the Order Table. It's setting userid in the Order Table to NULL.
- ForumsAdmin
- AbleCommerce Moderator
- Posts: 399
- Joined: Wed Mar 13, 2013 7:19 am
Re: Taxes not being calculated. CommerceBuilder.AbleCommerceTax
I have rechecked maintenance routines. No where in the maintenance code user id is updated for orders table. It must be something else. Some code at some other place.