One thing you didn't do in the importTextData call is specify a row number. Does the data file have just a single row of data or multiple rows? Is the first row in the data file a tab-delimited list of field names? If so, do the field names in the data file exactly match (case matters) the field names in the PDF? What is the return value of the importTextData call?
It sounds like you have multiple lines of data in the data file, so you have to somehow keep track of the row number and increment it in your Action code so that it points to the correct row for the next file that's processed. You can do this a number of ways, from including a variable in a folder-level script that you'll have to reset before each run of the Action, or use a Global variable. If you need help with this, post again.
Thank you so much for your response.
Yes--there are multiple lines in the data file--it will vary from month to month. It looks like from what you are saying is that I need to do the global variable since it will constantly change, and then increment it as it goes through the text file. When it reaches the end, then it will stop.
I looked at the following links--but this is from Adobe 9 API--I don't know if things have changed with XI--especially since 9 used batch processing and XI has actions.
Count PDF Files
I am not exactly sure how to include this in my code.
If you could point me in the right direction, I would appreciate it.