Just wanted to add since I’ve still been attempting to solve this.
I was able to get the update_sub_rows to work on it’s own outside of the rest of my script.
It seems to stop working though once I put an IF statement before it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users