Ask a Question

getting error while parsing the href in the property transfer editor

Sirisha2020
Contributor

getting error while parsing the href in the property transfer editor

Hi,

 

I am trying to parse the href value using the below expression in property transfer editor

 

_links.item[0].href.split('/')[1] 

 

but getting error as "Failed to access the property split". Any idea on this error.

 

Thanks 

6 REPLIES 6
richie
Community Hero

Re: getting error while parsing the href in the property transfer editor

Hey @Sirisha2020,

Im probably mistaken, but it looks like youre trying to usr the split method in your xpath. Ami mistaken?

If you are then i think thatswhy youre getting that error.

Or have i completely misunderstood?

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Sirisha2020
Contributor

Re: getting error while parsing the href in the property transfer editor

Hi Richie,

 

I selected the Path Language as "JSON Path", Still getting the same error.

 

Thanks.

richie
Community Hero

Re: getting error while parsing the href in the property transfer editor

Hey @Sirisha2020,

 

I think we're misunderstanding each other.

 

Can you answer the following questions please?

 

Is the payload json or xml?

Have you created a transfer in your property transfer window? 

Could you please provide a screenshot of the property transfer window?

Can you please provide the payload? (can have example data in there, but need to understand the structure/hierarchy)

 

ta

 

Rich

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
richie
Community Hero

Re: getting error while parsing the href in the property transfer editor

Hey @Sirisha2020,

I replied to your PM with some example groovy. Did you manage to try it out?

Cheers,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
nmrao
Community Hero

Re: getting error while parsing the href in the property transfer editor

Sample response respective to your question please?


Regards,
Rao.
Sirisha2020
Contributor

Re: getting error while parsing the href in the property transfer editor

Hi Rao,

 

Sorry for the late reply. Please find the sample JSON response for your reference. I tried property transfer and inside tried with split function. nothing worked. I want to retrieve the href value the last string(highlighted).

cancel
Showing results for 
Search instead for 
Did you mean: