<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Guernsey on Matt Thornton</title>
    <link>https://matt-thornton.net/tags/guernsey/</link>
    <description>Recent content in Guernsey on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 21 Aug 2015 17:36:59 +0000</lastBuildDate><atom:link href="https://matt-thornton.net/tags/guernsey/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>This functionality is unavailable for fields not associated with a list</title>
      <link>https://matt-thornton.net/tech/sharepoint/this-functionality-is-unavailable-for-fields-not-associated-with-a-list/</link>
      <pubDate>Fri, 21 Aug 2015 17:36:59 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/this-functionality-is-unavailable-for-fields-not-associated-with-a-list/</guid>
      
        <description>&lt;p&gt;Ah, the danger of the Internet. I hit this problem - trying to update a field built-in to a content type (the Title field) so that it was hidden from the UI. Easy I thought, get the SPWeb, get the SPContentType, find the field (ct.Fields[“Title”]), set it to hidden and update it. Nope.&lt;/p&gt;
&lt;p&gt;Exception: This functionality is unavailable for fields not associated with a list&lt;/p&gt;
&lt;p&gt;Engaging my brain / memory resolved this, but not before I encountered numerous “helpful” posts on the web about how what I was trying to do &lt;u&gt;was not possible&lt;/u&gt;. One such example &lt;a href=&#34;http://geekswithblogs.net/Norgean/archive/2013/05/30/functionality-unavailable.aspx&#34;&gt;here&lt;/a&gt;, which categorically stated&amp;hellip;&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint Features &#43; Renaming</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-features-renaming/</link>
      <pubDate>Wed, 05 Aug 2015 12:14:15 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-features-renaming/</guid>
      
        <description>&lt;p&gt;This is a fun one. In some of our Visual Studio solutions we use the period character - “.” - for project naming which broadly reflects the namespaces in use.&lt;/p&gt;
&lt;p&gt;However, this causes issues for Visual Studio namely in the ability to rename features. So when you create a feature, it will adopt a default name of Feature1 and it&amp;rsquo;s not possible to rename it directly from within the solution.&lt;/p&gt;
&lt;p&gt;Fortunately, there&amp;rsquo;s a nifty workaround that does appear to work, without having to redo your solution/project structure and naming convention. Found via &lt;a href=&#34;http://stackoverflow.com/questions/7168852/visual-studio-2010-sharepoint-dev-tools-can-feature1-feature-be-renamed&#34;&gt;this post&lt;/a&gt;:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Sharepoint 2010 &#43; Internal Field Name Max Length</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-internal-field-name-max-length/</link>
      <pubDate>Tue, 04 Aug 2015 13:05:27 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-internal-field-name-max-length/</guid>
      
        <description>&lt;p&gt;Little reminder about something that has just kept me busy for the last hour or so - internal field names in SharePoint lists have a max length of 32 characters. SharePoint treats this a little bizarrely - it will create the column but then truncate the internal field name. Thus is you&amp;rsquo;re doing this programmatically - and then depending on the column existing with that particular field name, things will fall over. You&amp;rsquo;ll probably see an error like&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>gnucash &#43; mysql &#43; OS X 10.10: getting it running</title>
      <link>https://matt-thornton.net/tech/databases/gnucash-mysql-os-x-10-10-getting-it-running/</link>
      <pubDate>Tue, 07 Apr 2015 15:05:53 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/databases/gnucash-mysql-os-x-10-10-getting-it-running/</guid>
      
        <description>&lt;p&gt;&lt;em&gt;This post will help you to get gnucash running with MySQL on OS X 10.10.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I do the bookkeeping and accounts for a variety of small NFPs or charitable organisations. I recently moved my bookkeeping for these from a combination of Sharepoint (seriously) and SSRS and Excel in to &lt;a href=&#34;http://gnucash.org&#34;&gt;Gnucash&lt;/a&gt;. I had been looking for a decent free app for a while and whilst there are some interesting cloud options (in fact there are a million options) I stumbled across Gnucash - a nice looking open source, cross-platform tool that would work on my Mac (without X11) and decided to go for it.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Two useful SharePoint Powershell links</title>
      <link>https://matt-thornton.net/tech/sharepoint/two-useful-sharepoint-powershell-links/</link>
      <pubDate>Fri, 22 Aug 2014 18:35:19 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/two-useful-sharepoint-powershell-links/</guid>
      
        <description>&lt;p&gt;I continue to do some work in SharePoint 2010 which means I continue to trip over weird issues.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Issue 1: Error creating content type. A duplicate content type was found.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.mattjimison.com/blog/2011/06/21/a-duplicate-content-type-found-error/&#34;&gt;Matt&lt;/a&gt; covers this issue:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If you’ve gotten this error and come to this site looking for answers, chances are it isn’t simply because the name you’re trying to give a new content type is already in use. On the contrary, you are probably sitting there saying that you know without a doubt the name you are entering is not in use, and you have probably even pounded a random value out on your keyboard just to prove the point.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Event ID: 1108 SQL Server Reporting Services cannot load the SQLPDW extension</title>
      <link>https://matt-thornton.net/tech/business-intelligence-tech/event-id-1108-sql-server-reporting-services-cannot-load-the-sqlpdw-extension/</link>
      <pubDate>Thu, 27 Feb 2014 17:33:57 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/business-intelligence-tech/event-id-1108-sql-server-reporting-services-cannot-load-the-sqlpdw-extension/</guid>
      
        <description>&lt;p&gt;This event log error will occur in Sharepoint 2010 or SharePoint 2013 environments with SQL Server 2012 and SSRS in integrated mode. You will see either&lt;/p&gt;
