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

Expression cannot be assigned at line -1 column -1
Hello!
Don't judge me harshly - i'm newbie =).
For some hours i can't get over the error - "Expression cannot be assigned at line -1 column -1".
It appears every time i try to save the following APEX trigger -
trigger ItemAvailabilityChange on Item__c (before update) { if (Item__c.Items_Available__c == 0) Item__c.Availability__c = false; else Item__c.Availability__c = true; }
Thanks in advance.
All Answers
Thanks a lot - now it works!