Showing posts with label SharePoint Error. Show all posts
Showing posts with label SharePoint Error. Show all posts

Friday, May 20, 2016

My Site Cleanup Job deleting My Site immediately

he My Site Cleanup Job is also enabled and set to run every hour as set by default.

Once an account is deleted or deactivated within Active Directory, this correctly flags a profile for deletion
If the user had a My Site, the manager will receive a notification that it will be deleted in 14 days.

However the My Site is deleted immediately and there is no delay.

Its jobs must runs User Profile Incremental Synchronization 

login Prompt of SharePoint Sites error



Please refer this below link

https://blogs.technet.microsoft.com/scottstewart/2014/09/15/disableloopbackcheck-when-routing-through-a-load-balancer-powershell-sample-included/

Thursday, March 17, 2016

WSP gets stuck in "Deploying"


  • stsadm -o execadmsvcjobs on the server running Central Admin
  • Install-SPSolution has only the -Force, 
  • Check for Sharepoint 2013 Timer service






Add-SPSolution –LiteralPath "d:solution.wsp" 

install solution and we executed the following command:

Install-SPSolution -Identity "solution.wsp" -WebApplication http://peakfinders.com/  –GACDeployment

Monday, February 8, 2016

How to adding content type in Custom List programmatically gets null reference exception

In this article ,When user trying to add content type return s error,"null reference exception"

SPContentType test = web.AvailableContentTypes["Employee Details"];
newList.ContentTypesEnabled = true;
newList.Update();
newList.ContentTypes.Add(test);

Wednesday, January 20, 2016

What happens when I deactivate a publishing feature?

Question:

 I have a site where the publishing feature was turned on. There are no file under Pages All web pages are under Site Pages. I have files under documents and the image folders. If I deactivate the publishing feature will anything break.


Solution:


If you enable the SharePoint Server Publishing feature and attempt to restore a backed up site with this feature having been turned on once (even if you disable it before a backup), there will be issues with restoring that site

Does deactivating and reactivating the SharePoint Publishing features cause data loss?


In a SharePoint 2013 Site Collection and in its Subsites the SharePoint Publishing Features are enabled:
  • SharePoint Server Publishing Infrastructure Feature (Site Collection Level)
  • SharePoint Server Publishing Feature (Site Level)
 If deactivating the SharePoint Publishing Features and afterwards reactivating the SharePoint Publishing Features would cause any data loss to the environment.
  1. What happens to the Sites, Document Libraries, Content Types that were created by the SharePoint Publishing Features? Will they be deleted by deactivating the Publishing Features?
  2. What will happen to the the sites, document libraries, content types, master pages if customizations were made?
  3. What will happen to the Sites, Document Libraries, Content Types, Content, ... when reactivating the Publishing Features? Will they be overwritten by reactivating the Publishing Features?
  4. Will creating a backup of the content database(s) provide a sufficient fallback option if data loss is a risk?
Finally,


There is no data loss associated with deactivating/activating this feature.

Tuesday, January 19, 2016

How to Lookup Column Value and XSL SharePoint Default forms?

Please add attribute  this

disable-output-escaping="yes"


<xsl:value-of select="@Designation" />

Try  like this:


<xsl:value-of select="@Designation" disable-output-escaping="yes" />

Sunday, January 10, 2016

Unable to debug TimerJob in Visual Studio 2012

 OWSTIMER getting below error

Run Uninstall-SPSolution
then Remove-SPSolution
perform the IIS and SPTimer reset
Then run Add-SPSolution
and finally Install-SPSolution

Monday, January 4, 2016

How to custom list templates missing in create new list page or app Page

Use PowerShell to enable the 'ParserEnabled' property for the web site

$web = Get-SPWeb <url of web>
$web.ParserEnabled = $true
$web.Update()


#listtemplate missing

Friday, December 18, 2015

SharePoint 2013 “Runtime Error”

when trying to check-in a document in a document library



SharePoint Designer to navigate to the site / Document library. Select all files that need checking in and select Check-in from the Edit menu.

Thursday, December 10, 2015

information management policy not working sharepoint custom list

Following things must happen after above policy was set and before your documents are moved to recycle Bin:

  • Information management policy completed successfully
  • Expiration Policy completed successfully.

Both jobs are by default scheduled to run on a "Weekly" basis.

To Quickly test whether it is working (or any change in policy you made), perform following actions for above jobs in order in which mentioned above:

Go to Central Admin > Monitoring > Review Job Definition. Filter the list by your Web Application

