In the Import Records script step, when you specify a data source that's tab- or comma-separated, or Excel, it gives you the option to treat the first row as field names. That setting will be saved with the script if you specify a file. It will not be affected by changing the setting while the script runs or doing other scripted or manual imports.
If the file is not specified however what happens
AFAICT it defaults to first row as data when no file is specified.
Ok a bit more information as to what is happening.
We dont specify a file but we do specify the order
However when we select the Excel workbook sheet we are getting a "No Fields Selected for Import" message as long as we try to perform without the dialog box however when we uncheck the perform without dialog box and do the same thing with the exact same file it lines up the fields in the saved specified order.
Why would it not find fields if the perform dialog box is checked but find them if its unchecked.
The sheet and workbook are unprotected and it does this regardless if the workbook is open or closed.
bump Dont know if someone saw this additional bit.