function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ross ClementsRoss Clements 

Issue uploading new cases with a Parent ID that points to an existing case.

Using the Salesforce Data Loader app I have been trying to upload some test cases to a developer version of Salesforce. It works sucessfully unless I try to set the parent ID of a new case to hold the value of an existing case in the system.

I am using the default test data sets and have tried to link to a case with the ID 00001017.

Given that the data loader uses a CSV I have tried to set the Parent ID value to both 1017 and 00001017 but both return the error above.

Parent Case ID: id value of incorrect type: 00001017

Thank you in advance for any insights into this problem.
Best Answer chosen by Ross Clements
ShirishaShirisha (Salesforce Developers) 
Hi Ross,

Greetings!

Here you are trying to set the Parent Id with the Case Number instead of the Parent Case Id.

I would suggest you to set the recordId which is in the format of 005....(15/18 digits) which you can get from the Url.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri

All Answers

David Zhu 🔥David Zhu 🔥
I think you mixed Parent ID and Case Number.  Parent ID should be a 15-digit (or 18)  alpha-numberic Salesforce ID, starting with 500. like 500J000000MYLgtIAH
ShirishaShirisha (Salesforce Developers) 
Hi Ross,

Greetings!

Here you are trying to set the Parent Id with the Case Number instead of the Parent Case Id.

I would suggest you to set the recordId which is in the format of 005....(15/18 digits) which you can get from the Url.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
This was selected as the best answer
Ross ClementsRoss Clements
Thank you both Shirisha and David, that was exactly the problem and I have now linked the cases that I need to.

Unfortunately using an instance specific GUID rather than the abstracted case ID means that I am going to have to change information in the upload depending on whether I am pointing at a test instance or live.