Forum Discussion

omair's avatar
omair
Contributor
9 years ago

Failing a pipeline that contains data in error view

Hi all,

Is it possible to have a SnapLogic pipeline fail when one of the error views in the pipeline contains data, while still returning the output from the error views.

In the example above, the pipeline contains multiple branches… and the SF Lookup/Upsert snaps have error views which are being Union’ed at the far right. We would like this pipeline to be marked failed if 1+ documents are returned from the union… and also return the error view content…

I tried using the Exit snap and the pipeline fails as intended. However, I’m not sure how to get the error output to be returned by SnapLogic to the caller…

1 Reply

  • Hi ramaonline ,

    Thank you for this valuable information. This is very usefull for me! 
    I just have one question regarding commiting from snaplogic to github. I found that there is not a public api method form snaplogic that gets the assets from a project and commits it to a branch or repository to github automatically.

    Have you had any experience with this. I am now trying to investigate/implement a scheduled pipeline that gets all the assets (account,pipeline .slp file and tasks) from each project from a certain projects space and commits these assets to a certain branch or repository in Github. 

    So that I don't need to manually go to the Manager tab and click on the project and then on the option 'commit to github'.

    What my conclusion for now is is that I get the assets from the public api from snaplogic and try to use also the api of Github to update its contect or upload it to github blobs.  https://docs.github.com/en/rest/git/blobs?apiVersion=2022-11-28#create-a-blob

    Thank you for your info already this helps me a lot.

    Regards

    Jens

  • Hi ramaonline 

    Thank you for this! Very informative and we've used this in designing our own CI/CD process as well. Quick question -- with the Pull to the Prod Org mentioned above, does that only refer to "updated" assets or does it pull all assets within the repo/branch?

    If it pulls all assets, how would you go about selecting which assets to deploy?

    Thanks again! 

  • aaron 

    The pull request would pull all assets. For merging assets selectively, you can create a separate branch with those assets and merge that branch to the target branch.