• Murali Guntakal
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Did anone face this issue in APEX Class?
 I a

Code
List<Opportunity> oppoList = [SELECT Id, Broker_Agent__c, Seller__c, Primary_Contact__c FROM Opportunity WHERE Id = : opportunityRoles.keySet()];

I am not getting this error in Prod but when I copied the code from Prod to Full sandbox, its failing deployment with Illegal assignment from LIST<Opportunity> to LIST<Opportunity> error. Not sure whats wrong. Any suggestion/info is appreciated.

Thanks 


 
Did anone face this issue in APEX Class?
 I a

Code
List<Opportunity> oppoList = [SELECT Id, Broker_Agent__c, Seller__c, Primary_Contact__c FROM Opportunity WHERE Id = : opportunityRoles.keySet()];

I am not getting this error in Prod but when I copied the code from Prod to Full sandbox, its failing deployment with Illegal assignment from LIST<Opportunity> to LIST<Opportunity> error. Not sure whats wrong. Any suggestion/info is appreciated.

Thanks