Locate the job and select Run Now

Monitor the job history and make sure the job was run successfully on your web application

You might have figured out now, first jobs calculates the expiry date for the documents based on the policy. The second job actually deletes the documents marked to be deleted by the first job.

Wednesday, December 9, 2015

To fix Add an App option in SharePoint 2013 "Apps you can add" is missing

Add the below lines in the MasterPage in SharePoint

<!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderLeftNavBar" BlockElement="true" runat="server">-->
<!--SPM:<asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server">-->
<!--SPM:</asp:ContentPlaceHolder>-->
<!--SPM:</SharePoint:AjaxDelta>-->
<!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">-->
<!--SPM:<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">-->
<!--SPM:</asp:ContentPlaceHolder>-->
<!--SPM:</SharePoint:AjaxDelta>-->

Tuesday, December 1, 2015

SharePoint SEARCH RESULT title max 30 characters “MaxCharactersInPropertyStoreIndex

Resolution Summary :-
 
è Increased the “MaxCharactersInPropertyStoreIndex”
 
 
PS C:\Users\spinstall> $ssa = Get-SPEnterpriseSearchServiceApplication
PS C:\Users\spinstall> $mp = Get-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $ssa -Identity "PublishingPageContentOWSHTML"
PS C:\Users\spinstall> $mp.MaxCharactersInPropertyStoreForRetrieval
2097152
PS C:\Users\spinstall> $p = Get-SPEnterpriseSearchMetadataManagedProperty -Identity body -SearchApplication (Get-SPEnterpriseSearchServiceApplication)
PS C:\Users\spinstall> $p.MaxCharactersInPropertyStoreIndex
0
PS C:\Users\spinstall> $prop1 = Get-SPEnterpriseSearchMetadataManagedProperty -Identity body -SearchApplication (Get-SPEnterpriseSearchServiceApplication)
PS C:\Users\spinstall> $prop1
 
Name                 PID      ManagedType  EnabledForScoping  EqualityMatchOnly
----                 ---      -----------  -----------------  -----------------
body                 1        Text         False              False
 
 
PS C:\Users\spinstall> $prop1.MaxCharactersInPropertyStoreIndex
0
PS C:\Users\spinstall> $prop1.MaxCharactersInPropertyStoreIndex = "2048000"
PS C:\Users\spinstall> $prop1.Update()
PS C:\Users\spinstall> $prop1.MaxCharactersInPropertyStoreIndex
2048000
PS C:\Users\spinstall>
 
è In search schemaà managed propertyà titleà (Changed the priority of the crawled property TermTitle to position 0)
 
è Added a "EnableOptimisticTitleOverride" registry entry
Open Regedit on the SharePoint Server 2010 and go to  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Global\Gathering Manager
Set the value of EnableOptimisticTitleOverride to 0
 
è Started the Full Crawl
è Crawl completed and we were getting the full title of the documents in the search results.

Monday, November 2, 2015

How to resolve This view cannot be displayed because it exceeds the list view threshold (50000 items) enforced by the administrator. To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify the view so that it conforms to the list view threshold.

This view cannot be displayed because it exceeds the list view threshold (50000 items) enforced by the administrator.

To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify the view so that it conforms to the list view threshold.

Hi by default 'List View Threshold' is set to 5000, you need to change the setting if you need to show more than 5000 items. Please ask your administrator to increase the 'List View Threshold' value. Steps to reset the value :
  1. Open Central Administration
  2. Go to 'Manage Applications' under 'Application Management'
  3. Choose the web application in which you want to make the changes (example : http:// raghupc:80)
  4. In the ribbon follow 'General Settings -> Resource Throttling' there you can find 'List View Threshold' is set to 5000, change the value you want

Wednesday, October 28, 2015

SharePoint randomly displays web part error or XSLTTransformTimeout Power shell Script

We have facing this issue unable to display webpart.

When we have create more than 120 columns in our list Its shows error in our page

Default setting is 1 second. The PowerShell code below changes it to 2 seconds which should be sufficient for your farm.  So,we will choosing 4 seconds timeout. 



Powershell Script:

$farm = Get-SPFarm
$farm.XSLTTransformTimeout = 4
$farm.Update()



Effects:

If you backup/restore a site collection, you get this error when displaying All Items views.
I created a view loading 20 items at a time instead of all and it fixed the issue.

Tuesday, October 27, 2015

"Save Site As Template " option is not available in sharepoint online

Open site in SharePoint Designer
Go to option attribute save as template =false make it as true