function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
balraj singh 33balraj singh 33 

i am getting the error message 'System.QueryException: List has more than 1 row for assignment to SObject Trigger'

i am getting the error when i try to insert multiple records from data loader. It is working for single record.
User-added image
Best Answer chosen by balraj singh 33
Ravi Dutt SharmaRavi Dutt Sharma
It seems you have multiple triggers on Opportunity and the error is not coming from the trigger you posted in the screenshot.

All Answers

Shweta AlwaniShweta Alwani
Hi balraj singh 33,

On which line you are getting this error.
Ravi Dutt SharmaRavi Dutt Sharma
It seems you have multiple triggers on Opportunity and the error is not coming from the trigger you posted in the screenshot.
This was selected as the best answer
balraj singh 33balraj singh 33
Shweta it is in line: VAR.PUT(opp.accountid,opp.amount).
balraj singh 33balraj singh 33

@Ravi Dutt Sharma thanks a lot bro it is now working.