>> Thank you for reply. It work fine if I store them in cursor, but will cause error if stored in array. why?
>
> How much of fields your result contains? If 4 or more - that is the answer, array cannot contain more than 65535 elements in total (17000*4 > 65535).
The actual limit on array elements is 65,000 rather than 65,535