+ Start a Discussion
salesforcequestions123salesforcequestions123 

Error rectification

Hi I am trying to map some fileds from salesforce to another organisation where i am mapping an sobject to prophecy objecy I am getting this error

 

common.apex.runtime.impl.SObjectList cannot be cast to common.apex.runtime.impl.ScalarList.

 

 

Can some one tell me when this error comes

Imran MohammedImran Mohammed

Can you tell the data types of the field in Source as well as in Target that is mapped to?

salesforcequestions123salesforcequestions123

Actually iT is stype string

 

String SecurityCode='***********************************';
string[] CaregiverIDs= addlist;

//here assessments are those in the extrnal organisation but as it is of type string i had to pass id's

list<string> addlistc=new list<string>();
for(Assessment__c ass:selectedAssessments )
{
addlistc.add(ass.id);
}


string[] Assessments=addlistc;

 

 

salesforcequestions123salesforcequestions123

Firstly I have generated the class from a wsdl of prophecy organisation.in the proccess I had to change any type to string .

 

And I dont have an idea what type is for assessment object that I had to send to the prophecy organisation.As it is strinfg I had passed string and I am getting error