https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
k

Kristine

04/29/2022, 12:52 AM
I have a MR that accepts CSV as an input and processes its values to create a transaction. I need to create the transaction line items with the exact order from the csv file. Map stage - works as expected (10006130, 10006127, 10006132) Reduce stage - logged the reduce obj upon entry and its in a different order, see 2nd photo anyone who experienced the same? is there any way to prevent order being random? Note: Article No = Item ID
k

Kevin

04/29/2022, 12:59 AM
@Kristine You should probably have index numbers like 1,2,3 so that you can re-arrange in Reduce stage
this happens when you run in multiple buffer and not required in order using concurrency
k

Kristine

04/29/2022, 1:00 AM
ohh that's why! i've been very curious about the root cause. makes sense thanks so much 🙂