I have a extremely complex map/reduce script that ...
# suitescript
t
I have a extremely complex map/reduce script that was put into place before my time, and I don't want to disturb it. However, I recently created a simple User Event script which populates a custom record with the ID of a second type of custom record whenever this second record is created. Both processes are colliding with each other when new records are being created automatically as these both appear to run under the context.type = USEREVENT. I'd strongly prefer not to make any changes to the map/reduce script due to its complexity. However, I have much more flexibility to change the User Event script, I just don't know how to get around the collision. Are there any tricks to still perform both of these scripts in order rather than having them run at the same time?
b
they dont normally run at the same time
generally they only run at the same time if you have another user event (or in rare cases workflow) that schedules the map reduce
t
Hmm. I don't see any other scripts at work. There must be something deeper built into the map reduce script that I am unable to identify. Thanks for the response.