That could work depending on the amount of data. Even though each Device State node is quick, when you multiply it by 10’s of thousands of executions, it’s very easy to reach the 60 second timeout when doing large looping operations like this.
I might recommend using a local script (Node.js, Python, Ruby, etc) to do the import using the Losant API. You can export the Data Table to a CSV from the Losant UI, or just use your original CSV files you started with.
I wrote a working Node.js script that can be found here: