Skip to main content

Posts

User Cannot be Found When Opening List/Library Settings or Workflow Settings

I have encountered the  User cannot be found  error a few times when accessing the  List Settings  or  Library Settings . Solution: To republish the workflows you can follow the next steps: Open your site in SharePoint Designer 2010 Click on the  Workflows  link from the  Site Objects  menu Click on the workflow name, this will open your workflow Click on the  Publish  button Do step 3 and 4 for all the workflows. Go back to your  List  or  Library Settings  and the error should be gone.

Setting up a managed metadata service application to server one or more web applications

Found article at http://www.lamber.info/post/2010/12/12/Setting-up-a-managed-metadata-service-application-to-server-one-or-more-web-applications.aspx Assigning two or more managed metadata service applications to a single web application You are also able to assign multiple service applications to a single web application. When doing so with a managed metadata service application, however, you have to consider some settings before proceeding. Imagine that you have to maintain two separate managed metadata service applications for two different departmental projects. You can do this by creating two separate managed metadata service applications and assign them to the corresponding web applications. After a while, you need to combine both service applications for a single web application. You can do this by following the same steps as seen in the previous scenario. Choose the service applications that you want to consume in your web application by selecting a proxy group or def...

#160005: Bad response from SMTP. Client host rejected: Access denied

Here is message from the log file C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\LOGS High     #160005: Bad response from SMTP host'mail.mydomain.com': 554 5.7.1 : Client host rejected: Access denied. I resolved this SMTP issues after adding all WFE server IP into SMTP relay address. One of our DMZ WFE IP was not added into SMTP relay address. That's the reason all the OOTB overdue mail notification failed and got the below message: The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly. 

Robots.txt prevents SharePoint 2010 search crawler from crawling sites

 I added robots.txt on our preview server to prevent Google’s bot or Bing’s bot from indexing our business’s preview sites. Original robots.txt: User-agent: * Disallow: / Effectively it should stop all legitimate bots from indexing preview sites. However this also stopped SharePoint 2010’s search crawler from crawling the sites. Any full crawl gave me 0 results. Updated robots.txt: User-agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT; MS Search 6.0 Robot) Allow: / User-agent: * Disallow: /

"Tags" tab is missing when you open "Tags and Notice board" popup

Why does the Managed Metadata Service have to be running? You might be wondering why it is necessary to have the Managed Metadata service application provisioned in order to use the social computing features? The reason is that the “tags” that users create when tagging pages, documents, list items, etc., get stored in the  Keywords  portion of the  Term Store  (which is the name of the central metadata repository that is maintained by the Managed Metadata service). The Keywords portion of the Term Store is only half of the Managed Metadata repository. The other half is frequently referred to as the Taxonomy portion of the Term Store. The Taxonomy portion of the Term Store is hierarchical, while the Keywords portion is random. The master list of user tags gets stored randomly as they are created in the Keywords portion of the Term Store: If the Managed Metadata service is not provisioned and running, users can’t use the social tagging features, because Shar...

Add Excel Content Types in SharePoint 2010

Step 1: Navigate Site Actions --> Site Settings --> Under Galleries --> Click Site content Types and then click Create button. Step 2: In the Select parent content type from list, select Document set content types and then click ok. Step 3: On the site content type Advanced settings page, select Upload a new document template, and then click browse to browse to and select the document template you want to assign to the site content type. A document template choose can be any file such as a Excel, Word document, PowerPoint slide presentation, etc., And then click OK. Step 4: In the Document Library settings dialog under General settings, click advanced settings. In the content types section, click Yes for Allow management of content types and then click OK. Step 5: Back in the Document Library setting dialog under content types, click Add from existing site content types. In the Available Site Content Types list, select your conten...

How to get SPUser or SPGroup from Person or Group field

You have person or group field in SharePoint list and you want to programmatically get the user or person. The below code to gets SPUser from User or Group field in the list when multiple choice and Groups are not allowed in the field: //get SPUser SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users"); SPFieldUserValue userFieldValue = (SPFieldUserValue)userField.GetFieldValue(item["Users"].ToString()); SPUser user = userFieldValue.User; This part of code would help you to get SPUser when multiple choice is allowed and groups are not allowed: //Multiple choices are allowed SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users"); SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString()); foreach (SPFieldUserValue userFieldValue in userFieldValueCollection) {     Console.WriteLine("     " + userFieldValue.User.LoginName); } And when group...