Page 1 of 1

UPS shipping tools error

Posted: Wed Nov 12, 2008 1:50 pm
by BryanWarmoth
I just recently started to see this error popping up in my error log:
Warn | Error obtaining rate quote for shipping method 'UPS 2nd Day Air®'. | Object reference not set to an instance of an object.
After looking at the log file the errors seems to be coming from a CommerceBuilder method:'
WARN 2008-11-12 11:17:11,723 11523638ms Object a - Error obtaining rate quote for shipping method 'UPS 3-Day Select®'.
System.NullReferenceException: Object reference not set to an instance of an object.
at CommerceBuilder.Shipping.Providers.UPS.UPS.GetProviderUnits(Country originCountry)
at CommerceBuilder.Shipping.Providers.UPS.UPS.PreparePackages(Warehouse origin, BasketItemCollection contents)
at CommerceBuilder.Shipping.Providers.UPS.UPS.GetAllProviderShipRateQuotes(Warehouse origin, Address destination, BasketItemCollection contents)
at CommerceBuilder.Shipping.Providers.UPS.UPS.GetShipRateQuote(Warehouse origin, Address destination, BasketItemCollection contents, String serviceCode)
at CommerceBuilder.Shipping.Providers.ShippingProviderBase.GetShipRateQuote(IShipment shipment, String serviceCode)
at CommerceBuilder.Shipping.ShipMethod.GetShipRateQuote(IShipment shipment)
I am getting the same error with UPS Next Day Air and UPS 3rd Day Air which are the methods that we offer. The error occurs every time shipping is calculated. Any ideas on where to start?

Re: UPS shipping tools error

Posted: Wed Nov 12, 2008 5:18 pm
by jmestep
I think UPS must have been down for a while. There is a post today from someone with an Able 5 site having a problem.

Re: UPS shipping tools error

Posted: Wed Nov 12, 2008 5:19 pm
by calvis
Yes, UPS rate retrieval has been struggling today.

Re: UPS shipping tools error

Posted: Wed Nov 12, 2008 5:21 pm
by BryanWarmoth
I've been seeing this error as far back as last Wednesday, November 5th. Do you think this may have something to do with our account linking to UPS?

Re: UPS shipping tools error

Posted: Mon Nov 17, 2008 1:59 pm
by BryanWarmoth
Does anyone have any ideas?

Re: UPS shipping tools error

Posted: Mon Nov 17, 2008 6:18 pm
by WylieE

Code: Select all

WARN  2008-11-17 09:50:57,511 216443ms Object                 a                  - Error obtaining rate quote for shipping method 'UPS 2nd Day Air®'.
System.NullReferenceException: Object reference not set to an instance of an object.
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetProviderUnits(Country originCountry)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.PreparePackages(Warehouse origin, BasketItemCollection contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetAllProviderShipRateQuotes(Warehouse origin, Address destination, BasketItemCollection contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetShipRateQuote(Warehouse origin, Address destination, BasketItemCollection contents, String serviceCode)
   at CommerceBuilder.Shipping.Providers.ShippingProviderBase.GetShipRateQuote(IShipment shipment, String serviceCode)
   at CommerceBuilder.Shipping.ShipMethod.GetShipRateQuote(IShipment shipment)
WARN  2008-11-17 09:50:57,527 216458ms Object                 a                  - Error obtaining rate quote for shipping method 'UPS 3-Day Select®'.
System.NullReferenceException: Object reference not set to an instance of an object.
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetProviderUnits(Country originCountry)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.PreparePackages(Warehouse origin, BasketItemCollection contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetAllProviderShipRateQuotes(Warehouse origin, Address destination, BasketItemCollection contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetShipRateQuote(Warehouse origin, Address destination, BasketItemCollection contents, String serviceCode)
   at CommerceBuilder.Shipping.Providers.ShippingProviderBase.GetShipRateQuote(IShipment shipment, String serviceCode)
   at CommerceBuilder.Shipping.ShipMethod.GetShipRateQuote(IShipment shipment)
We're still encountering the same UPS error. Does the error imply AC is unable to receive information *from* UPS? That might help me focus troubleshooting.

Thanks.

Re: UPS shipping tools error

Posted: Mon Nov 17, 2008 7:21 pm
by afm
I don't have the source code, so this is just a guess, but it looks like the code is trying to look up units (inches, centimeters, pounds, etc) based on the Country. I don't think it is asking UPS because ProviderUnits (if that is what GetProviderUnits returns) is a CommerceBuilder type.

I'll bet that either the country is null (did you set your warehouse country?) or some value in country (like the country code) is null.

Re: UPS shipping tools error

Posted: Tue Nov 18, 2008 11:46 am
by WylieE
afm wrote:I don't have the source code, so this is just a guess, but it looks like the code is trying to look up units (inches, centimeters, pounds, etc) based on the Country. I don't think it is asking UPS because ProviderUnits (if that is what GetProviderUnits returns) is a CommerceBuilder type.

I'll bet that either the country is null (did you set your warehouse country?) or some value in country (like the country code) is null.
Bingo! Our warehouse address information was blank. I know it had been previously set up and working. Best guess is a synchronization with VisionCore nuked the address info.

Thanks.