question

sravyashivapuram-6930 avatar image
0 Votes"
sravyashivapuram-6930 asked TongZhangMSFT-7548 answered

SharePoint Online: Error loading page: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

Hi,

We have a web application written in C# that connects to SharePoint Online to retrieve a list of all the sub sites and populates the drop down in the UI. But this drop down stopped populating in all the environments suddenly and shows the following error -

Error loading page: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

As part of troubleshooting, verified the permissions of the service accounts, re-indexed the site so that it will be picked up for next scheduled crawl by Microsoft, debugged it locally and found that it is able to retrieve the first 500 results fine but with a subsequent call to get another set of 500 records is where it bombs. Is there anything else that I would need to check? Please advise.

Any help is greatly appreciated. Thank you in advance.

Regards
SLS

dotnet-csharpoffice-sharepoint-onlinesharepoint-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @sravyashivapuram-6930,
I am currently doing some research on this issue, will let you know as soon as possible.

0 Votes 0 ·
TongZhangMSFT-7548 avatar image
0 Votes"
TongZhangMSFT-7548 answered sravyashivapuram-6930 commented

Hi @sravyashivapuram-6930,

Per my research and testing, except checking the permissions of the current service account, and reindex a site, The error may also be related to firewall rules, please follow these steps to create a rule and check if this error still exists:

Steps:
1. In the Windows Server Start menu, type Windows Firewall. (Or open Control Panel > System and Security > Windows Firewall.)
2. Select Advanced Settings in the left-hand pane, and then Inbound Rules.
3. In the Actions pane on the right, select New Rule.
4. In the New Rule wizard, select Port and then select Next.
5. Select the TCP check box, select the Specific local ports check box, enter 808, and then select Next.
6. Select Allow the connection and then select Next.
7. Select which profiles to apply the rule to. (The default is to have all three selected.)
8. Enter a rule name and select Finish.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TongZhangMSFT-7548

Thank you for your response and help. Will try this.

Regards
Sravya

0 Votes 0 ·
TongZhangMSFT-7548 avatar image TongZhangMSFT-7548 sravyashivapuram-6930 ·

Hi @sravyashivapuram-6930,

I am checking to see if the problem has been resolved. If you have any questions or progress, you can contact me in time.

0 Votes 0 ·

Hi @sravyashivapuram-6930,

Have you tried the solution I proposed?

If you have any questions or progress, you can contact me in time.

Looking forward to your reply. Thanks for your understanding and support.

0 Votes 0 ·
Show more comments
TongZhangMSFT-7548 avatar image
0 Votes"
TongZhangMSFT-7548 answered

Hi @sravyashivapuram-6930,

I'm glad to hear you solve the problem ,if you have any issue about SharePoint, you are welcome to raise a ticket in this forum.

By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others." and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:


[SharePoint Online: Error loading page: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.]

Issue Symptom:
We have a web application written in C# that connects to SharePoint Online to retrieve a list of all the sub sites and populates the drop down in the UI. But this drop down stopped populating in all the environments suddenly and shows the following error -

Error loading page: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

As part of troubleshooting, verified the permissions of the service accounts, re-indexed the site so that it will be picked up for next scheduled crawl by Microsoft, debugged it locally and found that it is able to retrieve the first 500 results fine but with a subsequent call to get another set of 500 records is where it bombs. Is there anything else that I would need to check? Please advise.


Current status:
We have changed the way 'GetSearchResults' method is setup in our code and that seemed to have worked temporarily. The results are now being loaded.


You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.