4

We are using Andrew Fawcett's SObjectDataloader Library where I fixed a couple things and stumbled over odd behavior that I couldn't find valid explanation for.

So in the Library, records are extracted from a Json and then cloned to be inserted with a new id (line 496). But not with obj.clone(), but like this: obj.clone().clone().

I assumed this happend by accident and removed one of them. Worked as expected. But when I pushed the changes to our Patch org, I got internal Salesforce errors from inserting the clone.

Unable to Access Page

What is .clone().clone() doing different than .clone()?

Why did it only fail in the patch org?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.