Satya Kanithi's Professional Blog

September 7, 2010

Application Error in EditForm of External List using custom BCS solution in SharePoint 2010

Filed under: SharePoint 2010 — kanithis @ 9:24 pm

 

I often received a web.config error message in EdiForm of an External List using a custom BCS model with my own implementations for Updater method in .NET assembly.

Trace logs showing an error message as “Application error when access /Lists/***/EditForm.aspx, Error=The data source control failed to execute the update command. ***** at Microsoft.SharePoint.WebPartPages.DataFormWebPart.UpdateCallback

This was frustrating as there are no details about this error, debugging using VS2010 did not help either.

So after weeks of trail and error i found out that one of the Data Type was defined as “String” in BCS Entity model but its actual Data Type should be “Character” as defined in LINQ to SQL object.

SharePoint BCS model is very stringent on Data Types and not very specific when reporting the error messages. Also it is important to make sure that Identifier field must have Updater Field be set to True in the Updater method.

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: WordPress Classic. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.