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
Anna Rudenko 9Anna Rudenko 9 

"MALFORMED_ID: Parent Account ID: id value of incorrect type: true."

When trying to use collection variable to update ParentID field ,getting the following error message:
 "MALFORMED_ID: Parent Account ID: id value of incorrect type: true."

My collection called Get Parent Account Details:
User-added imageMy Update Record element (it happens after the decision element, where collection variable has only 1 record, I have the screen element showing the value of collection variable, which corresponds to Account ID. I dont understand why flow is showing me error saying that ID is of incorrect type - obviously I am missing smth here :) ):

User-added image
here is the outcome of screen element I was mentioning earlier (ID seems to be fine for population into ParentId field..):

User-added image

Any hints are very appreciated!
Anna
 
AbhishekAbhishek (Salesforce Developers) 
Hi,

 If you are receiving the Salesforce Error "ID Value of Incorrect Type" this means that an ID being sent to Salesforce is not the correct type that Salesforce is expecting. For example, some fields in Salesforce can only accept certain ID types.

For your resolution try this

"Go to the record type and from the address bar, you should see something like this - https://xxx.salesforce.com/setup/ui/recordtypefields.jsp?id=01220000000VCdE and copy the ID from there."


For your reference, you can check the below blog too,

https://help.formassembly.com/help/salesforce-error-id-value-of-incorrect-type

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.