cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Join snap giving error

krupalibshah
Contributor

3794d72399b210452811340fba5242256c290865.jpg

Trying to design a pipeline as shown above, where I have a json having failed Pipeline data from which I am picking each pipeline ID and extracting logs from Logging API, the result of the both 1st step and last are used to perform an inner join where both the pipeline ID would match, however when I run this I get the error,

Input not completely consumed
Resolution
Please raise a defect with the following information, Pipeline Ruuid:6bee3dc7-a754-4e5a-80c9-7a4a80555128
Reason
Snap failed unexpectedly and did not provide any reason

Need some help to understand on this, also would like to understand why this error is not shown while validation?

5 REPLIES 5

krupalibshah
Contributor

I could solve the issue but now there is another problem in accessing the JSON fileds,

jsonPath($, "$PipelineData[].[โ€˜ChildPipelineInstanceIdโ€™])
jsonPath($, โ€œ$PipelineData[].['ParentPipelineInstanceID ']โ€)

both these expressions should give me correct result, but surprisingly, I get an error โ€œFailure: Invalid JSON-path: $PipelineData[].[โ€˜ChildPipelineInstanceIdโ€™], Reason: Field not found in JSON object: ChildPipelineInstanceId, Resolution: Check the path syntaxโ€

I even tried different path : jsonPath($, โ€œ$PipelineData[]..ChildPipelineInstanceIdโ€)

Below is my JSON :

9c808db8f7c2f590f752fcea4bde5db4883cb939.png

2a0bdea0c2672a09c7f9d983858adbf81962d1fe.png

is missing an end double quote. Is that the case in your Mapper?


Diane Miller
Community Manager

No, may be thats just a typo, jsonPath($, โ€œ$PipelineData.[โ€˜ChildPipelineInstanceIdโ€™]โ€) even this is not working.

When I drag and drop, I get the path : jsonPath($, โ€œ$PipelineData[].pipe1.ChildPipelineInstanceId") which gives me correct value, but the moment I change it to jsonPath($, "$PipelineData[].*.ChildPipelineInstanceIdโ€) I get the same error.

Try using a JSON splitter before mapper1 with this expression: $PipelineData[].

if it doesnโ€™t work please provide sample data.