You need to sign in to do that
Don't have an account?
DML operation error(Database.Upsert)
We have a functionality which will populate opportunity team members in opportuntiy when the lead is converted. In one case, i changed the record owner field from the default (Lead owner) and converted the lead. In this case, The opportunity team member is not populated.
In debug log, i checked all the functions invoked when the leads is converted. Here the function which inserts the opportuntiy team was called and successfully upserted (here inserted the new record) the record (I have seen the ID of the record and isSuccess field is true). But i could not see the record in the salesforce. when i try to access the record, It says The data is unavailable.
Are you sure that you have the access on the upserted record, can you query on the upserted record through workbench or force.com IDE??
I should have access to the record since i have system admin profile. Also as you told, i tried to query the reord via workbench, it returned no record. Appericiate your help with this.
License: Salesforce
Platform: Unlimited version