08-09-2021 07:09 AM
I have a pipeline which included a python script. Although the pipeline works properly but I cannot see the output of my script both in the data preview and also in the logs. E.g. when I download the logs I dont see this output:
self.log.info(" This is a python log")
Also the data preview somehow does not work for this specific pipeline although there is no special character in the project name which apparently is a known bug.
self.output.write("This is a python output")
Any idea on this would be appreciated.
08-11-2021 09:00 AM
Thank you both for the help and for the detailed answers. The issue with this specific pipeline is still not solved though.
pipe.tmpDir
in some instances couldn’t be accessed because of the different admin configurations? When I validate/run your workflow I get this error: Failure: Error browsing the directory contents. /logs/snaplogic/tmp/sl_pipe_5e31419d06650079bd2a0fb7_5c211261-c4d8-41b5-bbaa-e054812628f3, Resolution: Please try again.
Thank you for the help.
08-12-2021 07:08 AM
@irsl Your observation about the custom snap is significant here as that could definitely be why you aren’t seeing any preview data from the Script Snap - if no preview data goes in, no preview data comes out (unless the Script Snap itself is making a connection to a target to pull data).
From your third point, it does sound like your temp location has been redirected to /logs/snaplogic which is not a default directory that we create, so you would have to check with your infrastructure or system administrators on that point. Our default logging location on Linux would be /opt/snaplogic/run/logs.
Considering the custom Snap, custom logging location, and temp folder location, you may need work with Support to move this situation forward unless you can post more detail here about the custom Snap, temp folder permissions, and Script Snap code.