Transform Script - Updating values on second run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 07:01 AM
hi
have a transform script that updates a value on a True/False field on customer project table.
so import set has a column has is delayed (Y/N) and based on that the Has Issue value on customer project table is updated.
so it goes like :
var flag;
if (source.isDelayed =='Y')
flag = true; (or flag='true';)
else
flag = false ;
return flag;
have played with quotes, placing the script inside loop etc. everytime i rerun the import, for change of the is delayed column, the table value is not updated 1st time but same File i Load , import and transform second time, the values are updated correct..
any one faced such an issue before??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 12:32 PM
i have attached already
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 12:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 12:39 PM
Hi, unfortunately neither of these files show the script you identified in your first post.
If the script is a 'field map' script, then the record type is sys_transform_entry
If the script is a beforeTransform script, then it will be a sys_transform_script record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 12:27 PM
String from Excel To String ( as defined in SN but has choices)
String from Excel to True/False field in SN...
are these not possible then ?
on before as well would not work cos of data type...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 12:53 PM