06-20-2022 11:56 PM
Hi all,
I’m encountering this error for the first time but we have a ultra task api pipeline running.
And today when Iwas testing out the api it gave the error message:
Somehow knows what that means.
I also saw in the dashboard that we sometime lose connection to the nodes so I found on the community.
But i already have implemented a pipeline execute. and the CPU usage is very low
someone knows the first error?
Regards
Jens
Solved! Go to Solution.
06-22-2022 11:23 AM
Thanks, Jens. The image of your pipeline is too low-res for me to be able to read the snap names. But I think I’m hearing that the crux of the problem is that your SQL Select returns multiple records so you’re trying to deal with that in your Ultra pipeline.
The key to doing that is to use a child pipeline and move the SQL Select to that pipeline, along with whatever snaps are needed to aggregate those multiple documents and return a single document as the result of the child pipeline. Then in the parent, do any additional processing needed on that child output document to create a single response document for this request. This works because a new instance of the child pipeline is created for every request, so you can use aggregating snaps there that you can’t use in the root Ultra pipeline. Make sense?
06-22-2022 06:25 AM
Hi everyone,
Update on the topic. After long investigation and checking every snap, documentation and ultra task support. I found out that there was nothing wrong with my pipeline but that the API portal can’t handle certain request even when it’s not so big. Because I tested all my API get,put, post methods in the browser with the request url and they all worked and instant response.
Conclusion: I think that the API portal has some issues regarding api calls getting lots of data or multiple requests. I will close my topic tomorrow.
Also If anyone has experience with the API and API portal/ Ultra task of SnapLogic. I’m all ears to learn more.
Regards
Jens
06-22-2022 06:52 AM
Can you please share some specifics about what you tried? It’s hard to help without any specifics.
06-22-2022 07:32 AM
Hi @ptaylor
So I will try me best to scheme my discovery.
Below my pipeline as ultra task enabled.
To summarize:
I hope this explains it a bit more. If you would like we can also have a call in the future so I can explain more detailed step by step what I did.
But maybe there is another problem in my pipelines that causes the portal to give that response. Don’t know yet. My apoligize if my thinking or answer is wrong.
Note: I’m not so experienced in efficient pipeline creation for APIs still learning. Open for suggestions in the future.
06-22-2022 11:23 AM
Thanks, Jens. The image of your pipeline is too low-res for me to be able to read the snap names. But I think I’m hearing that the crux of the problem is that your SQL Select returns multiple records so you’re trying to deal with that in your Ultra pipeline.
The key to doing that is to use a child pipeline and move the SQL Select to that pipeline, along with whatever snaps are needed to aggregate those multiple documents and return a single document as the result of the child pipeline. Then in the parent, do any additional processing needed on that child output document to create a single response document for this request. This works because a new instance of the child pipeline is created for every request, so you can use aggregating snaps there that you can’t use in the root Ultra pipeline. Make sense?