You need to sign in to do that
Don't have an account?
Patrick Mayer
Just starting with Apex. [object Object]: duplicate value found: error
Relitively new to this platform. Trying to create a really simple trigger on a Task. I took out any of my code in the actual trigger, but every time I try to save I get a "[object Object]: duplicate value found: ScopeId duplicates value on record with id" error message. I really have no idea where to start with this one.
trigger updateNameToPrimary on Task (before insert, before update) {
}
ScopeId in your case must be unique but your code may be either creating or fetching duplicate ScopeId that's why this error popping up.
Thanks.