You need to sign in to do that
Don't have an account?
p100
List has more than 1 row for assignment to sobject
Hi
In my trigger im getting the above error when assigning the results of the query to the List. Works fine on individual records but not when updating bulk data. Any ideas where im going wrong? Code below:
if(Trigger.isBefore) { if(Trigger.isUpdate) { string fy; system.debug('After UPDATE'); List<JS_Calendar__c> fyInfo = new List<JS_Calendar__c>(); fyInfo = [Select Date__c, Financial_Year__c, Quarter__c, Period__c, Week__c From JS_Calendar__c Where Date__c =:[Select Launch_Date__c from InvestmentProgram__c where Id in: Trigger.newmap.keyset()].Launch_Date__c];
thanks
Try this.
All Answers
Try this.
Your code is not optimized ti handle bulk request.If you can make your requirement clear,then can help you out.