Resolved! while (gr.next()) skips first record but works for second, third, fourth, etc.
Kia ora Community, Hoping someone can help me understand what I'm doing wrong. Goal is to remove encryption context from attachments when business rule criteria are met. Something in the way I've written the code is resulting in the first attachment ...
