The solution was to tell NetSuite to run the scrip...
# suitescript
c
The solution was to tell NetSuite to run the script asynchronously - not sure why that made a difference really.