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

Trigger fails during batch or mass update
Hi,
We have few trigger which is working as expected. during mass update it is failing if the batch size is 1 it is working as expected if it is more than 1 it is failing and not working as expected.
Please suggest me how to fix this issue.
Thanks
Sudhir
We have few trigger which is working as expected. during mass update it is failing if the batch size is 1 it is working as expected if it is more than 1 it is failing and not working as expected.
Please suggest me how to fix this issue.
Thanks
Sudhir
This issue is not work workflow it is related with data laoder when user trys to update more than batch size of 1 its not working as expected.
Thanks
Sudhir
Please find the code below
Thanks
Sudhir
Do you know how to make this fix for this issue. will recursive or any other will work to fix this issue.
Thanks
Sudhir
Can you please tell, for how many records it's throwing error.
Trigger is not working its not working as expected it is failing to update the values
Thanks
Sudhir
Keep on trying, my best wishes is with you buddy....
Hi Sudhir,
Can you please share the scenario implemented using above trigger logic, so that I could help you here.
Thanks,
Gaurav
Thanks for your responce I have fixed this issue since this was quite old case open
I am in a need of help in creating a test class for trigger can you help me in below case
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000kFzGIAU
Thanks
Sudhir
Thanks,
Gaurav
Email: gauravgarg.nmim@gmail.com
skype: gaurav62990
If you see the thread have written trigger and apex class are been called inside the trigger also there is a custom object called discount_schedule_matrx__c which has the threashould information
Here on Quote there are 4 custom fields level1 to level4 to update this field trigger is writen on quotelineitem based on discount and amount provided for products trigger use a logic inside and updates value on quote.
Please give me a logic how to build a test class for this case it will be great help from yourside if you give me a test class prepared will follow the same
Thanks
Sudhir
I looked your code and found you have made multiple queries within the QuoteLineItem trigger on quoteLineItem that would not be good way to write a code. I will look forward into this code and update you.
Please contact me on email: gauravgarg.nmims@gmail.com or skype: gaurav62990
Thanks,
Gaurav