Shipping (UPS (United Parcel Service)). Error while getting UPS rates

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 năm cách đây
Need some help with trouble-shooting this error

Shipping (UPS (United Parcel Service)). Error while getting UPS rates
One or more errors occurred. (An exception has been raised as a result of client data.
Hard error: All package dimensions are required and each must be greater than 0 for package 1.)

Product details

Weight  378.0000 lb(s)
Length  25.0000 inch(es)
Width  53.0000 inch(es)
Height  40.0000inch(es)
Free shipping  not checked
Ship separately  not checked
4 năm cách đây
We have a client who just started getting this error, so UPS must have changed something. We'll be looking into shortly, so in meantime -   On the UPS configuration page, there is an option for Tracing.   Select it, test, and then check the System > Log to see the detailed message.  Post it here (but remove any userids, account #s, passwords)

(are you using any 3rd party shipping plugins? )
4 năm cách đây
Yes, using shipping director ver 1.44, nopcommerce version 4.2

here is the detailed message from nopcommerce log after enabling tracing for UPS

Testing on localhost...

UPS rates. Request: <?xml version="1.0" encoding="utf-16"?>
<RateRequest1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <RateRequest>
    <Request xmlns="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0">
      <RequestOption>Shop</RequestOption>
    </Request>
    <PickupType xmlns="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1">
      <Code>01</Code>
    </PickupType>
    <CustomerClassification xmlns="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1">
      <Code>00</Code>
    </CustomerClassification>
    <Shipment xmlns="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1">


      <Package>
        <PackagingType>
          <Code>02</Code>
        </PackagingType>
        <Dimensions>
          <UnitOfMeasurement>
            <Code>IN</Code>
          </UnitOfMeasurement>
          <Length>8.333333333333333333333333333</Length>
          <Width>17.666666666666666666666666667</Width>
          <Height>13.333333333333333333333333333</Height>
        </Dimensions>
        <PackageWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>126</Weight>
        </PackageWeight>
      </Package>
      <Package>
        <PackagingType>
          <Code>02</Code>
        </PackagingType>
        <Dimensions>
          <UnitOfMeasurement>
            <Code>IN</Code>
          </UnitOfMeasurement>
          <Length>8.333333333333333333333333333</Length>
          <Width>17.666666666666666666666666667</Width>
          <Height>13.333333333333333333333333333</Height>
        </Dimensions>
        <PackageWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>126</Weight>
        </PackageWeight>
      </Package>
      <Package>
        <PackagingType>
          <Code>02</Code>
        </PackagingType>
        <Dimensions>
          <UnitOfMeasurement>
            <Code>IN</Code>
          </UnitOfMeasurement>
          <Length>8.333333333333333333333333333</Length>
          <Width>17.666666666666666666666666667</Width>
          <Height>13.333333333333333333333333333</Height>
        </Dimensions>
        <PackageWeight>
          <UnitOfMeasurement>
            <Code>LBS</Code>
          </UnitOfMeasurement>
          <Weight>126</Weight>
        </PackageWeight>
      </Package>
      <ShipmentRatingOptions>
        <NegotiatedRatesIndicator />
        <UserLevelDiscountIndicator />
      </ShipmentRatingOptions>
    </Shipment>
  </RateRequest>
</RateRequest1>
4 năm cách đây
New York wrote:
We have a client who just started getting this error, so UPS must have changed something. We'll be looking into shortly, so in meantime -   On the UPS configuration page, there is an option for Tracing.   Select it, test, and then check the System > Log to see the detailed message.  Post it here (but remove any userids, account #s, passwords)

(are you using any 3rd party shipping plugins? )


I just tested on a clean default install of nopcommerce 4.2 and still getting same error as mentioned above...
4 năm cách đây
On the UPS plugin configuration page, what is your "Packing type"?  It should be set to "Pack by one item per package" when using Shipping Director's Packing.
4 năm cách đây
When changing package type to "Pack by one item per package"

The following error appears

Error while getting UPS rates
One or more errors occurred. (An exception has been raised as a result of client data.
Hard error: The maximum per package weight for the selected service from the selected country or territory is 150.00 pounds.)

Tested on default install of nopcommerce 4.2
4 năm cách đây
Then is seems that you should configure Shipping Director to not use UPS if Items.Any(Product.Weight > 150).

Contact us at support at noptools.com if you need help with SD configuration.
4 năm cách đây
New York wrote:
Then is seems that you should configure Shipping Director to not use UPS if Items.Any(Product.Weight > 150).

Contact us at support at noptools.com if you need help with SD configuration.


Does anybody know if solved the problem?
4 năm cách đây
@Jackluv
Would you be more specific about "the problem"?  If you are referring to a single item > 150 lbs, then that's just the way UPS is.  Normal UPS won't delver packages > 150 lbs.  You need to use some type of freight.
4 năm cách đây
I added an alternative shipping method for larger items. I am still tweeking it. But it stopped the error.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.