Forum Discussion

Jarek's avatar
Jarek
New Contributor
5 years ago

Pipeline to save the attachments

Hi,

I’m having a problem with creating a successful pipeline that uses REST GET (Coupa system) and saves the attachment file (pdf) to either NetSuite file cabinet or even to file server of Snaplogic.

Long story short, I have the url of the file and I’m trying to put that url to File Reader snap, later (if my logic is correct) use the Binary to Document, after that use File Writer. I tried to skip the Binary to Document snap but that didn’t work either.

I know for sure the url is correct, I just cannot move forward from that point.

I would be extremely grateful for any suggestions that may lead to success 🙂

Best Regards,
Jarek

  • @Shaily - If the first child pipeline has an open output view and there are no documents output from that snap, then you have effectively stopped execution and the second child can’t be called.

    Keep in mind that SnapLogic works with streaming data, so if you stop the stream, there is nothing to continue with. Almost all snaps will not execute if there is no input coming into the input view.

    I do agree with @darshthakkar that consulting the documentation is a good action to understand Pipeline Execute better.

  • darshthakkar's avatar
    darshthakkar
    Valued Contributor

    Welcome to the community, Shaily!

    Did you get a chance to go through the documentation on usage of Pipeline Execute snap? Click on this link to access the same.

    As far as I could understand, in order to use 2 pipeline execute snaps, can you use a copy snap before the pipeline execute as below?

    Also, I would suggest to follow the naming convention while renaming the snap, not to use spaces (although it has nothing to do with the functionality but a good practice to follow).

    A couple of questions:

    1. Do you want error to be generated from the first pipeline execute snap? If yes, you need to enable that view.

    2. Which data are you wanting to put in the second pipeline execute, is it the same as first pipeline execute? If that’s the case, copy snap would help. If you have some conditions, I would recommend using a router snap.

    3. As per the screenshot provided, there is no parameter you’re passing in the pipeline execute, what exactly are you trying to achieve?

    Please go through the documentation on naming convention too.

    Thanks!

    Best Regards,
    Darsh