Everything SharePoint/Silverlight/WP7

My continuous learning of SharePoint, Silverlight, WP7 Development, Office, VSTO, C#…

Archive for April 16th, 2009

Links (4/16/2009)

Posted by Steve Pietrek on April 16, 2009

SharePoint

  1. Inconvenient programmatically working with SharePoint users (SPWeb.EnsureUser)
  2. Office SharePoint Server 2007 and SQL Server 2008 – Better Together!
  3. Fixing MOSS Search
  4. Call for Speakers – SharePoint Saturday Chicago – June 13, 2009 – I put my name into the hat
  5. Microsoft Update Product Team Blog : Service Pack 2 for 2007 Microsoft Office System due April 28th
  6. SharePoint 2007 Service Pack 2 Required for 2010 Upgrade
  7. SharePoint Server 2010 Naming is Official
  8. Programmatically create and configure Mail Enabled lists
  9. Custom Field Type Properties in SharePoint : Buggy or Not?
  10. SharePoint Field Names have 32 Character Limit – So Do Replicated Profile Property Names
  11. Troubleshooting the SharePoint “File not found” Error
  12. Released: SharePoint Data Zoom Web Part 1.0.9104.2
  13. Walking the SharePoint Object Model
  14. Want a color coded SharePoint calendar?
  15. Hide the column header in web parts
  16. How to Retain/Preserve “Modified By” while checking in a file
  17. Change URL for a Document Library
  18. SharePoint: Customizing standard forms
  19. “Title” field issue with Document Information Panel
  20. Office release date for WSS 3.0/MOSS Service Pack 2 has been announced
  21. SharePoint Data Zoom: Handling Complex List Field Types
  22. Forcing InfoPath forms to load in web browser view from form library web parts
  23. Alternative to using a CEWP to “embed” videos in SharePoint list items
  24. Programmatically configure the Small Search Box to show scopes
  25. Video: BackSeat Driving With Michael – OneNote And SharePoint
  26. Contains Operator disappeared from Advanced Search
  27. Increase SharePoint Execution Timeout
  28. Silverlight and SharePoint Made Real…
  29. SPSource Webcast: Reverse engineer Lists to ListTemplates and much more
  30. Imtech SharePoint Gems: SPUrlExpressionBuilder
  31. Customize Look And Feel With Calculated Columns
  32. Format the Date field on SharePoint Layout Pages
  33. Wiki-in-the-Box – Is SharePoint Wiki Really that Bad?
  34. 8 Steps to create workflows using SharePoint designer
  35. Automating Word to PDF Conversion in SharePoint
  36. SharePoint 2007: Update system properties (Created, Created By, Modified, Modified By)

Office

  1. How to merge two or more Word 2003 or Word 2007 XML documents into one Word 2007 XML document.

Posted in SPLinks | Leave a Comment »

The file ‘xxx’ is checked out or locked for editing by someone else

Posted by Steve Pietrek on April 16, 2009

I have been building out a POC for a future project. To expedite feedback, the client asked for us to record the end-user experience. One of the areas I wanted to focus on was the process of collaborating on documents. This includes:

  1. Content approval
  2. Major versions
  3. Require check out before editing

After setting these options in Actions > Document Library Settings > Versioning settings, I also wanted to demonstrate the process of checking out a document, editing the spreadsheet in Excel, checking the document back into SharePoint. The client is also interested in saving the files to the local drafts folder so work can be done offline. Easy enough. I then went through the following process:

  1. Opened the site
  2. For the desired file, selected “Edit in Microsoft Office Excel” from the ECB.
  3. Entered my credentials in Excel.
  4. Made desired changes to spreadsheet.
  5. Saved spreadsheet.
  6. Closed spreadsheet and was prompted to check the document in. Selected Yes.
  7. Entered a version comment and WHAM!!!, I received the following error.

image

Now this is confusing to me. I logged in as user1 into SharePoint and entered user1’s credentials into Excel when prompted. So it thinks it is checked out to someone else. Very interesting.

I proceeded to discard the checkout and try again but was met with the same error. I was testing the process in my VM (Windows Server 2008) so I switched over to my host (Windows 7) and ran through the same process (calling into my VM). It worked!!! So what is different?

  1. Operating systems are different. Duh.
  2. They are both running IE 8.
  3. The IE8 settings are the same.
  4. Could it be a service difference? Compared services and saw one difference. The Windows Server 2008 client had the WebClient service enabled and the Window 7 client did not. Hmmm. I disabled the service and ran through the process. It now works!!!!

A few notes:

  1. The reason I had the WebClient service enabled was issues I was seeing with Excel Services and not being able to publish from Excel. Sigh.
  2. I was running into an issue a few weeks ago where my SPD workflow would not start when an item was created or changed. I was using IE7 at the time and upgraded to IE8 and the problem went away. It did work in Firefox 3.0 and IE6 (through IETester). Not sure if it was related or now.
  3. I am still running into issues where if I don’t check the document in through Excel, when I attempt to check the document in through the SharePoint UI, I receive the error “This document was checked out to your local drafts folder but the local copy could not be checked in to the site.”. (see full error below)

 

image

 

Guess it’s the price you pay for developing in a Server OS.

Posted in SPErrors | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.