&lt;p&gt;“SQL Server Reporting Services Shared Service cannot load the SQLPDW extension. (Application: [service app name]. CorrelationId: etc.)”&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;“SQL Server Reporting Services Shared Service cannot load the TERADATA extension. (Application: [service app name]. CorrelationId: etc.)”&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://technet.microsoft.com/en-us/library/ms159704.aspx#TeradataException&#34;&gt;This link&lt;/a&gt; explains some of the reasoning behind it.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This error occurs because the Teradata extension is registered in the Reporting Services configuration file by default, but the Teradata assemblies are not shipped with SQL Server 2008 or as part of the .NET Framework. If the error message does not bother you, you can ignore the error when it is logged.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint list views filtered by date AND time</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-list-views-filtered-by-date-and-time/</link>
      <pubDate>Fri, 31 Jan 2014 12:41:56 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-list-views-filtered-by-date-and-time/</guid>
      
        <description>&lt;p&gt;There are a &lt;a href=&#34;http://abstractspaces.wordpress.com/2009/05/02/common-date-time-formulas-for-sharepoint-calculated-fields/&#34;&gt;huge&lt;/a&gt; &lt;a href=&#34;http://social.technet.microsoft.com/Forums/en-US/57758c23-8a4d-4160-89e6-5539d9153337/content-query-web-part-filter-problems-date-vs-datetime?forum=sharepointadminlegacy&#34;&gt;number&lt;/a&gt; of &lt;a href=&#34;http://msdn.microsoft.com/en-us/library/aa981241(v=office.14).aspx&#34;&gt;articles&lt;/a&gt; &lt;a href=&#34;http://joshmccarty.com/2011/04/using-an-offset-in-a-caml-query-to-filter-list-items-and-other-useful-caml-resources/&#34;&gt;out&lt;/a&gt; &lt;a href=&#34;http://sharepoint.stackexchange.com/questions/55436/caml-offsetdays&#34;&gt;there&lt;/a&gt; &lt;a href=&#34;http://www.sharepoint-tips.com/2009/06/using-today-token-in-caml-query.html&#34;&gt;discussing&lt;/a&gt; &lt;a href=&#34;http://nickgrattan.wordpress.com/2008/04/24/filtering-views-by-time-and-date/&#34;&gt;how&lt;/a&gt; to &lt;a href=&#34;http://stackoverflow.com/questions/745059/filtering-sharepoint-lists-on-a-now-or-today&#34;&gt;create&lt;/a&gt; (semi-) dynamic list views or filters based on some volatile property like current time. For instance: “Show me all documents that were created today” or “Show me all documents that were created more than 7 days ago” or “Show me all in tasks due in the next three days”. The solution to this is some combination of a list view filter, or calculated column, and the use of a property like [Today]. (Note: There are a couple of key &lt;a href=&#34;http://blog.pentalogic.net/2008/11/truth-about-using-today-in-calculated-columns/&#34;&gt;caveats&lt;/a&gt; to do with this.)&lt;/p&gt;
&lt;p&gt;A limitation of this, however, is that the time portion of a datetime is ignored. So when I wanted to “show all documents created in the last 10 minutes” - I couldn&amp;rsquo;t. There were a few workarounds - various combinations of calculated columns, using SharePoint Designer and so on were available - but I was determined to find a solution that didn&amp;rsquo;t require any of this!&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Debugging SharePoint 2010</title>
      <link>https://matt-thornton.net/tech/sharepoint/debugging-sharepoint-2010/</link>
      <pubDate>Tue, 14 Jan 2014 11:50:25 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/debugging-sharepoint-2010/</guid>
      
        <description>&lt;p&gt;I&amp;rsquo;m posting this here as, despite using this all the time, I still find myself looking it up.&lt;/p&gt;
&lt;p&gt;There are a couple of things you can do, in your &lt;strong&gt;Dev&lt;/strong&gt; environment, to assist with debugging SharePoint and your custom solutions.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CustomErrors and SafeMode&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This should only be used in a Dev environment, but you can disable the “friendly” error messages in SharePoint and replace them with full exceptions, and, if desirable, a stack trace.&lt;/p&gt;
&lt;p&gt;You can edit the web.config for your application. Note: SharePoint has various web.configs spewed about the place, and for this to work, you need to edit the one located in&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 workflow stuck on starting</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-workflow-stuck-on-starting/</link>
      <pubDate>Wed, 30 Oct 2013 13:20:22 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-workflow-stuck-on-starting/</guid>
      
        <description>&lt;p&gt;Using SharePoint Workflow (in fact, Nintex, but it applies to “standard” SharePoint workflow, after all, Nintex is just standard workflow with a few bells and whistles) on a document library and a workflow that is set to auto-start on document creation.&lt;/p&gt;
&lt;p&gt;The symptoms were: if you add a document to the library, then the workflow fires, but it sits forever in a state of “starting”. However, if you manually start the workflow on the same document, then it runs absolutely fine.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 &#43; SSRS Integrated mode &#43; deploy &#43; login prompt</title>
      <link>https://matt-thornton.net/tech/business-intelligence-tech/sharepoint-2010-ssrs-integrated-mode-deploy-login-prompt/</link>
      <pubDate>Wed, 02 Oct 2013 10:52:48 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/business-intelligence-tech/sharepoint-2010-ssrs-integrated-mode-deploy-login-prompt/</guid>
      
        <description>&lt;p&gt;If you try to deploy an SSRS report from Visual Studio to your SharePoint environment, where SSRS has been configured in Integrated Mode, using the built-in deployment mechanism, you may encounter a situation where you are endlessly prompted for login boxes, and no account details seem to help.&lt;/p&gt;
&lt;p&gt;There is some useful info out there about what causes this - typically a mismatch where you&amp;rsquo;re using Kerberos authentication. There&amp;rsquo;s a good post and some resolution &lt;a href=&#34;http://blogs.msdn.com/b/lukaszp/archive/2008/03/26/solving-the-reporting-services-login-issue-in-the-february-ctp-of-sql-server-2008.aspx&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Exception occured while connecting to WCF endpoint: An unsecured or incorrectly secured fault was received from the other party</title>
      <link>https://matt-thornton.net/tech/sharepoint/exception-occured-while-connecting-to-wcf-endpoint-an-unsecured-or-incorrectly-secured-fault-was-received-from-the-other-party/</link>
      <pubDate>Tue, 18 Jun 2013 09:30:00 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/exception-occured-while-connecting-to-wcf-endpoint-an-unsecured-or-incorrectly-secured-fault-was-received-from-the-other-party/</guid>
      
        <description>&lt;p&gt;When SharePoint goes bad: spurious error messages in the ULS logs that will lead you down a blind path. ULS logs were full of User Profile related errors, all saying moreorless this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Exception occured while connecting to WCF endpoint: System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. —&amp;gt; System.ServiceModel.FaultException: An error occurred when verifying security for the message&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Spent a while looking through the UPS app config, Profile DB and everything looked normal. The issue is actually a “generic” WCF error - whereby the system clocks on the App Server (1) and WFE server (2) were out of sync by about 6 minutes. Manually setting the clock on the slow one to the current time resolved the issue.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SP2010 and Managed Metadata and &amp;</title>
      <link>https://matt-thornton.net/tech/sp2010-and-managed-metadata-and/</link>
      <pubDate>Tue, 16 Apr 2013 17:40:18 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sp2010-and-managed-metadata-and/</guid>
      
        <description>&lt;p&gt;I&amp;rsquo;ve been doing some work with dynamically populating a Managed Metadata term store using the API and data stored in a list.&lt;/p&gt;
