Exception message: 'Value was either too large or too small for an Int32.'

Anybody that can eloborate on that?
Does it come from length, dates, number of timesteps or .... ?