onBefore Transform script not triggered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 04:08 PM
Hello All,
We are facing an issue with a transform map wherein the transform onBefore script is not getting triggered.
A third-party tool is hitting our import set table API and updating information. The transform map was working fine, but when we created a new true/false field and tried updating the field using information pushed by third-party tool, we could notice that the transform onBefore script itself is not triggering which should update the true/false field.
We have put some log statements on the transform script, which is not logged.
Please guide on how to resolve this issue. Thank you in advance!
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 04:30 PM
Hi,
Can you paste the Onbefore transform script here?
Thanks & Regards,
Sumanth Meda.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 09:31 PM
HI @Gopi22 ,
I trust you are doing great.
erify Transform Map Configuration:
- Ensure that the transform map is correctly configured and associated with the import set table.
- Double-check the field mappings in the transform map to ensure the true/false field is correctly mapped.
Examine the onBefore Script:
- Review the onBefore script associated with the transform map.
- Make sure the script is correct and does not contain any errors that might prevent it from running.
- Ensure that the script is active and enabled.
Check Field Name and Case Sensitivity:
- Confirm that the true/false field's name in the script matches the field name in the transform map exactly, including case sensitivity.
Debugging the Script:
Add additional log statements to the onBefore script to further investigate the issue. For example:
javascriptCopy codegs.info("Transform onBefore script is executing.");Check the system logs (System Log [syslog]) for any related error messages or exceptions that could provide more insights.
Test the Third-Party Tool Integration:
- Verify that the third-party tool is correctly sending the information to the import set table API.
- Ensure that the data being pushed by the third-party tool matches the expected format and values defined in the transform map.