onComplete transform script is not working as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2016 05:47 AM
Hi,
I am working on Helsinki version of Service Now.
I have a scheduled job which imports data using REST message from some URL and stores in a staging table.
Then I am using a transform map to transform this data into target table.
Here is the issue, I need to delete records from target table which have not been updated from this import.
For this I have given an onComplete() transform form script which should delete unupdated data based on some filter query. but this script is not working as expected. As my understanding it should delete the data matching to filter condition after all the data has been transformed from staging to target table.
inplace of this, this script is deleting data before transformation.
I don't know what is going wrong with this script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 03:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2016 03:31 AM
Hi All,
There was problem with onComplete. I am using web service to import data. in Helsinki default mode of import set will be synchronous for webservice import. for Mode as synchronous, onAfter and onComplete transform scripts work same. onAfter transform script processes data one by one and check for script query.
Ideally onComplete script should check for script query once all the data has been processed, but as mode is synchronous when 1 row is transformed, onComplete starts running the script as it considers that all the data has been processed.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2016 09:42 PM
Thanks a lot Deepti for sharing your finding!! Very much appreciated!
