RJMNS
07/22/2024, 8:58 PMAnthony OConnor
07/22/2024, 9:09 PMlotNum
and lotNumQty
to validate they have the values expected at the end of the map stage
or you could just log valueObj
Anthony OConnor
07/22/2024, 9:14 PMRJMNS
07/22/2024, 9:17 PMyou can also just parse the context at the start of the reduce stage and just log there instead.I think that's what this is doing, right? This is the beginning of the reduce function that ultimately contains the code in the most immediate comment.
Anthony OConnor
07/22/2024, 9:17 PMAnthony OConnor
07/22/2024, 9:18 PMAnthony OConnor
07/22/2024, 9:18 PMvar recVendorBill =
Anthony OConnor
07/22/2024, 9:20 PMAnthony OConnor
07/22/2024, 9:20 PMAnthony OConnor
07/22/2024, 9:21 PMRJMNS
07/22/2024, 9:21 PMhave you confirmed your code is settign values for your 2 new variablesNo. I tried to stumble through using the Debugger to figure this out, but was not successful. I saw the documentation explicitly states M/R scripts don't work in the Debugger, so I was trying to post relevant snippets to it and couldn't get it to work enough to figure out if those variables are getting set.
RJMNS
07/22/2024, 9:21 PMRJMNS
07/22/2024, 9:21 PMAnthony OConnor
07/22/2024, 9:21 PMAnthony OConnor
07/22/2024, 9:21 PMAnthony OConnor
07/22/2024, 9:22 PMlog.debug({ title: 'checking my lot var', details: lot});
Anthony OConnor
07/22/2024, 9:23 PMRJMNS
07/22/2024, 9:24 PMAnthony OConnor
07/22/2024, 9:24 PMRJMNS
07/22/2024, 9:25 PMvar recVendorBill = record.create({
type: record.Type.VENDOR_BILL,
isDynamic: true,
defaultValues: {
entity: keyObject.vendor
}
RJMNS
07/22/2024, 9:25 PMAnthony OConnor
07/22/2024, 9:26 PMRJMNS
07/22/2024, 9:27 PMright that's exactly where you checkAdd this in the Map section? That's part of my confusion I guess becuase there are other fields (the code for which I haven't touched) that have a log function attached, but I'm not seeing those values in the Execution log. Presumably they should be showing there right?
Anthony OConnor
07/22/2024, 9:27 PMAnthony OConnor
07/22/2024, 9:28 PMRJMNS
07/22/2024, 9:28 PMso you're not a devNope. Just a guy who knows a tiny little bit about how coding works and who owns this process in general, so I'm seeing if I can just make minor changes. It's looking like that's not the case.
RJMNS
07/22/2024, 9:28 PMthere's a log level field on the script deployment, you might need to set it to debugOh that's right. I've dealt with that before.
Anthony OConnor
07/22/2024, 9:29 PMRJMNS
07/22/2024, 9:29 PMAnthony OConnor
07/22/2024, 9:30 PMRJMNS
07/22/2024, 9:31 PMRJMNS
07/22/2024, 9:33 PMAnthony OConnor
07/22/2024, 9:35 PMRJMNS
07/22/2024, 9:47 PMRJMNS
07/24/2024, 8:31 PMAnthony OConnor
07/24/2024, 8:32 PM