Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jimbo20814
Creator
Creator

tMemorizeRows - ArrayIndexOutOfBoundsException

Hello, I'm getting an ArrayIndexOutOfBoundsException error. I think I know why but wondering what the work around is.

 

So I have a dataset where a datetime column is being used in tMemorizeRows (column startTime). Since tMemorizeRows gets the previous value, I think I'm getting the error because of the first row, yes? Since the first row has no previous value.

 

When I get the value of startTime_tMemorizeRows_1[0] (position zero), it works fine because it's referencing the same row, but I get the error when reference position 1,  startTime_tMemorizeRows_1[1]. 

 

Again, is it because of the first row? In my tJavaRow component, I tried to use an if conditional before assigning output value. But I still get the same error.

if (startTime_tMemorizeRows_1[1] != null)

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

what is the value of the Row count to memorize field? By default, it is 1, if you want to meorize multiple rows, you should increase this value.

View solution in original post

2 Replies
Anonymous
Not applicable

what is the value of the Row count to memorize field? By default, it is 1, if you want to meorize multiple rows, you should increase this value.

jimbo20814
Creator
Creator
Author

Hi shong, yes that was it, changed the value to 2 and it worked. Thanks so much for your input.