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
satish kopurisatish kopuri 

External Object Records on VisualForce page

Hi All , 

I am trying to disaplay  External Object Records on VisualForce page through Salesforce Connect: OData 2.0.(I have configured this External data Source).Then I tried to query records from External Object.For 200 records I am able to show the records but for more than 200 records I am getting below error.


System.QueryException: Inline query has too many rows for direct assignment, use FOR loop
 please help me to resolve this issue.

Please find the below code snippet.

    Public List<GetBooks__x> getbookslist  { get; set; }

getbookslist= [SELECT ExternalId, BookName__c, BookFeature__c  from GetBooks__x
                                                     WHERE BusinessPartner__c =:currentRecord.Partner_Number__c ];

If I put LIMIT 200 , I am getting 200 records to display  , for more that 200 I am getting the above error.


            
satish kopurisatish kopuri
Even I tried with Database.query(); but No use.Still getting the same error."System.QueryException: Inline query has too many rows for direct assignment, use FOR loop"
pmyojana yojanapmyojana yojana
केंद्र सरकार की प्रधानमंत्री उज्ज्वला योजना(PMUY) से कमजोर वर्ग के परिवारों खासकर महिलाओं को बहुत राहत मिली है| इसे 1 मई 2016 को उत्तर प्रदेश के बलिया में लॉन्‍च किया गया था|
https://pradhanmantri-yoganas.blogspot.com/2020/04/pradhan-mantri-ujjawal-yojana.html