I have a use case where i have to upsert records through trigger matching external id. i am using below in trigger for dml
Database.upsert(listToInsert,plan_product__c.Fields.External_Product_Key__c, true); Where External_Product_Key__c is the external keys defined on plan_product__c objects.
I was expecting above dml statement to keep trying upserting for all objects with matching external keys, but its throughing error even in case when external keys exist for products. All records including products where external exist are errored out. Any Suggestion are welcome.