Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Afternoon Experts,
Could anyone help me understand why I do get "Field not found error / Field 'STP' not found " from below script.
Thanks.
You're only loading the fields [TRUST CODE] and [TRUST NAME] from the TRUSTS.xls file. You don't load an STP field from the source file so you can't use STP in that load statement as a source field.
Apply Map will work when you have the filed already in the table you are referring, as your STP filed is not available in the load statement its giving error.
either follow the solution what Sunny had suggested or try below :
Load *,
ApplyMap('Table', STP) as STP;
Load
[TRUST CODE]
[TRUST NAME] as STP
from table name;
Try this
ApplyMap('Table', [TRUST CODE]) as STP
You're only loading the fields [TRUST CODE] and [TRUST NAME] from the TRUSTS.xls file. You don't load an STP field from the source file so you can't use STP in that load statement as a source field.
Apply Map will work when you have the filed already in the table you are referring, as your STP filed is not available in the load statement its giving error.
either follow the solution what Sunny had suggested or try below :
Load *,
ApplyMap('Table', STP) as STP;
Load
[TRUST CODE]
[TRUST NAME] as STP
from table name;