This error will occur when the attribute import ID is not on the gift being updated

To check this:
1.  Create a gift query
2.  Filter on Attribute Import ID equals [ID in the import file giving the exception]
3.  Output Gift Import ID and Attribute Import ID
4.  Run query and the Gift Import ID doesn't match the ID in the import file so gives an error