&lt;p&gt;The code was quite simple - check to see if a term existed, and if not, add it. The first pass of this routine would work fine, but then the second pass would crap out with an issue:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;There is already a term with the same default label and parent term.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;After a bit of debugging, I figured out it was falling over on a term that contained an &amp;amp; (ampersand) in the name. After a further bit of debugging (converting the character to HEX) it became apparent that it&amp;rsquo;s storing it as the wide (*pretty) rendition of the ampersand. And after some further &lt;a href=&#34;http://msdn.microsoft.com/en-us/library/ee577519%28v=office.14%29.aspx&#34;&gt;research&lt;/a&gt;, it would appear that this is by design!&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 &#43; DocumentSets &#43; OfficialFile.asmx max file size</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-documentsets-officialfile-asmx-max-file-size/</link>
      <pubDate>Thu, 07 Mar 2013 16:52:18 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-documentsets-officialfile-asmx-max-file-size/</guid>
      
        <description>&lt;p&gt;Tripped over &lt;a href=&#34;http://danmyhre.wordpress.com/2012/05/15/50mb-limit-on-files-sent-to-content-organizerofficialfile-asmx/&#34;&gt;this issue&lt;/a&gt; today. This post explains exactly what&amp;rsquo;s going on - namely that when using the OfficialFile web service (for e.g., records management), the 50mb upload file size is in place, irrespective of any setting the Web Application General Settings.&lt;/p&gt;
&lt;p&gt;Fix:&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Make sure that you have set the max file size on the web application&lt;br&gt;
Central Admin –&amp;gt; Manage Web Applications –&amp;gt; Select the Web Application –&amp;gt; General Settings –&amp;gt; Maximum Upload Size&lt;/li&gt;
&lt;li&gt;Open the following file and edit on each SharePoint server:&lt;br&gt;
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPIweb.config&lt;br&gt;
Add the following section, then save and close&lt;br&gt;
&lt;code &gt;&lt;location path=”OfficialFile.asmx”&gt; &amp;lt;system.web&amp;gt; &lt;httpRuntime maxRequestLength=”2097151″ executionTimeout=”240″ /&gt; &amp;lt;/system.web&amp;gt; &lt;/location&gt;&lt;/code&gt;&lt;br&gt;
&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;Didn&amp;rsquo;t even need to recycle the web services website/app pool. Perfect!&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Current user is not a farm administrator - redux</title>
      <link>https://matt-thornton.net/tech/sharepoint/current-user-is-not-a-farm-administrator-redux/</link>
      <pubDate>Tue, 05 Feb 2013 11:20:18 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/current-user-is-not-a-farm-administrator-redux/</guid>
      
        <description>&lt;p&gt;A while ago, I &lt;a href=&#34;https://www.matt-thornton.net/tech/sharepoint/sharepoint-2010-custom-retention-formula-installation-failure-current-user-is-not-a-farm-administrator#.UQ_lilrC9Q4&#34;&gt;posted about an issue with deploying a custom SharePoint retention policy&lt;/a&gt; where activating a feature was failing due to a permissions issue.&lt;/p&gt;
&lt;p&gt;I fell over this issue again recently, but despite following all the advice in that post, I still couldn&amp;rsquo;t get things to activate and I didn&amp;rsquo;t really want to start giving all known service accounts local admin and DBO on everything in sight. So instead, I used a quick Powershell workaround. This works because PS always runs in the context of the Farm Admin, so I assumed it must have the relevant permissions. This script will find the feature you want to activate, and then activate it. Success is no message returned!&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>The OLE DB provider Microsoft.Ace.OLEDB.12.0 for linked server (null) reported an error. Access denied.</title>
      <link>https://matt-thornton.net/tech/databases/the-ole-db-provider-microsoft-ace-oledb-12-0-for-linked-server-null-reported-an-error-access-denied/</link>
      <pubDate>Fri, 30 Nov 2012 11:11:01 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/databases/the-ole-db-provider-microsoft-ace-oledb-12-0-for-linked-server-null-reported-an-error-access-denied/</guid>
      
        <description>&lt;p&gt;I&amp;rsquo;m noting this here primarily because I&amp;rsquo;m almost certain to trip over this again in the future. If you want to use the ACE or JET providers to read an e.g., Excel spreadsheet to an e.g., SQL Server table, then something like this is possible. Assuming you had a simple Excel workbook (Book1.xlsx) and in Sheet1 you had&lt;/p&gt;
&lt;p&gt;Col1 Col2&lt;br&gt;
Test Test2&lt;/p&gt;
&lt;p&gt;You could use this to load it:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SELECT * INTO #tmpTable FROM OPENROWSET(&#39;Microsoft.ACE.OLEDB.12.0&#39;,&#39;Excel 12.0 Xml;HDR=YES;Database=C:TempBook1.xlsx&#39;,&#39;SELECT * FROM [Sheet1$]&#39;)&amp;lt;br /&amp;gt; GO&amp;lt;br /&amp;gt; SELECT * from #tmpTable&amp;lt;br /&amp;gt; &lt;/code&gt;&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Auto generate SQL audit tables and database triggers</title>
      <link>https://matt-thornton.net/tech/databases/auto-generate-sql-audit-tables-and-database-triggers/</link>
      <pubDate>Wed, 28 Nov 2012 15:56:48 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/databases/auto-generate-sql-audit-tables-and-database-triggers/</guid>
      
        <description>&lt;p&gt;One approach to monitoring version history of items in SQL tables is to use an _Audit table version with database triggers. However, the creation and maintenance of the tables and triggers can be time consuming. &lt;a href=&#34;http://www.geekzilla.co.uk/ViewECBC0CC3-1C7E-4E7E-B243-F2F259A5C920.htm&#34;&gt;This post&lt;/a&gt; provided a nice script to automate the creation but unfortunately it suffered a few issues. In the comments, someone posted a sproc version of the script - but unfortunately this was also broken.&lt;/p&gt;
&lt;p&gt;So I have tidied it up and fixed the issues. My host doesn&amp;rsquo;t let me post SQL in these posts, so you can view the file &lt;a href=&#34;https://matt-thornton.net/images/posts/createtriggers.txt&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint Designer 2010 - list/library There are no items to show in this view - ListData.svc woes</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-designer-2010-listlibrary-there-are-no-items-to-show-in-this-view-listdata-svc-woes/</link>
      <pubDate>Thu, 08 Nov 2012 17:38:38 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-designer-2010-listlibrary-there-are-no-items-to-show-in-this-view-listdata-svc-woes/</guid>
      
        <description>&lt;p&gt;This is one of &lt;em&gt;those&lt;/em&gt; SharePoint errors. You know the ones.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Background&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I was trying to use SharePoint Designer to customise a list. I opened up SharePoint Designer, and, although I could connect to the site itself, when clicking on the lists/libraries folder, you get a message saying:&lt;/p&gt;
&lt;p&gt;“There are no items to show in this view”.&lt;/p&gt;
&lt;p&gt;Weird. I tried this on various other web applications (even on the same server) and everything was working fine.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 - Managed Metadata - Required feature is not enabled for this column type</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-managed-metadata-required-feature-is-not-enabled-for-this-column-type/</link>
      <pubDate>Tue, 06 Nov 2012 19:17:23 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-managed-metadata-required-feature-is-not-enabled-for-this-column-type/</guid>
      
        <description>&lt;p&gt;Quick tip: if you&amp;rsquo;re using the Managed Metadata service in SharePoint 2010, you may encounter an issue when trying to use it in a site column. When creating the column of type, Managed Metadata, you may encounter the error message:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Required feature is not enabled for this column type&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is simple to fix. In powershell, issue&lt;/p&gt;
