Webpart Search Content simple OOTB search for a Timeout 15 seconds - sharepoint

OOTB Search Content webpart on a OTTB Publishing site. Intermitantly it timesout.
Farm, 2 WFE 2 APP
Search is running on APP, Query service is on WFE
Sevice Pack SP1 Sharepoint 2013
I know if i move all search components to one server this problem goes away.
Been down the Certificate not being correct....appear to make some improvements
Can oftern reproducing it by leave IE9 open wait 20+mins then press f5, rest of page reloads fine search webpart timesout: 15 seconds message.
Press f5 will probably then work, for a bit.
Nothing in Event log on all servers.
VMware hosts, with net scaler, set to Round robin.
ULS Microsoft.Ceres.InteractionEngine.Component.FlowHandleRegistry : Exceptions occurred when evaluating the flow. Microsoft.Ceres.Evaluation.DataModel.EvaluationException: Query execution timed out. ---> System.TimeoutException: Query timeout: Microsoft.Ceres.SearchCore.Query.MarsLookupComponent.LookupService.QueryClient.QuerySession, timeout is: 00:00:15

Have you tried adjusting the XSLT transform timeout ?
$myfarm = Get-SPFarm
$myfarm.XsltTransformTimeOut
You may have this set to 1 (second)
Try setting to 5 (or more)

I solved this. Its a latancy issue. One of the web frontends was in a different data centre. Moved it to the same data centre, and the timeout error was resolved. Search webpart was also instant.
http://sergeluca.wordpress.com/2014/01/21/stretched-farms-and-sharepoint-2013/
Is a very good article, plus a neat powershell script.

Related

No Custom Events in Application Insights

Trying to create custom event in Application Insights but it doesn't show up on Azure Portal. All other events like requests, dependencies, exception are visible.
I have tried in dotnet core and can see following in debug log, but still no event in portal, even custom event table is empty:
Application Insights Telemetry: {"name":"Microsoft.ApplicationInsights.Dev.<instrumentkey>.Event","time":"2019-12-05T19:16:34.1373921Z","iKey":"<instrument key>","tags":{"ai.application.ver":"1.0.0.0","ai.cloud.roleInstance":"<role>","ai.session.id":"<session>","ai.user.id":"<user>","ai.operation.id":"<operation>","ai.operation.parentId":"|<some ids>","ai.operation.name":"GET /auth/login","ai.location.ip":"::1","ai.internal.sdkVersion":"dotnetc:2.11.0-21474","ai.internal.nodeName":"<subscription>"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"SAML_Authentication_Initiated","properties":{"DeveloperMode":"true","AspNetCoreEnvironment":"Local"}}}}
Tried from javascript as well, can see following successful post request in browser console:
POST https://dc.services.visualstudio.com/v2/track
[{"time":"2019-12-05T19:00:21.781Z","iKey":"<instrumentkey>","name":"Microsoft.ApplicationInsights.<instrumentkey>.Event","tags":{"ai.user.id":"<user>","ai.session.id":"<session>","ai.device.id":"browser","ai.device.type":"Browser","ai.operation.name":"/public","ai.operation.id":"<operationid>","ai.internal.sdkVersion":"javascript:2.3.1"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"CustomEvent","properties":{},"measurements":{}}}}]
Response
{"itemsReceived":1,"itemsAccepted":1,"errors":[],"appId":"<application id>"}
Not sure how much time Azure needs to process custom event or should I create support ticket or something is wrong at my end.
Application insights usually takes 3-5 minutes before data begins appearing in the portal, see the Note section of this official doc.
If you worry about the data is missing, you can use Flush() method.
And if it always takes more than 5 minutes before data appearing in portal, you should consider opening a support ticket to get professional help.

High response times with Ajax True Client script

