Friday, November 2, 2012

Why I Hate SharePoint #4

You would think that after I had been using SharePoint for a while the rate of discovery of bugs and issues should go down. You'd think but...

Oh well. I just thinking about all the sin I'm in credit for because of all this penance I'm serving having to work on this product.

1. Event List Webpart Issue

This one is so peculiar I'm having trouble narrowing down. I can reliably make it happen when I have the following in the same webpart zone in order:
  1. a content editor webpart
  2. another content editor webpart
  3. an announcement list webpart
  4. a calendar webpart that I then make the following changes to:
  • Change the web-part view to use Current Events
  • Edit the current view to just select Title, Start Time & Location
  • Change the title link to specifically jump to the Current Events view of the list rather than calendar
 And then suddenly the web-part appears as if it was minimised. From this point on nothing seems to be able to fix it (and yes I tried to minimize then un-minimise it. Looking at the HTML that results, the content of the webpart is just not being rendered. This one is driving me nuts. I've been trying to take other bits out to reduce what is needed to make this happen but to no avail. The next thing I'll try is to recreate the problem again and see if there is any error in the log but I only have limited time to work on this issue.

2. Conflict Update Error

Our deployment PowerShell scripts works fine most of the time but occasionally we get the error "An Update Conflict has occurred, and you must retry this action."

We have had it intermittently in one environment with the New-SPContentDatabase command, and in another we had it with a New-SPManagedPath.

It's the sort of error I would expect if I was using optimistic locking and somone has changed the record I was working on between the point where I read the record for editting and the point where I went to save the editted record back. That's just a guess.

My thoughts are that the PowerShell commandletts themselves probably have some assumptions on the sequence of events occuring and sometimes that assumption proves to be incorrect. To be honest, I think this is a little unfair. How about the commandlet itself does a few of the retry attempts itself and try to be a little more robust, or just not assume stuff and do some checking first.

I can't explain just how difficult life becomes when you get intermittent errors in your deployment scripts and there doesn't seem to be any logical way to address it. 


No comments:

Post a Comment