I don't think this will be quite as easy to troubleshoot. My bare bones script does not duplicate the problem. In the bare bones script, I am touching every table in the document by adding 1mm to its first column width. When I undo it and rerun it, I get no errors. However, my production script does quite a bit more: it tests for a particular kind of table, and for these, it adds a table column, some content to the column, sets borders on the new column, and proportionately scales the table to the text column width. Somewhere along the line, some instability is introduced that causes the table collection to become invalid after an undo to an unsaved document state. If anyone is interested in testing the entire script, you download it here: http://www.rickquatro.com/resources/UpdatePriceTables.zip When you run the script on the document, you will prompted for a CSV file, which is included in the archive. The script looks for parts tables and updates the prices based on the contents of the CSV file. It also populates a Product Group column, which it creates if it doesn't exist in the table. Thank you very much. Rick Message was edited by: frameexpert
... View more