You need to sign in to do that
Don't have an account?
Upserting a Case - INVALID_FIELD on Comments QueryResult
I'm using the standard Case object (we have some custom fields but that doesn't appear to be the problem). The Case has a linked subquery to its Comments, replicated in the SOAP API as CaseComments. My test case for upserting records is to query() for one by case number, change something, and upsert that record again. When I do so, I get an INVALID_FIELD error stating that CaseComments doesn't exist on the Case table in the cloud. Of course it doesn't exist, and the API should know better. Or maybe I'm not telling it something. Help?
UPDATE: tried setting the property to null; didn't work. The error in that case is "INVALID_TYPE: Must send a concrete entity type."
http://stackoverflow.com/questions/4588780/salesforce-upsert-failing-on-an-invalid-field-error