Hi
In below code i am getting above error. I want to save only2 filenames maximum

Thanks
Hi
In below code i am getting above error. I want to save only2 filenames maximum

Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Aravind GovindarajPosted Dec 6, 2022, 11:13 AM
Hi Ramco, The issue is due to the following code, the output is more than a single record. Can you please try the first / firstordefault
context.TicketAnalysis.Single(rec => rec.TicketID == Convert.ToInt32(hdfTicketId.Value));
Please let me know if still issue persists.
:)
Ramco RamcoPosted Dec 6, 2022, 9:56 AM
Hi Jignesh
On below code i am getting same error
Thanks
Jignesh KumarPosted Dec 6, 2022, 6:35 AM
Hello Ramco,
Inside foreach loop you need to change if() condition as below,