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

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?


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 )

string[] Assessments=addlistc;




Firstly I have generated the class from a wsdl of prophecy 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