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
Claudia ManjarresClaudia Manjarres 

Map key not found in map

Hello,

A customer is getting this error, but I cannot reproduce it. Does anyone have an idea what it refers to?

Thank you!

Map key 00xxxxxxxx not found in map
Error is in expression '{profileIDToName[pp]}' in component <apex:repeat> in page
Yogeshwar TailorYogeshwar Tailor
Hi Claudia,

Can you share your code? and have you checked that id ?

Thanks,
Yogesh
Piyush Gautam 6Piyush Gautam 6
Hi Claudia,

This could be because of the keyset you are referring in map expression (getting the value to a particular keyset in your case 'pp') is not present.
Try to debug pp value and search whether it is present in map keyset or not. If this is the case of an error then you can filter out 'pp' value before referencing it inside map expression for getting values.

Check whether that value is present in map key or not.

I hope this will help you if yes then please mark as solved.

Thanks