We are facing an issue with Ajax True Client script. When recording and replaying the script. One transaction took more than 60 sec time to load the page. Same behaviour observed after executing scenario in controller as well. But, if we manually perform the same transaction, it took only 8 sec. There is huge gap between the expected response times. Can any one suggest the fix?
This happens because of external resource download attempts by the script, which are not visible to you when you manually browse the page.
For example, if the page requests data from Google Analytics, or Facebook, and cannot access these sites (due to company restrictions, firewall, etc.), the response time would jump up to 60 seconds (timeout), but when you browse manually, you will not experience the timeout, since the browser behaves differently.
To resolve this issue, you should first find out which site is the script attempting to download data from? You can do this using a browser's developer tools (such as F12 tool in Google Chrome), and looking at the "Network" tab. Once you use this tab and browse to the web page, you should see the external HTTP requests. Make a list of these sites.
Once you know which external sites the page goes to, you can then use the Utils.removeAutoFilter JS command in your TruClient script:
From the Truclient Toolbox, choose "Misc" > "Evaluate Javascript Code" and add it to the first line of your script.
Then you can set the JS code in this action to:
Utils.removeAutoFilter(url, isIncluded);
for example, to prevent the script from downloading data from facebook:
Utils.removeAutoFilter('http://facebook.com', true);
Utils.removeAutoFilter('https://facebook.com', true);
Utils.removeAutoFilter('http://www.facebook.com', true);
Utils.removeAutoFilter('https://www.facebook.com', true);

Sharepoint Wrkflow 2013 became doesn't work

The workflow suddenly stopped working on the site which had been operating for about a year ago.
With Office 365 Sharepoint,
The workflow was made by Sharepoint Designer and call HttpWebService to change authorities on list items.
I tried get the list item in Workflow 2013 on the test site as well, and it has stopped working the same way, so I am in trouble because I do not know the cause.
Massage is below.
Activity in progress
Retrying last request. Next attempt scheduled 2018/03/19 >13:18. Last request details: https: // 'site' / _ api / web / lists (guid >'GUID') / Items (242)? % 24 select = ID% 2 HTTP Unauthorized for CID
We grant the authority of the application with Full Control and activate "Use application privilege in workflow" in management of site function.
Even if it is not a solution, if there is a similar problem occurring, please share the information.
Please check if you have set valid header like this:
Sorry, It was an incident at the data center of Microsoft

Microsoft Dynamics CRM 2011 help page requests itself

When I click on the help icon in my Microsoft Dynamics CRM 2011 installation, I get the following very weird result:
It appears as if the help page loads itself, and when I look at my requests through Fiddler, this is indeed what happens. If I go to the help page URL directly (without using the help icon), it works fine. Any idea what might cause this behavior?
This problem is caused by a misconfiguration of the CRM installation. To verify this, execute the following query on your Dynamics CRM database:
SELECT [HelpServerUrl]
FROM [MSCRM_CONFIG].[dbo].[ConfigSettings]
The value returned by this query will looks like this: https://<yourhostname>/help/default.aspx/ The help server URL thus includes the path to the /help/default.aspx page. However, if you click on the help icon, Dynamics CRM will append /help/default.aspx/ to the help server URL. This causes the weird, nesting behavior. It also explains why going directly to the help page does not exhibit this behavior.
The solution is simple: edit the [HelpServerUrl] value in the [ConfigSettings] table and remove the /help/default.aspx part. This will leave just the base server URL in the setting. The final step is to recycle the application pool of the website (as the server URL is cached) and everything works!

SharePoint Alternate Access Mapping error when indirectly using web services

SharePoint web site = http://myexample:3500
SharePoint tester (admin on domain, admin on SharePoint site collection) = IAmKyle
Alternate Access Mapping: I left it at the default which is http://myexample:3500 maps to itself, and the zone is "default".
My code was deployed as a farm solution and my .dll is in the GAC. I activated a feature on my site collection (url is above). What the code does is, when the user updates a SharePoint item, my code executes a LINQ query finding "related" items. Then the related items are updated. Here are the errors I get:
On Windows Event Logs:
Error loading and running event receiver [my receiver assembly]. Object reference not set to instance of an object.
On SharePoint ULS event logs:
Same error as I see in Windows Event logs. Also, I was getting errors about "alternate access mapping" not being configured for http://myexample:3500 but I'm not getting them anymore. Don't know why, I haven't changed anything.
On IIS logs
Getting some 401 responses for pages that I should be able to access. But, it only shows the tail end of the page in some cases e.g. "/mysite/mypage" so I'm unsure what the full URL is.
These errors are very confusing, my code 100% works on my test system. What network or sharepoint configurations should I be looking for? I'm assuming my code itself works fine considering that it does work on my test environment. Of course, I have more permissions on test since my username on test is the user who created the farm.
Thanks.
Do you get these errors when trying to activate the feature or when actually making a change to a list item?
Also, have you tried attaching the VS debugger to the process and having a look at what is going on?

Resources