Link in alert mail incorrect

SP2013

Hello everyone,

Today I’ll talk about a problem with standard SharePoint alerts.

It can happen that the links in those emails use inaccessible url by end users, ie the URL of the server. This comes from bad information that can be found everywhere on the net, namely that the url is generated based on the URL used to specify the alert.

After making several tests on a SharePoint to date, I have always had the same urls little import the url used to set the alarm (perhaps a residual bug …)

The result of the tests is that the link used for alert messages is the link specified in the “Default Zone” of “alternate access mapping”.

So just change the order of URLs in AAM to have URL accessible by everyone in the default area.

Hope this helps,

Christopher.

Posted in SharePoint 2013 | Tagged , | Leave a comment

Edit Control Block incomplete

SP2013


Hello everyone,

Today I’ll talk about a problem that may occur in lists and libraries SharePoint 2013.

One of the new SharePoint 2013 feature is the evolution of “Edit Control Block” menu. Now it displays an ellipse for selection. The purpose of this article is not to discuss the artistic choices of this change but to report bugs that may arise.

Once clicked the first ellipse, you see the new “Call-Out Menu” including links to open and share the document and an ellipse which should open following options. Yes .. should ..

Capture

Indeed it may be that when you clicked on this link, instead of displaying the following the menu, nothing happens.

The problem I had is that NOTHING was happening at the click! No JavaScript error, not server error. Nothing at all!

My first thought was of a permissions problem, but tests on several libraries with the same settings had different results! After several tries, I was able to isolate the fact that the problem arose in subfolders of some lists created based on a template. Template itself creates via the SharePoint interface.

Another test was to create a new view with the same parameters, and BINGO it works properly! That means that an error occurred during the creation of the list. After investigation, it turned out that the list was created by PowerShell, perhaps an error has occurred in creation.

The quickest solution to keep your data is to recreate the views for lists with this problem.

Hope this helps,

Christopher.

Posted in SharePoint 2013 | Tagged | Leave a comment

Alert mail not received

SP2013


Hello everyone,

Today I’ll talk about a problem that may occur when you set alerts for users.

The error in question is the fact that the user receives the mail saying that an alert was created for him, but he is not receiving alerts generated by adding / modifying element.

One reason could be found if you configure the log to “Verbose” for the “Alert” category.

To configure the logs level, follow this procedure:

  • Go to the central administration
  • Click on the “Monitoring
  • In the “Reporting” section, click on the link “Configure diagnostic logging
  • In the “Event throttling” section, just expand the “SharePoint” section and select “Alerts
  • In the dropdown “Least critical event to report to the track log” choose “Verbose
  • Click ok

Note: This operation does not cause recycle or IISRESET, it can be done live on production farm. By cons when you have finished your test, be sure to return to the previous configuration state (choosing “Reset to default” from the dropdown list, failing which your log files grow very large).

 

This configuration will allow you to see such entries

“Alert for Immediate subscription {GUID}, event ID, USERNAME succeeded permissions check”

If instead you see such entries

Alert for Immediate subscription {GUID}, event ID, user USERNAME failed permissions check

You have your culprit!

Indeed, when sending an alert, a test is made in advance to find out whether the user can log in to the site! If you have not yet given access to the user, although it will receive the email telling him that an alert was created for him, he will not receive the actual alerts!

 

Hope this helps,

Christopher.

Posted in SharePoint 2010, SharePoint 2013 | Tagged , | Leave a comment

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.

Posted in SharePoint 2013 | Tagged | Leave a comment

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.

Posted in SharePoint 2013 | Tagged , | Leave a comment

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

Posted in SharePoint 2010, SharePoint 2013 | Tagged , | Leave a comment

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.

Posted in SharePoint 2010, SharePoint 2013 | Tagged | Leave a comment