Page 1 of 1

UPS Shipping rate error's happening again

Posted: Thu Mar 18, 2021 10:13 am
by rlopez
We are currently seeing UPS shipping rate errors in our logs and when testing on the live site, it is hit and miss. At times rates are being provided and other times no rates or just expedited rates are being provided. I've tested on our side and cannot find any problems. This is a Gold 12 R2 final release and I believe this is no longer supported by Able? As a note: When this happened a year or so ago, we installed a fix by able and I'm wondering if it needs to be replaced back to the original file as UPS fixed their problem a day or so after we installed the fix. Have not had any issues with this problem, up until this week.

EDIT: Here is the Warn message in my logs:

Code: Select all

Date: 3/18/2021 7:15:05 AM
Severity: Warn
Message: Error obtaining rate quote for shipping method 'UPS Ground'.
Exception: The 'br' start tag on line 8 position 21 does not match the end tag of 'H2'. Line 9, position 3.
Stack Trace:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   at System.Xml.XmlTextReaderImpl.ParseEndElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.SendRequestToProvider(XmlDocument request, String url)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetAllProviderShipRateQuotes(Warehouse origin, Address destination, IList`1 contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetShipRateQuote(Warehouse origin, Address destination, IList`1 contents, String serviceCode)
   at CommerceBuilder.Shipping.Providers.ShippingProviderBase.GetShipRateQuote(IShipment shipment, String serviceCode)
   at CommerceBuilder.Shipping.ShipMethod.GetShipRateQuote(IShipment shipment)


Date: 3/18/2021 7:15:05 AM
Severity: Warn
Message: Error obtaining rate quote for shipping method 'UPS Next Day AirĀ®'.
Exception: The remote server returned an error: (400) Bad Request.
Stack Trace:    at System.Net.HttpWebRequest.GetResponse()
   at CommerceBuilder.Shipping.Providers.UPS.UPS.SendRequestToProvider(XmlDocument request, String url)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetAllProviderShipRateQuotes(Warehouse origin, Address destination, IList`1 contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetShipRateQuote(Warehouse origin, Address destination, IList`1 contents, String serviceCode)
   at CommerceBuilder.Shipping.Providers.ShippingProviderBase.GetShipRateQuote(IShipment shipment, String serviceCode)
   at CommerceBuilder.Shipping.ShipMethod.GetShipRateQuote(IShipment shipment)



If anyone else is running into this issue, please share.

Thanks again.

Re: UPS Shipping rate error's happening again

Posted: Sat Mar 20, 2021 9:29 am
by rlopez
I forgot to post back the fix to this problem we found. As it turns out we must have not gotten the memo that the Rating url setup in our UPS carrier setup was wrong. It has never been changed from the original default values of (https://www.ups.com/ups.app/xml/). After changing this value to the correct value of (https://onlinetools.ups.com/ups.app/xml/) the rate return problem has disappeared.

I guess some time back, UPS probably was retiring this url string. They must have finally pulled the plug!

Re: UPS Shipping rate error's happening again

Posted: Tue Mar 23, 2021 1:37 pm
by AbleMods
You totally just saved multiple bacons posting your solution. Had some clients of mine with this exact issue. Much appreciated posting the solution.

Re: UPS Shipping rate error's happening again

Posted: Tue Mar 23, 2021 10:49 pm
by rlopez
Awesome! I'm glad it helped...