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:
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?