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-07-2023 04:50 PM
Any leads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 07:03 PM
Hi @Priya123
Did you check the value of "source.isDelayed" in the import set table.
The value in file and import set table ( before transform ) both are same?
-Thanks
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 09:50 AM
yes they are same ....
am just wondering how they would update in the second iteration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 10:44 AM
thats a True/False field type if this information would help