Fix endless crawl

SP2013

Hello everyone,

Last week I talk about a way to resolve endless crawl. Today I’ll talk about one of the possible cause.

In this case, the search configuration was to launch a full crawl every Saturday at 2AM.

searchindex01.png

Each time the full crawl was running endlessly while launching it manually was always a success.

I started to look on the error received during the crawl and saw nothing related (just some error on some pdf files indexation).

My next though was to think about a possible recycle of the application pool. I thought it was plan a 4AM so even if it causes some issue, some items should have been processed in the 2 hours between the start of the crawl and the recycle.

Looking at the configuration, I saw that the settings was set to 2AM too!

searchindex02.png

 

I switched the recycle time to 1AM and now everything is working fine.

 

Hoping this helps!

Christopher.

 

 

 

Advertisements

Crawl run endlessly without results

SP2013

Hello everyone,

Today I’ll talk about an error which may occur with search on-premise.

When you have a lot a document and not a big farm, the crawl can take a long time, but sometimes it takes a looooooooooooooooooooooong time without any result!

Something like this

searchnotstopping1

As you see in this crawl log, it has been more than 16 hours without nothing (no errors, no successes, nothing…)

If that happens to you, I would suggest those 3 simple steps

Go to the content source and stop all crawl

searchnotstopping2

Open services and reset SPSearchHostController Service. 

Warning : Doing this will cause an short interruption of the search in your farm, some user can experience a “Something went wrong” message if they perform a search shortly after the reset. Do this during planified maintenance hour if the search is already in use.

searchnotstopping3.png

Go to the content source and start all crawl

searchnotstopping4

After that, you should get some result in the crawl log

searchnotstopping5

 

Hoping this helps

Christopher

Quick Win – Change default permission on site “Share”

win

Hello everyone,

Today I’ll talk about the default access you can give to people using the “Share” functionality on site level.

When you share a site, depending on your permission on the current site, you will have one of the two following processes

Case 1: you don’t have the permission to give access.

During the share, you will see this screen.

01

And there is a new request for the site owner on the “Access Request” list

03

In this request, the site owner can choose another group or give direct access to the person.

04

 

05

Case 2: you have the permission to give access.

02

In this screen, you can see that you invite people to “EDIT”. You can choose another group or give direct access to the person.

 

What if I don’t want them to EDIT but to READ by default?

If you want to set another group as the default group for Share functionality, you can just specify the wanted group as the default group for the site.

For this

  1. Go to “Site Settings” and click the “People and Groups”
  2. Select the group you want as default one
  3. Click on “Settings” and again on “Make Default Group”

06

 

When it’s done, if you share the site, you can see that the permission requested if the group you just specified

07

 

Note: The Share will only works if the target people doesn’t have access to the site. If you set the default group as “Members” and someone is already a “Visitor”, the share won’t ask for him to be added in the “Members” group.

 

Hoping this helps

Christopher.

 

 

Download all files from library

pnp logo

Hello everyone,

Today I’ll share a little PowerShell script I made some time ago. It allows you to download all files of a single library, looping through all subfolders. This script use PNP PowerShell .

It was done for Office365 but should work the same way for onpremise. You just need to update the parameter on the top and run it. It will prompt you for your credentials to access the site and then download all the files to the specified directory (creating it if it doesn’t exist)

Hoping this helps!

Christopher

 

Use default rendering in JSLink

SP2013

Hello everyone,

Today I will talk about the JsLink we use to make custom displays in our good old classic 2013 interface.

A typical example is the following

In this example, we change the rendering of the “AssignedTo” field with a custom html of our own.

This example can sometimes be too much for simple requests such as “I want to display this field in Read-Only”.

To do this, you can use the default SharePoint rendering!

I want to thank the person who took time to compile this really useful information!

For my part, my source is the following: https://sharepoint.stackexchange.com/questions/112506/sharepoint-2013-js-link-return-default-field-rendering

Hoping this helps !

Christopher.

Uploading files to some library take (lot of) times

SP2013

 

Hello everyone,

Today we will talk to you about a problem that can arise when uploading documents in a library => slowness!

When I say “we”, it is my colleague Yannick Plenevaux and myself. Having faced this problem together, we figured we would write together about it!

Go to the post!

Christopher.

GDPR Activity Hub

 

GDPR

Hello everyone,

Yesterday I talked to you about the GDPR and where to find interesting information for setting up your platform.

With some research, I found a GIT Hub repository set up by PNP people. This repository offers you a starter kit for your project of setting up the GDPR.

https://github.com/SharePoint/sp-dev-gdpr-activity-hub

 

Warning! As mentioned on the homepage, MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY, AS TO THE INFORMATION IN THIS GDPR Activity Hub.

Hoping this helps,

 

Christopher