cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Request attribute getting truncated to 251 chars in purepath.

prasad_mekkali
Newcomer

I am having a requirement to create a request attribute based on a java function which return a string. But in purepath its only showing first 251 characters only. Is there a way to increase this to 500 characters ?


5 REPLIES 5

Julius_Loman
DynaMight Legend
DynaMight Legend

No, it is not. You will have to use two request attributes. One for capturing first 250 characters and the other to capture the rest.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thank you Julius. Is there way to get characters from 250 to 500 while creating Request attribute using a java method as given below.


Use the regex for that:

^.{250}(.{0,250})


If possible (not in this case probably, as the UI will not allow it), I'd use the construct

.substring(250,500)

in the deep object access.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thank you. Much appreciated !!!


Hi Prasad & Julius,
Has the RegEx worked for the two of you? I've tried it without any luck. Do you have any tips if you haven't gotten it to work for you?
Thanks!


Featured Posts