Hi Daniel,
The Transform Node's ConfigureFields script would include the following code where Field_to_Exclude is the name of the field to be excluded:
#Configure all fields from input 'in1' to be mapped
#to the corresponding fields on the output 'out1'
out1 += in1
if "{{^Field_to_Exclude^}}" in fields:
out1 -= fields["{{^Field_to_Exclude^}}"]
------------------------------
Adrian Williams
Precisely Software Inc.
------------------------------
Original Message:
Sent: 07-10-2024 01:23
From: Daniel Lau
Subject: How to exclude a certain fields using Transform node?
Hi there,
In the old brain script, I could easily do below code without error even when "{{^DataMonth^}}" column/field is not found from the initial inputs:
emit *, exclude "{{^DataMonth^}}"
How can I achieve the same result using the new Transform node?
Thanks in advance
------------------------------
Daniel Lau
Meridian Energy
Christchurch
------------------------------