i have copy activity which performs upsert action from SQL to salesforce where I am using ID and Gender columns in mapping no other columns. If ID column matches update else insert the record. But i am getting below error.
INVALID_CROSS_REFERENCE_KEY, invalid cross reference id error
Please help me how to fix error.


