Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Category: You Learn Something New Every Day

Proof that you do actually learn something new every day.

SharePoint 2010–“Upload Multiple Pictures” doesn’t load Picture Manager

Posted on February 4, 2011February 19, 2015 by Iain 'Cutty' Carlin

After upgrading from SP2007 to SP2010, my “Upload Multiple Pictures’ option didn’t work on any picture libraries. It would just redirect me to the “If you have not finished uploading the pictures, switch to the picture editor and finish uploading. When you have finished, close the picture editor, and click the link below.” page but not launch Picture Manager.

The fix – run Picture Manager manually from the start menu, then go Help –> Detect and Repair. Once the repair is finished it worked fine.…

+

‘SnippetElement’ is null or not an object error.

Posted on January 31, 2011February 19, 2015 by Iain 'Cutty' Carlin

I upgraded an InfoPath 2007 form to 2010. Users were getting a javascript error when submitting the form. The error was “’SnippetElement’ is null or not an object.”.

I did a few things to try and resolve the error. Recreated all my data connectors, re-published the form several times, all to no avail.

Finally, I ran the javascript debugger in IE and found that the error related to a problem with some code in core.js. There was a function that was trying to get the ‘SnippetElement’ from the submit button on the form.

I’m not sure what that means, but I checked the submit action for the form and found that “Show the Submit button in both the Ribbon and the Info tab in the InfoPath Filler.”…

+

jQuery and SharePoint 2010 upgrade

Posted on January 18, 2011February 19, 2015 by Iain 'Cutty' Carlin

Tripped me up for a whole day this one. We have a number of content editor web parts on our intranet home page. One was working, three others that used the jquery ui were not.

I checked that all the paths to the js and css files were there and valid. All OK (excepting that we hadn’t copied the jquery.min.js file into the layouts folder).

Problem turned out to be that in upgrading the content editor script, the html bits were stripped out. Each contained a javascript part and a html part.

I converted each to files, added the html back in and then linked to the newly uploaded file.…

+

lists.asmx updatelistitems the security validation for this page is invalid

Posted on November 17, 2010February 18, 2015 by Iain 'Cutty' Carlin

And the answer was here: http://weblogs.asp.net/jan/archive/2009/05/25/quot-the-security-validation-for-this-page-is-invalid-quot-when-calling-the-sharepoint-web-services.aspx…

+

Creating Sub-sites via Web Service in SharePoint

Posted on November 3, 2010February 18, 2015 by Iain 'Cutty' Carlin

Who would have thought that to create a sub-site you don’t use the admin.asmx web service, rather the meetings.asmx service.

After a day of friggin’ about using admin (because everything I read on the web said it was the one to use to create a site!), I stumbled across a blog post that told me I should be using meetings.asmx, because admin.asmx is only for creating Site Collections!

Yet another DUH! moment from Microsoft, or is it just me that thinks using a web service called meetings is not that obvious as the container of a method to create sub-sites….…

+

InfoPath–Kerberos broke GetUserProfileByName

Posted on November 2, 2010February 20, 2015 by Iain 'Cutty' Carlin

I have an InfoPath form that was working.

It uses the SharePoint GetUserProfileByName method to get the user’s details to populate fields on the form. The form, that was working, recently stopped working giving the error: “The following query failed: GetUserProfileByName” and words to the effect that the user is unauthorised.

Strangely enough it turns out the solution was related to a previous post here where a web service could not be accessed because the web.config dynamic value for the web service set the site back to the root site.

My form was pointing to the root site for the web service.…

+

Using Word to edit SharePoint blogs–need to give Approver permissions

Posted on October 29, 2010February 19, 2015 by Iain 'Cutty' Carlin

This has tripped me up twice now.

When you want people to be able to edit a blog using Word as the editor, you must give them Approver permissions as well as Contribute in order to be able to publish.

Otherwise Word gives an error.…

+

Using ApplicationName in .Net SQL connection strings

Posted on October 29, 2010February 18, 2015 by Iain 'Cutty' Carlin

A great idea.

If you add the parameter “Application Name” to your SQL connection string then you can use Application Name to filter the SQL profiler results.

Much easier than having to find the dbid etc.…

+

Getting List Items from SharePoint list

Posted on October 26, 2010February 18, 2015 by Iain 'Cutty' Carlin

Today I am trying to populate an ASP.Net drop down list from the contents of a SharePoint list using the Lists web service.

I found this Microsoft page that was most useful in helping me to do that: http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems.aspx

A couple of issues I struck that are mentioned in the article:

  • I was getting a SOAP error saying “Guid should contain 32 digits with 4 dashes”. As mentioned in the above article this is due to Visual Studio putting a web reference in Web.config to the top level site rather than the sub-site in which the list exists.
  • Once the above was fixed, I got a second error: “InvalidOperationException: Client found response content type of ‘text/html; charset=utf-8’, but expected ‘text/xml’”.
…
+

Who would have thought InfoPath was so picky…

Posted on September 27, 2010February 18, 2015 by Iain 'Cutty' Carlin

My relationship with InfoPath is love hate. On the one hand it’s so easy to create web forms on the other some of the simplest tasks are incredibly difficult.

Take today’s task – putting a simple URL on a form to open a Nintex workflow page for the form. InfoPath lets you put a URL on a form, but you can only have a static URL or populate it from a data source. The data source must have the full URL.

Easy, make the full URL a calculated field…except that calculated fields can’t user ID as one of the fields. In the end I put a button on the form.…

+
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Recent Posts

  • 2024 was the best year for our solar system
  • Books I read in 2024
  • Books I read in 2023
  • Happy New Year 2024
  • Lawson – A life in words and music

Categories

  • Chryslers (1)
  • Cutty's Blog (12)
  • Lutherie (38)
  • You Learn Something New Every Day (43)
©2025 Cutty | Powered by Superb Themes