A XOG runs fine to loop through X amount of records and completes without failure when using the XOG Client/command line.
It fails when running in a process gel script. It does not make it through the X amount of records.
core:forEach items="${example.rowsByIndex}"
The error thrown is:
"No active session. Please login or provide a valid session identifier"
Clarity 16.3.1
SessionID is being created for each loop iteration.
When the loop ends, the sessionID ends.
The sessionID will need to be obtained before the loop starts.
The session ends, outside of the loop.
To ensure the error does not happen, make sure
1. the GEL script is rewritten to reflect the example in the documentation, which shows how to XOG /obtain a valid session ID login.
GEL Examples: Running the XOG
2. Perform the loop logic. This is inside/between the session login and logout.
3. Ensure there is a xog:logout to close the sessionID/logout
Once looping is done, the session can then end gracefully.