Archive for the ‘Uncategorized’ Category
Custom edit forms breaking if workflows or custom event receivers/handlers are attached.
This has been documented elsewhere, but just in case you missed it…
Scenario: You have a custom editform.aspx where you made it all snazzy looking and then you decide to add a custom workflow or event handler to the list to handle data validation or business logic. When you try to submit updates you get a nasty error that looks like this:
The data source control failed to execute the update command.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control failed to execute the update command.
Source Error:
|
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
[DataFormWebPartException: The data source control failed to execute the update command.] Microsoft.SharePoint.WebPartPages.DataFormWebPart.UpdateCallback(Int32 affectedRecords, Exception ex) +170 System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +4434003 Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +724 Microsoft.SharePoint.WebPartPages.DataFormWebPart.PerformCommit() +92 Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +61 Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +1906 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +50 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +39 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +321 |
Solution: Even though my server had the SP1 and the Infrastructure Update, I was still getting this error. Luckily, there’s a hotfix from March 2008 for this issue - http://support.microsoft.com/kb/949749
Catching your own airball in basketball is not travelling nor illegal
This is totally off-topic but I just had to get this off my chest. I play a lot of basketball. I also used to ref for 5 years. It never ceases to amaze me how many people think that it is illegal to catch your own airball if it was a legitimate shot attempt. I bet you didn’t know that did you? I hate it and I’m here to dispell what I call the biggest myth in basketball.
We’ve all grown up playing playground basketball thinking that if you airball a shot you can’t touch the ball again mainly due to the NBA. The NBA is the only league in the world in which this is a true violation. Not in the NCAA, not in Junior College, not in Intramural Sports, not in High School, not in City Leagues and certainly not Streetball! So the next time you’re out on the courts, educate all those haters. Catching your own airball is not travelling nor is it illegal!
References:
http://en.wikipedia.org/wiki/Traveling_%28basketball%29
http://www.dallasref.com/pdf_files/most_misunderstood_basketball_rules.pdf - (#7)
http://www.longislandbasketball.com/AskTheRef2.html - (Last question at the bottom of the page)

