I have a Map/Reduce script that creates sales orders based on values in an external database. This works great for orders shipping to the US, but occasionally we need to create orders for Canada. In the UI, the SO form reloads after you enter a Canadian address, but when creating the SO via script and setting the address subrecord before setting anything else, I get this unexpected error that, to me, implies it's running into issues with reloading the form