Manu AVS
Manu AVS

Reputation: 575

Error when creating Sales Order via Script for Fedex Ground

While I try to create sales order via Suitelet and give shipmethod or Ship Via field to Fedex Ground for Customers who are not in terms, it throws an error

 Could not calculate cost for the selected Realtime rate. The rate for this service is not available for the specified source and destination addresses.
    {
       type: "error.SuiteScriptError",
       name: "USER_ERROR",
       message: "Could not calculate cost for the selected Realtime rate. The rate for this service is not available for the specified source and destination addresses.",
       stack: [
          "anonymous(N/recordService)",
          "functionname(/SuiteApps/script name:line number)"
       ],
       cause: {
          type: "internal error",
          code: "USER_ERROR",
          details: "Could not calculate cost for the selected Realtime rate. The rate for this service is not available for the specified source and destination addresses.",
          userEvent: null,
          stackTrace: [
             "anonymous(N/recordService)",
             "functionname(/SuiteApps/script name:line number)"
          ],
          notifyOff: false
       },
       id: "",
       notifyOff: false
    }

Upvotes: 1

Views: 592

Answers (2)

Akash Agnihotri
Akash Agnihotri

Reputation: 71

The shipping carrier you have opted for delivery is not able to calculate the real-time shipping cost for the customer's address, or it is also possible that the shipping carrier does not provide their services at customer's address. You can check by changing the customer's address. Also, you can check by choosing different shipping methods.

enter image description here

Upvotes: 0

Kiko Santos
Kiko Santos

Reputation: 11

What do you mean by “customers who are not if terms”? Usually I experience this error if customer address is not populated properly.

Upvotes: 0

Related Questions