- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2015 11:26 AM
Hello, this is my first question here, I'm sorry if it doesn't make much sense.
Anyways, I've been trying to run an onComplete transform script that essentially queries through specific records and deactivates them. Seems simple, right? Well it's not the code that's bugging me, but rather the onComplete transform script never seems to actually run. When it's onStart I have no problems but even just having a gs.log statement seems to cause it to completely ignore my script. Does anyone have any idea what I'm doing wrong? Is there some property of transform maps that causes them to sometimes not execute the onComplete transform script?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2015 06:49 AM
Hi Rachel,
I believe that your script may be running even when you don't see your log statements . odd ha?! try using a different logging mechanism. Perhaps the one that is used as an example out of the box for the LDAP transform scripts.
You can use the following statements to log:
log.info("Testing: Here goes some info");
log.warn("Testing: Watch out for that warning");
log.error("Testing: Houston, we have a problem!");
I believe you should be able to see the log results in the table import_log.
Do take in mind that this will require that log is defined in the onStart transform script on the following way:
gs.include("LDAPUtils"); var ldapUtils = new LDAPUtils(); ldapUtils.setLog(log);
I hope it helps!
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2015 07:22 AM
This is embarrassing but it appears you were correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2015 07:24 AM
Hi Rachel, no worries! I know because it happened to me before, and perhaps more than once
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2015 07:20 AM
Hi Rachel, keep in mind that an onComplete transform script will only run once as the final step of your entire transform map. You may want to evaluate if what you're looking is to execute your logic in an onBefore or onAfter script.
Thanks,
Berny