How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Can *OCCURRENCE(#X-ARRAY) define the X-ARRAY memory space in execution time?

calendar_today June 5, 2026 person Ellie-Mae domain software-ag

This community Q&A addresses a NAT1257 runtime error encountered in Natural when looping through an array with a hardcoded limit. The solution uses the *OCCURRENCE(#X-ARRAY) function to dynamically determine array size during execution rather than requiring fixed dimensions, making loops more flexible and avoiding hardcoded array sizes.

open_in_new Read original post