+ 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