You need to sign in to do that
Don't have an account?

Eclipse - Error saving Trigger - Did not find ApexClass component for 'timecardcontroller'
I have a custom object Time_Card__c. I'm trying to create a trigger that will fill in the pay rate based on some criteria.
I commented out everything in the trigger except for this and it still won't save:
trigger Trigger_TimeCard_FindPay on Time_Card__c (before insert, before update) { for(Time_Card__c tc : Trigger.new){ tc.Pay__c = 5; } }
The Error Log says "Did not find ApexClass component for 'timecardcontroller'".
I have an Apex Class called timecardcontroller which is used for a Visualforce page which lets people update the Time Cards, but I have no idea what this has to do with this trigger.
If I comment out the line that says tc.Pay__c = 5; then it saves correctly.
Any ideas on how to fix this?
are you using the same variable name "tc" in the class?
Just a thought ...