&lt;p&gt;&lt;code&gt;get-spfeature | where {$_.DisplayName -eq &#39;TaxonomyFieldAdded&#39;} | enable-spfeature -url http://yoursiteurl&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;changing the -url paramater to match the URL of your site. Job done.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 State Machine workflow delayActivity tip</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-state-machine-workflow-delayactivity-tip/</link>
      <pubDate>Wed, 03 Oct 2012 12:59:06 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-state-machine-workflow-delayactivity-tip/</guid>
      
        <description>&lt;p&gt;If you&amp;rsquo;re using a delayActivity in your Visual Studio State Machine workflow, you are likely to want to use the InitializeTimeoutDuration handler to set the length of the delay.&lt;/p&gt;
&lt;p&gt;An easy mistake to make is to think you could do the following:&lt;/p&gt;
&lt;pre&gt;private void DelayActivity_InitializeTimeoutDuration(object sender, EventArgs e)
        {
            delayActivity1.TimeoutDuration = new TimeSpan(0, 10, 0);
        }
&lt;/pre&gt;
&lt;p&gt;However, this won&amp;rsquo;t work. This is because SharePoint will intialise a new instance of the delayActivity with the timeoutduration specified as default. To set the TimeoutDuration of your “actual” activity, you should do the following:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 State Machine workflow onWorkflowItemChanged firing multiple times</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-state-machine-workflow-onworkflowitemchanged-firing-multiple-times/</link>
      <pubDate>Fri, 28 Sep 2012 15:53:15 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-state-machine-workflow-onworkflowitemchanged-firing-multiple-times/</guid>
      
        <description>&lt;p&gt;If you&amp;rsquo;re designing a SharePoint 2010 workflow, particularly a state machine, you may base the workflow activities around an item in a list. Particularly, you may want the workflow to carry out activities when the item is changed by the end user.&lt;/p&gt;
&lt;p&gt;This is a relatively straight-forward task, but one thing you will quickly encounter is that if you have multiple states, and each one handling the onWorkflowItemChanged event, you&amp;rsquo;ll notice that the event will fire once for each occurrence of your handler. So if you had 3 states, and each one has an onWorkflowItemChanged event, then your state that is handling the event will receive it 3 times. This is clearly undesirable and quite frankly strange behaviour.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Get SPUser from Person or Group field</title>
      <link>https://matt-thornton.net/tech/sharepoint/get-spuser-from-person-or-group-field/</link>
      <pubDate>Fri, 28 Sep 2012 10:00:40 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/get-spuser-from-person-or-group-field/</guid>
      
        <description>&lt;p&gt;On any list, you can define a new column as a type of “Person or Group”. In event handlers or workflow, you may want to grab this value as use it as a real SPUser object, which will expose the name and email address, for example. Unfortunately if you just grab the value of the field, e.g.,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;br /&amp;gt; item[&amp;quot;MyPersonField&amp;quot;]&amp;lt;br /&amp;gt; &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;you&amp;rsquo;ll end up with a string that looks a bit like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;15;#DOMAIN\Matt Thornton&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 State Machine delay activity (and why it may not fire)</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-state-machine-delay-activity-and-why-it-may-not-fire/</link>
      <pubDate>Sun, 23 Sep 2012 21:44:35 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-state-machine-delay-activity-and-why-it-may-not-fire/</guid>
      
        <description>&lt;p&gt;A common problem in designing workflows is how to make the workflow “sleep” for a period whilst users do (or don&amp;rsquo;t do) something. A common scenario is where you wait for some user input, but if you don&amp;rsquo;t get any by a certain time to continue the workflow in a different stream. You achieve this with a delay activity where you specify a timeout in the form of a Timespan.&lt;/p&gt;
&lt;p&gt;The delay activity was broken in SP2007 which was then fixed with a Hotfix. Surprisingly, this remains &lt;em&gt;kind of broken&lt;/em&gt; in SP2010 as well. That is to say, the delay activity never wakes up.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Activity onWorkflowItemChanged validation warning: The correlation token may be uninitialized</title>
      <link>https://matt-thornton.net/tech/sharepoint/activity-onworkflowitemchanged-validation-warning-the-correlation-token-may-be-uninitialized/</link>
      <pubDate>Sun, 23 Sep 2012 13:45:34 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/activity-onworkflowitemchanged-validation-warning-the-correlation-token-may-be-uninitialized/</guid>
      
        <description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;Update:&lt;/strong&gt; the below information is useful reference, but you may find it leads to undesirable results, where your workflowItem events fire repeatedly. Read the below, and then read &lt;a href=&#34;https://www.matt-thornton.net/tech/sharepoint/sharepoint-2010-state-machine-workflow-onworkflowitemchanged-firing-multiple-times&#34;&gt;this&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Working in Visual Studio 2010 and designing SharePoint 2010 state machine and sequential workflows, you may come across the following warning message when building and deploying your solution when using the onWorkflowItemChanged event:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Activity ‘onWorkflowItemChanged&amp;rsquo; validation warning: The correlation token may be uninitialized&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You will also probably notice that your workflow doesn&amp;rsquo;t respond or wake up to any onWorkflowItemChanged events. This is almost certainly due to the correlation token you&amp;rsquo;re using. The way to get this working correctly is:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Error occurred in deployment step Activate Features: Invalid file name</title>
      <link>https://matt-thornton.net/tech/sharepoint/error-occurred-in-deployment-step-activate-features-invalid-file-name/</link>
      <pubDate>Thu, 30 Aug 2012 16:29:35 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/error-occurred-in-deployment-step-activate-features-invalid-file-name/</guid>
      
        <description>&lt;p&gt;This is one of those “d&amp;rsquo;oh” SharePoint moments. Created a new SharePoint feature and used Visual Studio to deploy it. Worked like a dream. Great, I think, ready for UAT. Package up the solution, install to the UAT environment and then attempt to activate the feature. Boom.&lt;/p&gt;
&lt;img loading=&#34;lazy&#34; src=&#34;https://matt-thornton.net/images/posts/doh.png&#34; alt=&#34;&#34; title=&#34;doh#&#34; /&gt; 
&lt;p&gt;Weird. The feature was very simple so the error, as is the wont of SharePoint, was a bit unhelpful. Quick bit of Googling which didn&amp;rsquo;t help, before, thankfully, my brain engaged. I checked to see if what my feature was trying to do - create a site column and attach it to a couple of content types - had actually worked. It had.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Error occurred in deployment step Activate Features: This functionality is unavailable for field collections not associated with a list.</title>
      <link>https://matt-thornton.net/tech/sharepoint/error-occurred-in-deployment-step-activate-features-this-functionality-is-unavailable-for-field-collections-not-associated-with-a-list/</link>
      <pubDate>Thu, 30 Aug 2012 15:40:46 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/error-occurred-in-deployment-step-activate-features-this-functionality-is-unavailable-for-field-collections-not-associated-with-a-list/</guid>
      
        <description>&lt;p&gt;This follows on from some of my other posts about deploying fields and content types programmatically. In this case, I was simply trying to add a choice field (SPFieldChoice) to a site, and then add it to some content types.&lt;/p&gt;
&lt;p&gt;So I had something like:&lt;/p&gt;
&lt;pre&gt;var myCt = // snip - code to get my existing content type;

// create the choice column
                var fieldChoices = new StringCollection() { &#34;choice1&#34;, &#34;choice2&#34;, &#34;choice3&#34; };
                var docSourceField = web.Fields.Add(&#34;MyChoiceColumn&#34;, SPFieldType.Choice, false, false, fieldChoices);

                // get the column we just created 
                SPFieldChoice docSourceChoiceField = (SPFieldChoice)web.Fields[DocumentSourceColumnName];

                if (null == docSourceChoiceField)
                {
                    throw new Exception(&#34;Error: Couldn&#39;t get the docSourceChoiceField.&#34;);
                }
                                // add the new field to my content type
                myCt.Fields.Add(docSourceChoiceField);
                myCt.Update(true);
&lt;/pre&gt;
&lt;p&gt;However, running this fell over with the error:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint Event Receivers &#43; Inherited Documents &#43; ItemUpdating</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-event-receivers-inherited-documents-itemupdating/</link>
      <pubDate>Thu, 12 Jul 2012 10:27:49 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-event-receivers-inherited-documents-itemupdating/</guid>
      
        <description>&lt;p&gt;A while back I &lt;a href=&#34;https://www.matt-thornton.net/tech/sharepoint/sharepoint-event-receivers-itemadded-null-columns-fun&#34;&gt;posted&lt;/a&gt; some info about using Event Receivers in SharePoint 2010 and a workaround to item values being null. Today, I needed to do something much more basic, and during an ItemUpdating event set the value of a column. I wrote the code that I knew would work - but, of course, it simply wouldn&amp;rsquo;t work. I did a spot of Googling about, and found the chaps at Tango Technology who had written a &lt;a href=&#34;http://blog.tangotechnologygroup.com/2011/02/09/sharepoint-events-setting-a-column-value-in-the-itemupdating-event/&#34;&gt;very simple solution&lt;/a&gt; to it. But - it wouldn&amp;rsquo;t work for me. I knew the event was firing - but no matter what I did, the new value just wouldn&amp;rsquo;t “take”.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 upgrade failure - Failed to upgrade SharePoint Products</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-upgrade-failure-failed-to-upgrade-sharepoint-products/</link>
      <pubDate>Fri, 06 Jul 2012 12:02:49 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-upgrade-failure-failed-to-upgrade-sharepoint-products/</guid>
      
        <description>&lt;p&gt;I&amp;rsquo;m not a SharePoint administrator, but from time to time you have to get involved. I needed to migrate some data between farms but in order to do a backup / restore of e.g., Site Collections, version numbers have to be in range. Although the source server was reporting the version was OK, in Central Admin, it was saying that an upgrade was required. This is usually achieved by running the SharePoint 2010 Products Configuration Wizard.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Quick tip: Access Denied when editing navigation (areanavigationsettings.aspx) in MySites</title>
      <link>https://matt-thornton.net/tech/sharepoint/quick-tip-access-denied-when-editing-navigation-areanavigationsettings-aspx-in-mysites/</link>
      <pubDate>Thu, 03 May 2012 20:03:27 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/quick-tip-access-denied-when-editing-navigation-areanavigationsettings-aspx-in-mysites/</guid>
      
        <description>&lt;p&gt;If you encounter an issue, specifically in MySites, where you get an Access Denied error trying to edit the navigation, check whether you have the publishing feature enabled. I had this same issue when “Enterprise features” were re-enabled at the Central Admin, which for some reason enabled that on the My Site host, which isn&amp;rsquo;t needed.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Error activating features - key cannot be null - redux</title>
      <link>https://matt-thornton.net/tech/sharepoint/error-activating-features-key-cannot-be-null-redux/</link>
      <pubDate>Thu, 08 Mar 2012 18:10:57 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/error-activating-features-key-cannot-be-null-redux/</guid>
      
        <description>&lt;p&gt;A while ago, I &lt;a href=&#34;https://www.matt-thornton.net/tech/sharepoint/sharepoint-error-occurred-during-deployment-step-activate-features&#34;&gt;posted about&lt;/a&gt; a problem deploying declarative XML content types and fields.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Error occurred in deployment step ‘Activate Features’: Key cannot be null. Parameter name: Key&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I&amp;rsquo;ve just encountered the same error - but this time with a field being deployed programmatically - i.e., no XML at all. I was deploying a Managed Metadata field (TaxonomyField) and doing this:&lt;/p&gt;
&lt;pre&gt;TaxonomyField taxField = web.Fields.CreateNewField(&#34;TaxonomyFieldType&#34;, &#34;My Field&#34;) as TaxonomyField;
taxField.SspId = termStore.Id;
...snip...
taxField.Update();
web.Fields.Add(taxField);
&lt;/pre&gt;
&lt;p&gt;This seemed pretty reasonable - except for the error, of course. In this case it was caused by &lt;strong&gt;taxField.Update()&lt;/strong&gt; - this is not required - the field doesn&amp;rsquo;t actually exist at this point.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 &#43; Custom retention formula installation failure &#43; current user is not a farm administrator</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-custom-retention-formula-installation-failure-current-user-is-not-a-farm-administrator/</link>
      <pubDate>Tue, 06 Mar 2012 19:06:19 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-custom-retention-formula-installation-failure-current-user-is-not-a-farm-administrator/</guid>
      
        <description>&lt;p&gt;You may encounter this issue when trying to deploy a Custom Expiration Formula for use as part of records management within SharePoint 2010. The error you may encounter is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The SPPersistedObject, PolicyConfigService Name=PolicyConfigService, could not be updated because the current user is not a Farm Administrator.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is a really nasty little error and it may be easy to miss as people have a tendency to use an empty try catch {} in their FeatureActivation so the feature activates but you&amp;rsquo;re not aware there is a problem. (Well, you become aware of it when for all the activation in the world, the “Use Custom Retention Formula” dropdown never changes from disabled.) It&amp;rsquo;s particularly annoying because you&amp;rsquo;re activating a feature at the Site Collection level - why would you need Farm Admin to do it? Well, it&amp;rsquo;s because it makes changes to the Content Service (or thereabouts) - and this is proven when you go to Central Admin &amp;gt; Security &amp;gt; Configure Information Policy Management &amp;gt; Retention and you&amp;rsquo;ll notice (after a successful activation) that your custom policy shows up in the “Resources” section.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 &#43; Search within document sets</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-search-within-document-sets/</link>
      <pubDate>Mon, 05 Mar 2012 15:15:43 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-search-within-document-sets/</guid>
      
        <description>&lt;p&gt;I could play a game of “state the obvious” and say that SharePoint 2010 search is powerful. It&amp;rsquo;s really an incredible beast - and that&amp;rsquo;s even without any FAST goodies in there. But something that isn&amp;rsquo;t obviously supported OOTB but seems there&amp;rsquo;s a few people out there trying to do - search &lt;strong&gt;within&lt;/strong&gt; folders, or in my case, Document Sets. SharePoint search was already configured and, actually, I &lt;em&gt;could&lt;/em&gt; search within document sets, by doing a site wide search and then using the refinement panel (on the left hand side of a search result page in a search center) to narrow it down to my document set. What I wanted to do was perform this search directly from a search box.&lt;/p&gt;
&lt;p&gt;As you use the refinement panel, you&amp;rsquo;ll notice that the URL changes, as you stack up the filters, and as it happens, that&amp;rsquo;s all that&amp;rsquo;s required is a properly crafted URL:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;br /&amp;gt; http://yoursite/_layouts/OssSearchResults.aspx?k=[searchterms] &amp;lt;strong&amp;gt;site:&amp;quot;http://yoursite/yourlibrary/yourdocset&amp;quot;&amp;lt;/strong&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Note the highlighted part - you can restrict your search results to a specified document set (or folder) by supplying the URL in to the &lt;strong&gt;site:&lt;/strong&gt; refinement option/filter.&lt;/p&gt;
&lt;p&gt;With that bit taken care of, the challenge was to get a searchbox that would do this dynamically - i.e., craft the URL properly to apply the filter and direct through to the search results page properly. It&amp;rsquo;s possible using a standard search box and the trusty old Content Editor.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint Event Receivers &#43; ItemAdded &#43; Null Columns fun</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-event-receivers-itemadded-null-columns-fun/</link>
      <pubDate>Fri, 02 Mar 2012 18:24:06 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-event-receivers-itemadded-null-columns-fun/</guid>
      
        <description>&lt;p&gt;Event receivers enable you to run some action when a particular event occurs. For example, every time a new item is added to a list, you may want to run some code, or start a workflow. This is really handy - but be aware of some gotchas. SharePoint event receivers will generally be one of two types - an “-ing” event or an “-ed” event, such as ItemAdding or ItemAdded. As their name suggests, an -ing event runs &lt;em&gt;whilst&lt;/em&gt; the the event is happening (and might therefore give you the option to cancel it) and -ed events occur &lt;em&gt;after&lt;/em&gt; the event has occurred. You need to be aware of how these events run. Generally, the -ing events run &lt;em&gt;synchronously&lt;/em&gt;, that is, they are blocking and run in the same thread/cycle that they were generated in, and -ed events run &lt;em&gt;asynchronously&lt;/em&gt;, meaning the opposite - they are not blocking - they will be run in a separate thread and not block the execution of the main thread. You therefore need to be aware of what info may, or may not, be available to you when you run code in an event receiver.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Web Service access &#43; internal traffic &#43; 407 Proxy Authentication Required</title>
      <link>https://matt-thornton.net/tech/web-service-access-internal-traffic-407-proxy-authentication-required/</link>
      <pubDate>Fri, 02 Mar 2012 14:35:11 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/web-service-access-internal-traffic-407-proxy-authentication-required/</guid>
      
        <description>&lt;p&gt;This had me stumped for a while. I was developing a SharePoint-based client to consume a simple web service. I started by writing a console app version of the code before deploying to SharePoint. Fairly straight-forward - added a web reference to my VS2010 project, and used&lt;/p&gt;
&lt;pre&gt;MyWebService srv = new MyWebService();
srv.DoSomething();
&lt;/pre&gt;
&lt;p&gt;Early on in the project, I didn&amp;rsquo;t give much to the fact that when calling the method on the web service, I was given a 407 Proxy Authentication Error. I just setup a simple proxy for it:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Creating SharePoint 2010 Content Organizer Rules programmatically</title>
      <link>https://matt-thornton.net/tech/sharepoint/creating-sharepoint-2010-content-organizer-rules-programmatically/</link>
      <pubDate>Thu, 23 Feb 2012 13:43:01 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/creating-sharepoint-2010-content-organizer-rules-programmatically/</guid>
      
        <description>&lt;p&gt;The Content Organizer (gah! Organi&lt;strong&gt;s&lt;/strong&gt;er!) in SharePoint 2010 is a nifty new feature that enables documents to be added to a single library (the “Drop Off Library”) and then let SharePoint &lt;em&gt;route&lt;/em&gt; them through to the correct final resting position based on a set of configured rules. Rules can be configured per content type and allow conditions to be set based on metadata on the item. You can even use it to send documents - and document sets - between site collections, e.g., to a Records Center. Very cool.&lt;/p&gt;
&lt;p&gt;Depending on your requirements, you may find you need to create a lot of rules which as with most things SharePoint can be cumbersome if you need to do it all through the UI. Fortunately, creating the rules programmatically is straight-forward.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Quick tip: SharePoint powershell - get items in a list based on custom columns and other hints</title>
      <link>https://matt-thornton.net/tech/powershell-tech/quick-tip-sharepoint-powershell-get-items-in-a-list-based-on-custom-columns-and-other-hints/</link>
      <pubDate>Tue, 14 Feb 2012 12:35:49 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/powershell-tech/quick-tip-sharepoint-powershell-get-items-in-a-list-based-on-custom-columns-and-other-hints/</guid>
      
        <description>&lt;p&gt;This may be handy when trying to find specific items in a list based on values of various fields:&lt;/p&gt;
&lt;pre&gt;$web = Get-SPWeb http://yourweb
$list = $web.Lists[&#34;Your Library Name&#34;]

// this is the bit - get items of a particular content type
// ? is shorthand for where, and $_ is the item in the pipeline
$listItems = $list.Items | ?{$_.ContentType.Name -eq &#34;Content Type Name&#34;}

// or items based on a custom column - if using -like then the wildcard is *
$listItems = $list.Items | ?{$_[&#34;InternalFieldName&#34;] -like &#34;*this*&#34;

// you could join them up using -and
$listItems = $list.Items | ?{$_.ContentType.Name -eq &#34;Content Type Name&#34; -and $_[&#34;InternalFieldName&#34;] -like &#34;*this*&#34;

// or iterate the loop and print them out
foreach($item in $listItems) { Write-Host $item.Name, $item[&#34;InternalFieldName&#34;] }

or more directly

$list.Items | ?{$_.ContentType.Name -eq &#34;Content Type Name&#34; -and $_[&#34;InternalFieldName&#34;] -like &#34;*this*&#34; | foreach { $_.Name, $_[&#34;InternalFieldName&#34;]

// or count them
$listItems.Count

or

$list.Items | ?{$_.ContentType.Name -eq &#34;Content Type Name&#34; -and $_[&#34;InternalFieldName&#34;] -like &#34;*this*&#34; | foreach {$count++}
$count
&lt;/pre&gt;
&lt;p&gt;Powershell can be infuriating - but when you find the syntax, it can be pretty helpful.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SSRS error: Operation is not valid due to the current state of the object</title>
      <link>https://matt-thornton.net/tech/ssrs-error-operation-is-not-valid-due-to-the-current-state-of-the-object/</link>
      <pubDate>Fri, 10 Feb 2012 12:27:50 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/ssrs-error-operation-is-not-valid-due-to-the-current-state-of-the-object/</guid>
      
        <description>&lt;p&gt;If you&amp;rsquo;re using SSRS in SharePoint integrated mode, you may come across this error when using report parameters that have a high number of items in them. A &lt;a href=&#34;http://technet.microsoft.com/en-us/security/bulletin/MS11-100&#34;&gt;recent security bulletin&lt;/a&gt; highlighted some issues and vulnerabilities in ASP.net, and a patch was released to cover some of the items. One of these was the maximum number of items you can have in a collection. If you exceed the limit, then you&amp;rsquo;ll likely get an error like:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010 Foundation &#43; SQL Server Reporting Services Integrated mode installation issues: Failed to establish connection with report server, 401 errors and more</title>
      <link>https://matt-thornton.net/tech/databases/sharepoint-2010-foundation-sql-server-reporting-services-integrated-mode-installation-issues-failed-to-establish-connection-with-report-server-401-errors-and-more/</link>
      <pubDate>Thu, 09 Feb 2012 18:50:28 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/databases/sharepoint-2010-foundation-sql-server-reporting-services-integrated-mode-installation-issues-failed-to-establish-connection-with-report-server-401-errors-and-more/</guid>
      
        <description>&lt;p&gt;You may be trying to set up SharePoint 2010 to act as the report repository for SQL Server Reporting Services report. This is a pretty nifty feature, especially as it&amp;rsquo;s available in the Foundation (i.e., Free) version of SharePoint. There is a &lt;a href=&#34;http://msdn.microsoft.com/en-us/library/bb677365.aspx&#34;&gt;pretty exhaustive guide&lt;/a&gt; on how to set it up and for extra help, this &lt;a href=&#34;http://blogs.msdn.com/b/psssql/archive/2011/02/18/sharepoint-adventures-setting-up-reporting-services-with-sharepoint-integration.aspx&#34;&gt;blog post&lt;/a&gt; is pretty good too, and if you follow the steps, you get pretty far. However, if you&amp;rsquo;re in a multiple server setup (i.e. your SQL server isn&amp;rsquo;t on the same server as your Central Admin) you will likely encounter configuration issues surrounding authentication, and there is a great deal of confusion about what it all means - especially when it comes down to Kerberos. That&amp;rsquo;s beyond the scope of this post - what I&amp;rsquo;m covering here is one very annoying issue that there was no definitive answer to on the web.&lt;/p&gt;
&lt;p&gt;Assuming you get all the server parts setup and Reporting Services configured, you might find that you can browse to your report server address on the machine hosting reporting services, but, if you try to browse to that address from anywhere else, you&amp;rsquo;ll get an endless stream of login boxes, and no credentials will work. Also, if you go to Central Admin and go to General Application Settings &amp;gt; Reporting Services Integration, when you fill in the details to connect to reporting services, you&amp;rsquo;ll hit an error like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Failed to establish connection with report server. Verify the server URL is correct or review ULS logs for more information. Product area: SQL Server Reporting Services, Category: Configuration Pages&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;and, in the ULS logs, an error like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;SQL Server Reporting Services Configuration Pages Failed to retrieve RS configuration information: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Here&amp;rsquo;s &lt;del datetime=&#34;2012-02-09T18:19:01+00:00&#34;&gt;how I fixed it&lt;/del&gt; my workaround.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>The search service is not able to connect to the machine that hosts the administration component</title>
      <link>https://matt-thornton.net/tech/sharepoint/the-search-service-is-not-able-to-connect-to-the-machine-that-hosts-the-administration-component/</link>
      <pubDate>Tue, 24 Jan 2012 11:37:58 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/the-search-service-is-not-able-to-connect-to-the-machine-that-hosts-the-administration-component/</guid>
      
        <description>&lt;p&gt;Another example of “when SharePoint goes wrong.” On a dev machine, the search service mysteriously stopped working. I can&amp;rsquo;t pinpoint what caused it, but SP1 and a CU were recently applied and these seem like good candidates for breaking things. When trying to admin the search service, you would see the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component ’{guid}′ in search application ‘Search Service Application’ is in a good state and try again.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;hellip;and trying to modify the topology of the search, resulted in a spurious error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;An unhandled exception occurred in the user interface.Exception Information: Exception has been thrown by the target of an invocation.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Something was clearly unhappy. Rather than waste too much time, the simplest solution seemed to be to &lt;a href=&#34;http://davidbajak.com/blog/post/2011/09/29/Fix-SharePoint-2010-Enterprise-Search-After-Using-AutoSPInstaller-Script-Installer.aspx&#34;&gt;delete the search application and recreate it&lt;/a&gt;, which I duly did, via Central Admin, verified that DBs and application pools disappeared and recreated the search application, using new names and credentials. Same error. I &lt;del datetime=&#34;2012-01-24T11:23:40+00:00&#34;&gt;wasted&lt;/del&gt; spent some looking at permissions and the usual array of logs, events and other candidates, ran PSConfig and other upgrades, all to no avail.&lt;/p&gt;
&lt;p&gt;I figured I could create the search application via Powershell. Why should this make a difference? No idea, but worth a shot. Then thankfully, I found &lt;a href=&#34;http://blogs.msdn.com/b/russmax/archive/2009/10/20/sharepoint-2010-configuring-search-service-application-using-powershell.aspx&#34;&gt;that someone had already done it for me&lt;/a&gt;. And yes, this resolved the issues. I can&amp;rsquo;t explain why seeing as this script shouldn&amp;rsquo;t do anything that the GUI doesn&amp;rsquo;t do.&lt;/p&gt;
&lt;p&gt;Script:&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Error formatting query, probably invalid parameters [SQLSTATE 42000] (Error 22050)</title>
      <link>https://matt-thornton.net/tech/databases/error-formatting-query-probably-invalid-parameters-sqlstate-42000-error-22050/</link>
      <pubDate>Mon, 12 Dec 2011 16:28:55 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/databases/error-formatting-query-probably-invalid-parameters-sqlstate-42000-error-22050/</guid>
      
        <description>&lt;p&gt;I just tripped over this problem, and despite a fair amount of Googlage, I didn&amp;rsquo;t find anything that directly resolved my issue. I was trying to use dbMail in SQL Server 2008 to send an email on a schedule which included the results of a query. Doing this should be fairly straightforward, by executing the sp_send_dbmail stored procedure, which is in MSDB:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://matt-thornton.net/images/posts/Screen-shot-2011-12-12-at-16.27.36.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://matt-thornton.net/images/posts/Screen-shot-2011-12-12-at-16.27.36.png&#34; alt=&#34;&#34; title=&#34;Screen shot 2011-12-12 at 16.27.36&#34; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This query works fine in SSMS, but when run as a SQL Server Agent Job, it fails, with the error&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Useful SharePoint script to restart SharePoint services and IIS</title>
      <link>https://matt-thornton.net/tech/sharepoint/useful-sharepoint-script-to-restart-sharepoint-services-and-iis/</link>
      <pubDate>Fri, 02 Dec 2011 17:40:36 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/useful-sharepoint-script-to-restart-sharepoint-services-and-iis/</guid>
      
        <description>&lt;p&gt;A SharePoint developer&amp;rsquo;s life is filled with many things, but one of the most common is the old faithful iisreset, coupled with a reset of the Timer Service and the Admin Service. When you&amp;rsquo;re working on timer jobs, it can get tedious quickly to have to  keep resetting things.&lt;/p&gt;
&lt;p&gt;So I&amp;rsquo;m sharing a useful batch script I knocked together to do it for you. It will perform three functions - restart the SharePoint 2010 Timer Service, the SharePoint 2010 Administration Service and do an IISReset. It will prompt you if you want to do each of them, and if you don&amp;rsquo;t reply within 5 seconds automatically do it.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Configuring certificates and trust in SharePoint 2010 for accessing Exchange Web Services</title>
      <link>https://matt-thornton.net/tech/exchange-web-services/configuring-certificates-and-trust-in-sharepoint-2010-for-accessing-exchange-web-services/</link>
      <pubDate>Wed, 09 Nov 2011 15:38:22 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/exchange-web-services/configuring-certificates-and-trust-in-sharepoint-2010-for-accessing-exchange-web-services/</guid>
      
        <description>&lt;p&gt;Exchange is built on web services and as I &lt;a href=&#34;https://www.matt-thornton.net/tech/sharepoint/exchange-web-services-and-reading-an-emailmessage-to-memory&#34;&gt;posted about&lt;/a&gt; a while about accessing EWS from SharePoint can be pretty neat. There is a &lt;a href=&#34;http://msdn.microsoft.com/en-us/library/dd637749(v=exchg.80).aspx&#34;&gt;managed API&lt;/a&gt; to make your life even easier. However, one issue you may come across is actually getting SharePoint and Exchange to talk nicely to each other. This will walk you through some of the steps required to get things going.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>SharePoint 2010: The filename, directory name, or volume label syntax is incorrect</title>
      <link>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-the-filename-directory-name-or-volume-label-syntax-is-incorrect/</link>
      <pubDate>Mon, 07 Nov 2011 12:25:33 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/sharepoint/sharepoint-2010-the-filename-directory-name-or-volume-label-syntax-is-incorrect/</guid>
      
        <description>&lt;p&gt;This is a peculiar little bug. When creating a List Definition, you may encounter the following error when you try to deploy:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The filename, directory name or volume label syntax is incorrect.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It took a while to track the cause, seeing as a lot of info out there info out there relates to things to do with file systems, which in this case, obviously wasn&amp;rsquo;t the cause.&lt;/p&gt;
&lt;p&gt;The bug for me was that I had created a List Definition and called it My.List.Definition - notice the multiple periods. I wanted it to match the namespaces that we were using. It turns out that the second period trips it up. When you create a List Definition with multiple periods, the List Definition only gets the first period, e.g., My.List, whereas the Elements.xml file for the List Definition still references My.List.Definition - hence it can&amp;rsquo;t deploy properly.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Famous. Again.</title>
      <link>https://matt-thornton.net/general/personal/famous-again/</link>
      <pubDate>Mon, 15 Sep 2008 19:51:51 +0000</pubDate>
      
      <guid>https://matt-thornton.net/general/personal/famous-again/</guid>
      
        <description>&lt;p&gt;Ahh, the pressures of being a cricketing supergod. Perhaps not.&lt;/p&gt;
&lt;p&gt;But still, it&amp;rsquo;s always nice to get written up in the paper. ESPECIALLY when they get your name right. (Third time lucky.)&lt;/p&gt;
&lt;img width=&#34;150&#34; height=&#34;150&#34; src=&#34;https://matt-thornton.net/images/posts/img053.jpg&#34; class=&#34;attachment-thumbnail size-thumbnail&#34; alt=&#34;&#34; loading=&#34;lazy&#34; /&gt;
&lt;img width=&#34;150&#34; height=&#34;150&#34; src=&#34;https://matt-thornton.net/images/posts/img054.jpg&#34; class=&#34;attachment-thumbnail size-thumbnail&#34; alt=&#34;&#34; loading=&#34;lazy&#34; /&gt;</description>
      
    </item>
    
    <item>
      <title>Matt on BBC website</title>
      <link>https://matt-thornton.net/general/cricket/matt-on-bbc-website/</link>
      <pubDate>Mon, 01 Sep 2008 19:10:28 +0000</pubDate>
      
      <guid>https://matt-thornton.net/general/cricket/matt-on-bbc-website/</guid>
      
        <description>&lt;p&gt;OK, so it&amp;rsquo;s nothing major, but I got a &lt;a href=&#34;http://news.bbc.co.uk/sport1/hi/cricket/7567748.stm&#34;&gt;small mention&lt;/a&gt; on the sport section of the BBC website, as part of its coverage of the Channel Islands Cup, in which I am playing, for PKF Wanderers.&lt;/p&gt;
&lt;p&gt;The standard of cricket we play in Guernsey is very good and it&amp;rsquo;s right that the BBC monitor the CI Cup. Wanderers this year have an excellent chance of winning it, and it would be a fantastic achievement to do so. The semi-final last week was &lt;a href=&#34;http://news.bbc.co.uk/sport1/hi/cricket/7598220.stm&#34;&gt;washed out&lt;/a&gt;, so we&amp;rsquo;ll try again this weekend. We&amp;rsquo;re strong favourites to win, which will most likely set up a final with arch-rivals (and Guernsey-based) Cobo who are unbeaten in all forms of cricket this season.&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Matt&#39;s travel blog is a go</title>
      <link>https://matt-thornton.net/travel/home/hello-world/</link>
      <pubDate>Thu, 04 Oct 2007 14:23:52 +0000</pubDate>
      
      <guid>https://matt-thornton.net/travel/home/hello-world/</guid>
      
        <description>&lt;p&gt;Well, hello. And, of course, welcome. Thanks for stopping by. I don&amp;rsquo;t know who you are, or why you happen to be looking at my wee spot ‘o&amp;rsquo; t&amp;rsquo;Interweb, but nevertheless, thanks for being here. And for being you. Because without you, none of this would be possible. Fortunately, you *are* you, and this *is* possible, which is where we find ourselves, around about now.&lt;/p&gt;
&lt;p&gt;What &lt;em&gt;this&lt;/em&gt; is though, perhaps requires some definition. Alternatively it&amp;rsquo;s painfully obvious: it&amp;rsquo;s my travel blog. The _we_blog I am keeping, or, at least, endeavouring, to keep, whilst I am away travelling.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>