Getting a strange error: `"ERR_WS_INVALID_SHIPPING...
# suitecommerce
c
Getting a strange error:
"ERR_WS_INVALID_SHIPPING_METHOD","errorMessage":"Please select a shipping method"
. I'm trying to set a shipmethod with
order.setShippingMethod()
but it's failing (I presume) because the ship method is missing from
order.getAvailableShippingMethods()
. I verified method setup in the UI at Lists => Accounting => Shipping Items. Does anyone know of other reasons why a method would fail to appear in the
order.getAvailableShippingMethods()
result list when the method is setup in the UI?
k
Is the shipping item set to be displayed on the website? If so, are there any restrictions on displaying the shipping item on this specific website? If no, the shipping item may not be valid for the shipping items and the items in the cart. Look at the rules setup in the shipping item.
Look at the total weight of the items in the cart and the shipping address zip code and compare this to the shipping rules in the shipping item.
c
This anomaly seems to apply to two classes of shipping items rather than individual items. All USPS and FedEx options won't show. Even more frustrating is that they show in Prod environment and I've verified the setup between the two.
The shipping rules sections on these items are empty save for the tax rule.
k
I am assuming you are in a sandbox environment and you are using FedEx and USPS realtime rates. Have you configured test environments at Endicia and FedEx?
Can you use these shipping items in the sandbox when you submit a sales order via the NetSuite UI?
c
Good question
Didn't think to try that out.
k
One of my clients just refreshed their sandbox and they are now using FedEx. They use to use UPS. When I setup the website again in the sandbox, the FedEx and USPS shipping options were not showing up. I checked if the rates were set to display on the website and I checked the shipping rules in the shipping items. They should have been appearing in the website. I think the client had to do something to get the UPS and USPS rates to work in the sandbox before it was refreshed but that was over a year ago and I don’t remember what she did.
c
Found the likely culprit:
k
I suspect you have to get test FedEx and Endicia accounts to work with the sandbox.
Thanks for posting the message. I’ll let my client know she needs to do this too.