Issue with infinite loop

Thank you.

I managed to fix the infinite loop issue in the end. I had added the default ‘None’ option to the Enum for the data table and it had changed the value for all entries to none. As such it was always returning none therefore getting stuck in the loop.

Your way does sound a bit more efficient than mine however so will look at implementing that.