UPS is not calculating shipping for business addresses
UPS is not calculating shipping for business addresses
Customers are unable to checkout if the Business address box is checked and that is the only method shipping assigned to product. They see the following error: There has been a problem obtaining a shipping quote for the address provided. Also seeing this error in the admin:
Error obtaining rate quote for shipping method 'Ground Shipping'.
Exception: Root element is missing. Stack Trace: at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 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)
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10
Error obtaining rate quote for shipping method 'Ground Shipping'.
Exception: Root element is missing. Stack Trace: at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 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)
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10
Re: UPS is not calculating shipping for business addresses
What is the Warehouse origin city and zip code and the destination city and zip? I'll give it a test and see what happens.
Also, please confirm that the product has a weight entered.
Also, please confirm that the product has a weight entered.
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: UPS is not calculating shipping for business addresses
WHS - KC, MO 64101
DST: HARKER HEIGHTS, TX 76548
Seems to be working now, but have a list of errors going back 3 hours. It was any address that had business address checked. Is there anyway to allow the customer to checkout even with the ship quote fails? As it is now, checkout is not possible if the quote fails.
DST: HARKER HEIGHTS, TX 76548
Seems to be working now, but have a list of errors going back 3 hours. It was any address that had business address checked. Is there anyway to allow the customer to checkout even with the ship quote fails? As it is now, checkout is not possible if the quote fails.
Re: UPS is not calculating shipping for business addresses
I don't know that the shipping quotes failed because it was a business address or that UPS servers were unavailable. Can you look in your log file and see if there are any errors? If UPS servers were unavailable, then you would see errors like 'Service Unavailable'. If this were an issue with Business -vs- Residential, then I would suspect a code problem.
Currently, there is no way to provide a by-pass on shipping. I see a lot of customers offer different shipping services like UPS and USPS. But that can be inconvenient if you don't want to ship one way or the other. Personally, I think these big companies should have fail-over servers in case their services are interrupted, but in the mean-time there isn't a lot you can do except write a customization that would allow free shipping if there were no other methods available.
Please let me know about the errors.
Katie
Currently, there is no way to provide a by-pass on shipping. I see a lot of customers offer different shipping services like UPS and USPS. But that can be inconvenient if you don't want to ship one way or the other. Personally, I think these big companies should have fail-over servers in case their services are interrupted, but in the mean-time there isn't a lot you can do except write a customization that would allow free shipping if there were no other methods available.
Please let me know about the errors.
Katie
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: UPS is not calculating shipping for business addresses
The only error in the logs are these:
Error obtaining rate quote for shipping method 'Ground Shipping'.
Exception: Root element is missing. Stack Trace: at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 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)
Error obtaining rate quote for shipping method 'Ground Shipping'.
Exception: Root element is missing. Stack Trace: at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 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)
Re: UPS is not calculating shipping for business addresses
The error might indicate a problem with the XML data, but I can't explain why it suddenly stopped working and then started working again. Keep an eye on things and let us know if it happens again.
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
I think it was a UPS system-side error. We experienced this same error a couple of times yesterday morning. We have a very low volume site, so it only happened twice, at about 8:45 and 9:00. We also offer FedEx, so the customer just chose a FedEx option.
Jay
Re: UPS is not calculating shipping for business addresses
We've got a client with the exact same problem. Started yesterday they said.
UPS is all they do, so they can't get any orders and it's a panic moment for them. I can't even get shipping estimator to give me rates. Here is a send and response entry.
Looks like data is coming through. Did they change the format for some reason??
UPS is all they do, so they can't get any orders and it's a panic moment for them. I can't even get shipping estimator to give me rates. Here is a send and response entry.
Looks like data is coming through. Did they change the format for some reason??
Send: <?xml version="1.0"?><RatingServiceSelectionRequest xml:lang="en-US"><Request><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction>rate</RequestAction><RequestOption>shop</RequestOption></Request><PickupType><Code>01</Code></PickupType><CustomerClassification><Code>01</Code></CustomerClassification><Shipment><Shipper><Address><City>Toms River</City><StateProvinceCode>NJ</StateProvinceCode><PostalCode>08753</PostalCode><CountryCode>US</CountryCode></Address></Shipper><ShipTo><Address><City></City><StateProvinceCode>FL</StateProvinceCode><PostalCode>33972</PostalCode><CountryCode>US</CountryCode></Address></ShipTo><ShipmentWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>7.4</Weight></ShipmentWeight><Package><PackagingType><Code>02</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>7.4</Weight></PackageWeight></Package></Shipment></RatingServiceSelectionRequest>
Receive: <?xml version="1.0"?>
<RatingServiceSelectionResponse><Response><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><ResponseStatusCode>1</ResponseStatusCode><ResponseStatusDescription>Success</ResponseStatusDescription></Response><RatedShipment><Service><Code>03</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>13.66</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>13.66</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery/><ScheduledDeliveryTime/><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>13.66</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>13.66</MonetaryValue></TotalCharges><Weight>3.4</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>12</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.30</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.30</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>3</GuaranteedDaysToDelivery><ScheduledDeliveryTime/><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.30</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>18.30</MonetaryValue></TotalCharges><Weight>3.4</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>02</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>24.08</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>24.08</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery><ScheduledDeliveryTime/><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>24.08</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>24.08</MonetaryValue></TotalCharges><Weight>3.4</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>13</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>65.72</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>65.72</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime/><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>65.72</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>65.72</MonetaryValue></TotalCharges><Weight>3.4</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>14</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>100.04</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>100.04</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>8:00 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>100.04</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>100.04</MonetaryValue></TotalCharges><Weight>3.4</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>01</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>69.37</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>69.37</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>69.37</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>69.37</MonetaryValue></TotalCharges><Weight>3.4</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>4.0</Weight></BillingWeight></RatedPackage></RatedShipment></RatingServiceSelectionResponse>
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
Hmm, it has happened twice now this morning also. But it isn't consistent, some orders have been placed with one of the UPS methods for the same customer / same address. I've turned on debug mode, I'll see if I can catch one when the error occurs and compare it to one without the error.
Jay
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
Joe,
Did you add the CR and/or LF between <?xml version="1.0"?> and <RatingServiceSelectionResponse>? My old debug entries don't have anything between those two tags, perhaps that is a clue/reason? I'll check that if I happen to get a debug entry when the error occurs, but it might take a while.
Did you add the CR and/or LF between <?xml version="1.0"?> and <RatingServiceSelectionResponse>? My old debug entries don't have anything between those two tags, perhaps that is a clue/reason? I'll check that if I happen to get a debug entry when the error occurs, but it might take a while.
Jay
Re: UPS is not calculating shipping for business addresses
I just copy/pasted it from the log file.
It's definitely the business/residential flag. I can switch mine to residential and rates work every single time. Switch it back to business address, immediately fails.
It's definitely the business/residential flag. I can switch mine to residential and rates work every single time. Switch it back to business address, immediately fails.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: UPS is not calculating shipping for business addresses
Having same issue.... Business not working, residential is. I needed to add a shipping method "UPS To Be Determined" to allow the check out to continue... Problem is ...all customers will need to be called.
Anyone know what is going on here?
Anyone know what is going on here?
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
I began experimenting on my test server. The UPS log was not recording a Receive: entry at all when the error occurred. By moving the //RECORD RECEIVE HERE code (in IntegratedProviders/UPS/UPS.cs) before the //LOAD RESPONSE INTO XML DOCUMENT code, I now get the following UPS log entries when the error occurs:
I started trying different things, and I discovered that If I change the order so the weight is 10 pounds or more, I get a proper response (snipped for brevity ):
I suppose we could set the minimum weight to 10 pounds to work around this, but then we'll be charging too much for shipping for light orders. I am not able to find anything regarding a minimum weight for business address quotes, so it seems that UPS needs to fix something.
So the error message is correct; there is no root element.Send: <?xml version="1.0"?><RatingServiceSelectionRequest xml:lang="en-US"><Request><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction>rate</RequestAction><RequestOption>shop</RequestOption></Request><PickupType><Code>01</Code></PickupType><CustomerClassification><Code>01</Code></CustomerClassification><Shipment><Shipper><Address><City>Chesterton</City><StateProvinceCode>IN</StateProvinceCode><PostalCode>46304</PostalCode><CountryCode>US</CountryCode></Address></Shipper><ShipTo><Address><City>SACRAMENTO</City><StateProvinceCode>CA</StateProvinceCode><PostalCode>95828</PostalCode><CountryCode>US</CountryCode></Address></ShipTo><ShipmentWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>9.0</Weight></ShipmentWeight><Package><PackagingType><Code>02</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>9.0</Weight></PackageWeight></Package></Shipment></RatingServiceSelectionRequest>
Receive: <?xml version="1.0"?>
I started trying different things, and I discovered that If I change the order so the weight is 10 pounds or more, I get a proper response (snipped for brevity ):
That explains why it is intermittent for me. Most of our orders are over 10 pounds.Send: <?xml version="1.0"?><RatingServiceSelectionRequest xml:lang="en-US"><Request><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction>rate</RequestAction><RequestOption>shop</RequestOption></Request><PickupType><Code>01</Code></PickupType><CustomerClassification><Code>01</Code></CustomerClassification><Shipment><Shipper><Address><City>Chesterton</City><StateProvinceCode>IN</StateProvinceCode><PostalCode>46304</PostalCode><CountryCode>US</CountryCode></Address></Shipper><ShipTo><Address><City>SACRAMENTO</City><StateProvinceCode>CA</StateProvinceCode><PostalCode>95828</PostalCode><CountryCode>US</CountryCode></Address></ShipTo><ShipmentWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></ShipmentWeight><Package><PackagingType><Code>02</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></PackageWeight></Package></Shipment></RatingServiceSelectionRequest>
Receive: <?xml version="1.0"?>
<RatingServiceSelectionResponse><Response><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><ResponseStatusCode>1</ResponseStatusCode><ResponseStatusDescription>Success</ResponseStatusDescription></Response><RatedShipment><Service><Code>03</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>14.33</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>14.33</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery/><ScheduledDeliveryTime/><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>14.33</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>14.33</MonetaryValue></TotalCharges><Weight>10.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>10.0</Weight></BillingWeight></RatedPackage>[...SNIP...]
I suppose we could set the minimum weight to 10 pounds to work around this, but then we'll be charging too much for shipping for light orders. I am not able to find anything regarding a minimum weight for business address quotes, so it seems that UPS needs to fix something.
Jay
Re: UPS is not calculating shipping for business addresses
I contacted UPS ... and of course they would say there was nothing going on.
Re: UPS is not calculating shipping for business addresses
My client said UPS told them the same thing...
So what made you think the weight was the issue? That's not something I even considered....nice catch.jguengerich wrote:I started trying different things, and I discovered that If I change the order so the weight is 10 pounds or more, I get a proper response
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
Not sure. I knew that our live site was working at least some of the time, but when I started testing things on our test side, it was consistently giving the error. I was testing with a very light product, and I just thought "let me try it with something heavy". I happened to choose something that was 80 pounds, and I got rates back. So then I tried 5 pounds, which didn't work, 10 pounds, which did work, and 9 pounds, which didn't work. Switching back and forth between 9 / 10 pounds gave no rates / rates, so I concluded that < 10 pounds must be the other trigger (besides business address).AbleMods wrote:So what made you think the weight was the issue? That's not something I even considered....nice catch.
I have emailed UPS' support with sample XML sent/received, so we'll see what they say.
Jay
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
Here is UPS' response:
to this:
After building the UPS project and copying the dll to our test site, it appears to have solved the problem. Unfortunately, this is a source code change, so hopefully AbleCommerce can provide the fixed DLL to those that don't have source.
Also note that there are several more instances of xpci version 1.0001 in that source, and they should probably all be changed.
I have not copied the updated dll to our live site yet, but it appears to consistently work on our test site.
In /IntegratedProviders/UPS/UPS.cs, in the BuildProviderRequest funcion, I changed this line:Dear Jay,
Thank you for your inquiry. I am sorry for the difficulty that you are having with your API posts
We have received reports from customer using the Xpci Version of 1.0001 in their requests intermittently returning a file with only the XML declaration statement.
Please modify your code to use the version as shown in the developer guides:
<XpciVersion>1.0</XpciVersion>
Code: Select all
providerRequest.LoadXml("<?xml version=\"1.0\"?><RatingServiceSelectionRequest xml:lang=\"en-US\"><Request><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction>rate</RequestAction><RequestOption>shop</RequestOption></Request><PickupType><Code /></PickupType><CustomerClassification><Code /></CustomerClassification><Shipment><Shipper><Address><City/><StateProvinceCode/><PostalCode/><CountryCode/></Address></Shipper><ShipTo><Address><City/><StateProvinceCode/><PostalCode/><CountryCode/></Address></ShipTo><ShipmentWeight><UnitOfMeasurement><Code/></UnitOfMeasurement><Weight/></ShipmentWeight></Shipment></RatingServiceSelectionRequest>");
Code: Select all
providerRequest.LoadXml("<?xml version=\"1.0\"?><RatingServiceSelectionRequest xml:lang=\"en-US\"><Request><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0</XpciVersion></TransactionReference><RequestAction>rate</RequestAction><RequestOption>shop</RequestOption></Request><PickupType><Code /></PickupType><CustomerClassification><Code /></CustomerClassification><Shipment><Shipper><Address><City/><StateProvinceCode/><PostalCode/><CountryCode/></Address></Shipper><ShipTo><Address><City/><StateProvinceCode/><PostalCode/><CountryCode/></Address></ShipTo><ShipmentWeight><UnitOfMeasurement><Code/></UnitOfMeasurement><Weight/></ShipmentWeight></Shipment></RatingServiceSelectionRequest>");
Also note that there are several more instances of xpci version 1.0001 in that source, and they should probably all be changed.
I have not copied the updated dll to our live site yet, but it appears to consistently work on our test site.
Jay
Re: UPS is not calculating shipping for business addresses
Our dev team has gone home for the day. The issue is reported and they know this takes priority, so we should have a patch available very soon.
The only trouble is that I haven't been able reproduce it. So, hopefully, we'll have some volunteers who can help with the testing once the new DLL's are available.
Thanks,
Katie
The only trouble is that I haven't been able reproduce it. So, hopefully, we'll have some volunteers who can help with the testing once the new DLL's are available.
Thanks,
Katie
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: UPS is not calculating shipping for business addresses
Joe, what version is your client running?We've got a client with the exact same problem.
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: UPS is not calculating shipping for business addresses
Larry, I don't know what version you are using either?
We're still unable to reproduce this on our side, so what we plan to do is give you all updated DLL's to see if it fixes the problem.
So, I need those versions please. As soon as possible...
We're still unable to reproduce this on our side, so what we plan to do is give you all updated DLL's to see if it fixes the problem.
So, I need those versions please. As soon as possible...
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: UPS is not calculating shipping for business addresses
Gold R10 SR1Katie wrote:Joe, what version is your client running?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: UPS is not calculating shipping for business addresses
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10
VERSION: 7.0.90.8302
Release Label: GoldR10
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
Just got another email from UPS support:
I don't have time to confirm if it is working with Xpci at 1.0001 right now, maybe others can confirm?Jay,
I am with UPS 3rd level support and am following up with you in regards to HDFS Case # 45555979, which states you were receiving blank response documents returned from our API's.
I wanted to let you know that our development team was able to identify a backend system issue that was causing the Rate, Track, and Ship API’s to return empty responses. They have since corrected the issue so the blank response are no longer returned. Please attempt to submit your request files that were having the issue and notify me of you continue to get any empty responses.
Jay
Re: UPS is not calculating shipping for business addresses
Jay,
Thanks for the update. We were never able to reproduce the issue, so I guess we'll just standby and see if any other reports come in.
Katie
Thanks for the update. We were never able to reproduce the issue, so I guess we'll just standby and see if any other reports come in.
Katie
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: UPS is not calculating shipping for business addresses
Based on VERY brief testing (2 parts under 10 pounds to a business address), the old way is returning correct info for me.
Jay