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
Rob P12Rob P12 

Error during deployment

 Hello,

I am trying to deploy Apex Code into production. The code coverage is 92%. In the Force.Com IDE I select the Validate
Deployment option. I get this error message 'incompatible key type Double for Map; String, String. I do have a line of code
Map<string, string> varRoleMap = New Map<string, string> ();

For (OIP_Partner__c oip : [Select Partner_Key__c, Partner_Type__c
    From OIP_Partner__c where Partner_Key_c IN varKeySet]) { // varKeySet created earlier
    
varRoleMap.put(oip_Partner_Key__c, oip.Partner_Type__c); 

Notes:
    oip_Partner_Key__c  string
    oip_Partner_Type__c picklist

I also tried string Partner_Type = oip.Partner_Type__c and used Partner_Type in the Put

Thanks