UPS shipping tools error

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

UPS shipping tools error

Post by BryanWarmoth » Wed Nov 12, 2008 1:50 pm

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?
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: UPS shipping tools error

Post by jmestep » Wed Nov 12, 2008 5:18 pm

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
calvis
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 710
Joined: Tue Jan 27, 2004 3:57 pm
Location: Redmond, WA

Re: UPS shipping tools error

Post by calvis » Wed Nov 12, 2008 5:19 pm

Yes, UPS rate retrieval has been struggling today.
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.

User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

Re: UPS shipping tools error

Post by BryanWarmoth » Wed Nov 12, 2008 5:21 pm

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?
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

Re: UPS shipping tools error

Post by BryanWarmoth » Mon Nov 17, 2008 1:59 pm

Does anyone have any ideas?
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

User avatar
WylieE
Captain (CAPT)
Captain (CAPT)
Posts: 281
Joined: Tue Mar 25, 2008 8:26 am
Location: Puyallup, WA
Contact:

Re: UPS shipping tools error

Post by WylieE » Mon Nov 17, 2008 6:18 pm

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.
Eric Wylie
Warmoth Guitar Products, Inc.
http://www.warmoth.com

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: UPS shipping tools error

Post by afm » Mon Nov 17, 2008 7:21 pm

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.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

User avatar
WylieE
Captain (CAPT)
Captain (CAPT)
Posts: 281
Joined: Tue Mar 25, 2008 8:26 am
Location: Puyallup, WA
Contact:

Re: UPS shipping tools error

Post by WylieE » Tue Nov 18, 2008 11:46 am

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.
Eric Wylie
Warmoth Guitar Products, Inc.
http://www.warmoth.com

Post Reply