Only a limited set of people are allowed to share this content

SP2013

Hello everyone,

Today I will talk about an error that could happen to your users when they attempt to “Share” an element.

They may find themselves confronted with this error message

Error Something when wrong

“Only a limited set of people are allowed to share this content”

Correlation id: XXXXX

Although the error message is not as obscure as usual, it does not point directly at the problem, which can be a bit difficult to solve if we do not know well the capabilities of SharePoint.

The problem is that you have not set up the “Access Request Settings” for the current site.

This configuration is done at the “Site Permissions” in the “Site settings” section.

In group “Manage” you have the link “Request Access Settings”

ars

By clicking this link, you can allow “access request” and specify the person’s email address where the request will be send and the “Share” will work properly.

I find it amazing that the Share button does not work the same way as the button “alert me” (which appears only when the outgoing email is configured) or even why it is not gray.

Perhaps an omission?

Hope this helps!

Christopher.

Advertisements

An object in the SharePoint administrative framework, ‘SPSolutionLanguagePack Name=0’, depends on other objects which do not exist

SP2013


Hello everyone,

Today I’ll talk about an error message which may occurs when you run PowerShell queries.

« An object in the SharePoint administrative framework, “SPSolutionLanguagePack Name=0”, depends on other objects which do not exist. Ensure that all of the objects dependencies are created and retry this operation.”

Some post suggest editing the file cache.ini within the timer service or to run an “IISRESET.” Before doing this, try to launch again your PowerShell command prompt and retry your command. If it has been active for a long time it may be that some connection are closed and this may result in this kind of error.

Hope this helps.

Christopher.

Disable column content edition

SP2013


Hello everyone,

Today I will talk about a sometimes requested feature : prevent change a field in a SharePoint list in edit mode.

If prevent the display of a field in the edit mode of a list can be easily done via PowerShell, do not forget that users can go through the “Quick Edit” mode of the list and bypass this configuration.

To completely prohibit the modification of a field after the creation of the item, you have to go through these two steps: Do not display the field in edit mode field and disable the DataGrid view.

If the second part can be done via the “List settings” menu of the list, the first requires a little development (PowerShell script or Visual Studio Development).

PowerShell is faster to set up, so here is the script to perform those two actions:

Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue

$siteUrl=”Site url”

$ListUrl=”List relative url”

$columnName =”Column Name”

$web = Get-SPWeb -Identity “$siteUrl”

$list = $web.GetList($web.Url + $ListUrl)

$list.Fields[$columnName].ShowInEditForm=$false

$list.Fields[$columnName].Update()

$list.DisableGridEditing=$true

$list.Update()

$web.Dispose()

 

Hope this helps

Christopher

Get Correlation ID

SP2013

 

Hello everyone,

Today I will talk about a piece of interesting code to retrieve the current correlation id. It’s not that I find the SharePoint error screen ugly (umm .. in fact yes), but from an aesthetic point of view, it may be interesting to present the error in a more “corporate” way.

public static class Helper{

       [DllImport(“advapi32.dll”)]

       public static extern uint EventActivityIdControl(uint controlCode, ref Guid activityId);

       public const uint EVENT_ACTIVITY_CTRL_GET_ID = 1;

       public static Guid GetCurrentProcessGuid()

       {

           var g = new Guid();

           EventActivityIdControl(EVENT_ACTIVITY_CTRL_GET_ID, ref g);

           return g;

       }

   }

 

PS: I am not the original author of the code, if he sees this post, thank you!

Hope this helps.

Christopher.