I'm at a loss here. I'm sending a get request for ...
# suitescript
c
I'm at a loss here. I'm sending a get request for order details, then making a PO from them. I'm getting an unexpected error when it goes to save the record. In my experience it's usually a stupid mistake that causes this error, but I cannot for the life of me figure it out. I'm logging all of the values I'm setting, and everything looks fine. The code's in the comments.
trying standard mode produces the same unexpected error
b
the usual is making sure you can manually make the same purchase order in the ui
if your account is extra weird, then disable scripts/workflows on the purchase order
c
Confirmed that is working, yes
b
finally, start removing fields until you find the problem one
c
Thanks @battk
Yup, turned off all workflows and it works. Thanks again.