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
CLKCLK 

System.TypeException: Invalid conversion from runtime type SET<String> to SET<Id>

System.TypeException: Invalid conversion from runtime type SET<String> to SET<Id>

 

getting this error when trying to test future method which takes parameter of SET<ID> and i am passing

SET<ID> only.

 

I dont know whay it happening, can anybody knows it.

 

 

SteveBowerSteveBower

Post your code.

 

The obvious answer is that, regardless of what you think, you are not actually using Set<Id>, but actually Set<String>.   So, I'd recheck your assumptions.   Or, perhaps it's complaining about some other bit of code than you think it's complaining about.   Either way, can't do much without code.

 

Best, Steve.

CLKCLK

that was Salesforce bug and fixed automatically.

It happen with salesforce's java implementation.

 

thanks