Have you tried to manually input the record with t...
# suitescript
c
Have you tried to manually input the record with the same data?
a
yup , works fine when i create sales order manually with this data
c
Be sure to have the correct order of filling in fields when using the dynamic mode
b
code looks normal to me
a
Error is in the state value in the shippingaddress subrecord . ,"name":"USER_ERROR","message":"Could not calculate cost for the selected Realtime rate. Missing/Illegal ShipTo/Address/StateProvinceCode",
shipaddress.setValue('state','AK');         shipaddress.setValue('zip','99501'); is there any issue here ?
b
what shipping method is set?
a
UPS ground
b
any trademark in there?
a
UPS® Ground
b
what does the shipping rate subtab for the shipping item look like?
a
message has been deleted
b
that does look like an integrated shipping method
a
yes .. when i order manually with same data .. every thing works fine
b
i dont recognize the error, but i dont usually ship to Alaska either
try a different shipping method, one that isnt using a realtime rate
if you still have the error, another script might be throwing that error
a
this script looks fine ?
I justset the shipping method empty and code executed succesfully
b
a would have recommended a non-empty non-integrated shipping method
a
So it means that issue is in the integrated shipping method ?
b
integrated shipping methods send an api request to get the shipping rate to the chosen address
👍 1
a
Thanks for help sir