Duplicated data when importing from CSV file to a MDA object

  • 1
  • Problem
  • Updated 3 months ago
  • Solved
  • (Edited)
My goal is to have an MDA object being upserted, but I can not tell GainSight which field should be updated and which one should be created.

As you can see in the image below I sent twice the same file with 3 records and they duplicated.


Here is the MDA object Keys


So, how can i set these Keys to upsert this MDA object with my CSV file?
Photo of Ricardo

Ricardo

  • 390 Points 250 badge 2x thumb

Posted 3 months ago

  • 1
Photo of Kunal Bhat

Kunal Bhat, Employee

  • 982 Points 500 badge 2x thumb
Hi Ricardo,


Did you use the "Import Data" route in Data Management to load data via CSV? If that's the case, then it would only insert data, not upsert. If you want to perform an upsert operation, consider using the Bulk API connector or the S3 connector. You can use your CSV to upsert data in either case.

Details about those routes can be found here:
S3 Connector
Bulk API


Hope this helps! Do reply if this doesn't work for you.


Thanks,
Kunal
 
Photo of Ricardo

Ricardo

  • 390 Points 250 badge 2x thumb
Worked like a charm, i upserted the MDA object using Bulk API (basically cURL command)
Thank you
Photo of Kunal Bhat

Kunal Bhat, Employee

  • 982 Points 500 badge 2x thumb
Awesome! Thanks for asking!