Thursday, April 10, 2014

Add Views to survey list

SharePoint handles Survey list little differently than the custom list or document library. So the new views cannot be crated on survey as on Custom list.

To achieve this follow these steps:

1. Get the GUID Url of the list on which you have created view.
   Easiest way to do so is 
Go to Site Action -> Site Settings 
Under Site Administration tab , Select Site library and lists
Select Customize “Your List name”
Notice in address bar you will get URL something like
http://WebapplicationName/sites/SitecollectionName/_layouts/SurvEdit.aspx?List={825760CD-090B-411F-805A-0C4796B50081}

a.       Yellow Highlighted part show GUID of your list
b.      Green Highlighted part shows type of list
2. Update URL
c.       Update “SurvEdit.aspx” with “ViewType.aspx
d.      Remove  {} from GUID
e.      Url should look like

3. Past this new url in address bar , this will give view creation interface as we usually get for custom list or document library.


Wednesday, March 26, 2014

One of the properties of the Web Part has an incorrect format

We ran into this issue after cleaning disk space on C Drive . One of web front end server ran out of disk space and after performing disk clean up some users start reporting this issue .

Recycling IIS on same server fixed  this issue.

Monday, March 17, 2014

Elements of type 'Receivers' are not supported at the 'Site' scope. This feature could not be installed.


from my old documentation for Sharepoint 2007


While working on installing event receiver as feature receive error
 "Elements of type 'Receivers' are not supported at the 'Site' scope.  This feature could not be installed. "

This is because receivers scope limited to web site.

See here more details from Microsoft documentation 

Thursday, March 6, 2014

An error occurred during the processing of . The event handler 'onclick' is not allowed in this page.


Pulling from my old notes:

Came accross this issue while  trying to run custom page deployed to share point  2007 site

"An error occurred during the processing of . The event handler 'onclick' is not allowed in this page."

When I check web.config file I notice   <PageParserPaths>.. </PageParserPaths> block was empty

<SharePoint>
    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
      <PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
      </PageParserPaths>

Addition of highlighted line resolved the issue.

Original post I refereed is HERE 

Thursday, February 27, 2014

Resume SharePoint Crawls with PowerShell

Recently I worked on PowerShell script which is used to resume paused crawls.

We notice newly implemented backup solution is pausing the SharePoint ongoing crawls and over completion of the backup crawls not getting resume as expected.

This caused issue of delayed crawls and need manual intervention to resume paused crawls. Solution was to file post script over completion of the backup.

SharePoint Environment 2007

Script input : Site url and Content sources


########################### Load SharePoint assembles ############################

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.Search")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server")

#####################################################################

$sspURL= "Put your site name here"
$ContentSources = @("content1","content2")
$site = new-object Microsoft.SharePoint.SPSite($sspURL)
$CrawlStatus =""

# get spsite from $Url
$searchContext = [Microsoft.Office.Server.Search.Administration.SearchContext]::GetContext($site)

#Dispose site object
$Site.Dispose()

# get searchContext from spsite
$content = new-object Microsoft.Office.Server.Search.Administration.Content($searchContext)
$ContentSourceCollection = $content.ContentSources
foreach($item in $ContentSources)
{
    $oContentSource = $ContentSourceCollection[$item]
    if($oContentSource )
    {
       if($oContentSource.CrawlStatus -eq  "Paused" )
       {
          $oContentSource.ResumeCrawl()
          $CrawlStatus= $CrawlStatus+ $oContentSource.Name +" was paused Now "+ $oContentSource.CrawlStatus+" | "
       }
   }
}
Write-Host  $CrawlStatus

Monday, February 3, 2014

Cannot start the service SPAdmin on computer

Life saver article here :

http://blogs.msdn.com/b/sambetts/archive/2012/10/03/psconfig-system-invalidoperationexception-cannot-start-the-service-spadmin-on-computer.aspx

Sunday, July 14, 2013

Back light installation ER9X special (20 sec auto off)

http://www.hobbyking.com/hobbyking/store/HK_movies2.asp?idmovie=3414bfec390a45d695eea96a32884044

Thursday, January 24, 2013

Creating Solution Packages in Windows SharePoint Services 3.0


Monday, November 19, 2012

failed to get value of the attachments column from the attachments field type control




Issue After customizing New Item and Edit form :
Failed to get value of the “Attachments” column from the “Attachments” field type control.  See details in log. Exception message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)..


Resolution : 

Update the template value in customized form as below:

find 
Failed to get value of the “Attachments” column from the “Attachments” field type control.  See details in log. Exception message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)..

  <TemplateName xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">ListForm</TemplateName>

Change it to 

  <TemplateName xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">ListForm2</TemplateName>

This should resolved the problem 



If you found this post helpful to you or think it should have some modification to it , please let me know by comments below..