Make sure the ID column for the target table is written to the output text file as a string for the Proteins table.

The example in Reading the exported tables and columns into the script works for the Pathway Protein Groups because the IDs are small integers. For tables with IDs of DataType: Long, this only works using a String, as shown by the quotes around the ID value for each row in the output file.