Rethinking it. The try except block looks for each field involved in models rules and gets its position in the input data row, but you might not have data for that field. This may not be so important, and you may ask for predictions with partial data... I don't know