You need to sign in to do that
Don't have an account?
rwalrath144
Can't deploy class and trigger... Please Help!!
I have created a class and trigger to process inbound emails in Sandbox. I get 100% coverage on my class and 94% coverage on my trigger. When I take it into Eclipse to deploy I only get 74% with the same exact code.
Is there a way to deploy from Sandbox without using Eclipse?
All Answers
I am really at a loss on what to do at this point. These are the errors I am getting and my trigger is below. I could really use some help here. I am at best an amateur with code.
Severity and Description Path Resource Location Creation Time Id
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CheckFieldValues: execution of BeforeInsert
caused by: System.ListException: List index out of bounds: 1
Trigger.CheckFieldValues: line 16, column 38 CS tools_Salesforce line 1 1248887126156 155
Trigger.CheckFieldValues: line 17, column 38
Trigger.CheckFieldValues: line 19, column 38
}
String[] Field_Values;
//c.IncidentAssignTo__c = Field_Values[1];
c.Client__c = Field_Values[2];
c.Primary_Invoice_Number__c = Field_Values[3];
c.Order_Amount__c = double.valueOf(Field_Values[4]);
c.Consumer_Contact_Phone_Number__c = Field_Values[5];
c.IP_Address__c = Field_Values[6];
c.Consumer_Contact_Email__c = Field_Values[7];
c.Address_1__c = Field_Values[8];
c.Address_2__c = Field_Values[9];
c.Description = Field_Values[10];
c.IncidentReason__c = Field_Values[11];
c.Sub_Incident__c = Field_Values[12];
//c.Processed__c = 1;
}
}
I try to run tests using Execute Anonymous as the Apex book says but I recieve this error:
DEBUG LOG
Failed to send request to https://na4-api.salesforce.com/services/Soap/s/14.0/00D3000000007x7
I upgraded to the latest. I am getting the same errors plus
Severity and Description Path Resource Location Creation Time Id
Save error: Unable to perform save on all files: An unexpected error has occurred. Please try again, or check the log file for details. CS tools_Salesforce/src/triggers CheckFieldValues.trigger-meta.xml line 1 1248901917921 175
I have been having this same problem. It isn't a Test Percentage problem. I just can't get my code to production. I have tried updating Eclipse and that hasn't helped either.
Maybe Cloud computing isn't all its cracked up to be...