Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
 Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
 Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
<SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
instead of only "Daughter".
Please provide the solution to get rid of this issue.
Thanks
Ramasubbu

Try below:
http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
'i' and I was working with an Edit Form. Changing it to
'u' as it was with every other FormField fixed the issue.
<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
/>
Explanation:
DataBind operation type parameters (the first parameter) are listed below:
'i' stands for INSERT,
'u' stands for UPDATE,
'd' stands for DELETE.
http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • The data source control failed to execute the insert command

    Hi,
      We have installed SharePoint 2010 on Windows Server 2008 Enterprise Edition. We've started using the "Employee Training Scheduling and Materials" template that is available at
    http://www.microsoft.com/government/en-us/campaigns/Pages/SharePoint-Templates.aspx. Till last friday (17th Oct,2013) everything was working fine, but after that we are getting an error "The data source failed to execute the insert command"
    when I click on the "Save" button available on the Registrations.aspx. Could any one help me resolve this issue?
    Kinldy revert if you need more details.
    Though I see many posts regarding this, most of them are associated with Windows Server 2008 R2. So, most of the hot fixes mentioned there could not help me.
    Your help me is greatly appreciated. Thanks for taking time to go through this post.
    Thanks and Regards
    Praveen.
    Thanks and Regards Praveen.

    I have the exact same problem. I updated the 2007 Employee training template to the 2010 version and then 2 months ago, presumably when our Sharepoint had the July 10th patch 14.0.7102.5004 applied, it all broke. An attempt to register for a class always
    comes back with "Failure to execute insert command".
    I tried changing the DateSourceMode from "ListItem" to "List"  that gets rid of the error but does NOT update the registrations list.
    Anyone have any success fixing this?

  • Data source control failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for an
    event they see the following error what can i do to fix this?
    Error
    The data source control failed to execute the insert command. d8b915be-5355-4d63-97bb-c9cf3aacad75
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: d8b915be-5355-4d63-97bb-c9cf3aacad75
    Date and Time: 7/31/2013 9:51:25 PM

    0
    Vote
    Thanks!!!
    It worked for me too

  • ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.

    Dear friends,
    Please help me with this scenario.Thanks so much for your help.
    Task: ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.
    Need to create a new item on this page called "approver notes" (column notes).
    Can this be achieved by personalization?
    Scenario:
    On credit request details page disputed invoice number, request date, status, bill to, ship to, etc are displayed.
    When the status is "not approved”, item should be displayed along the "rejected" comment.
    If the status is other than "not approved" then the item should not be displayed.

    what page is this ? are you sure it is a OAF page ?
    If it is a OAF page, you would need to extend the controller to fire a partial action for the item and then control the display property of the comments field
    Tapash

  • SharePoint 2010 Report using a Shared Data Source Connection file (.rsds) is forcibly closed.

    Hi -
    When attempting to render a report (.rdl) in a SharePoint 2010 document library that has a
    Connection Type specified as a Shared data source (the connection succeeds when tested in the SharedDataSource.aspx page), the following error message is displayed in the report:
    The data source that I'm using passes the test when tested in isolation but when used in the report it yields to the error message above. Below are some of the details of the .rsds file:
    For this particular Web Application, Kerberos has been enabled. I couldn't spot any traces in ULS nor in the Security Windows logs.
    Any feedback on how to fix this issue is appreciated.
    Thanks.

    Hi
    There are multiple resolution found for the same issue, please refer 
    http://www.marc-lognoul.me/itblog-en/an-existing-connection-was-forcibly-closed-by-the-remote-host/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/4ad2a302-8a77-44f3-91ce-803d36efc9c5/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/235ca863-f540-4fa0-9688-0b0b46c2d75d/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious 
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • PerformancePoint in Sharepoint 2010 and SQL Server 2012 data source

    Hi,
    I have a problem on creating PerformancePoint reports in Sharepoint 2010 based on SQL Server 2012 source data.
    I try to create a data source in PerformancePoint dashboard designer, I choose Analysis Services, and I get a following error:
                "The data source cannot be used because PerformancePoint Services is not
    configured correctly...."
    I think it is due to a version of a ADOMD.NET component that needs to be installed, but I am not sure which version is necessary? Could you help
    me with that?
    Of course, if there are any other prerequisites, please, tell me.
    Regards,
    Srdjan Nikitovic

    Did you set unattended service account for your PPS?
    The Data source cannot be used because PerformancePoint
    Services is not configured correctly
    http://ericphan.net/blog/2010/4/19/performance-point-server-error-the-unattended-service-accoun.html
    Amit

  • How to Get current username in custom SharePoint 2010 master page

    Hi,
    How can I get current logged-in username in SharePoint 2010 custom master page?
    Regards,
    Amit

    You can use the SPContext.Web.CurrentUser object to get at the information you're looking for. This can be accessed either via client-side JavaScript or server-side ASP.NET code.
    Getting the logged in user's login and name via JavaScript:
    <script>
    ExecuteOrDelayUntilScriptLoaded(function(){
    var clientContext = SP.ClientContext.get_current();
    var CurrentUser = clientContext.get_web().get_currentUser();
    clientContext.load(CurrentUser);
    clientContext.executeQueryAsync(Function.createDelegate(this,function(){
    // User's Name
    alert(CurrentUser.get_title());
    // User's Login
    alert(CurrentUser.get_loginName());
    }),Function.createDelegate(this,function(sender,args){alert(args.get_message())}));
    },"SP.JS");
    </script>
    And of course, it's even easier via server-side C#:
    <script runat="server">
    String username = SPContext.Current.Web.CurrentUser.Name;
    String userlogin = SPContext.Current.Web.CurrentUser.LoginName;
    </script>
    I hope that helps!

  • Error while adding a new method to the Session Bean

    Hello everyone. I'm using jdev 11g, ejb, jpa & jsf. Everything works fine. But when I try to add a custom method to the Session Bean, I'm having an error.
    Here is my steps:
    1) I added a new method to SessionBean.java. Something like this:
    public void Hello() {
    System.out.println("Hello!");
    2) Then using Structure palette I exposed this method through Local interface and created data control
    3) Finally, I made a command button binded to this method (just droped it from DataControls.dcx to my page)
    When I start the page and click the button, I'm having the following error:
    Error 500--Internal Server Error
    javax.faces.el.EvaluationException: Method not found: Hello.execute(javax.faces.event.ActionEvent)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1227)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    ... (I've truncated the log because there is nothing important in the missing part)

    Yes, I have binding in the page def. Everything is correct there:
    <methodAction id="Hello" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="Hello" IsViewObjectMethod="false"
    DataControl="PriceServiceLocal"
    InstanceName="PriceServiceLocal.dataProvider"/>
    I've droped the method from the Data Controls panel

  • Error while adding a new field to the Segment in we31

    Hi ,
    I am getting error when i am trying to add the new field to the cust. segment.
    It is released for the adding the new fields i am cancelling the release , but i got a message like this
    Error while resetting release of segment 'segment name'.
    it is comming from the message class EA and message number 259.
    Thanks in advance.
    Reagrds,
    bharani

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • Problem while adding a new row to the table.

    hello,
    In my ADF form i have a table. and when i click on CreateInsert it add a new to the table but at the first. i want all the new rows to be added at the end of the table in a sequence. how can i do this?....
    Thanks and Regards,
    Rakshitha

    Hi,
    Try this:
    DCIteratorBinding dciter;
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    dciter = (DCIteratorBinding) bindings.get("findAllTestAndryIter");
    ViewObjectImpl vo = dciter.getViewObject();
    if (vo != null)
    Row row = vo.createRow();
    int rangeSize = vo.getRangeSize();
    int rowsInRange = vo.getAllRowsInRange().length;
    int insertPos = rowsInRange < rangeSize? rowsInRange: rangeSize - 1;
    vo.insertRowAtRangeIndex(insertPos, row);
    vo.setCurrentRow(row);
    }

  • While creating the Data source for Sql server am getting this error?

    Hi i new to Power BI sites and office 365,
    For my first step 
    1. i have successful creaeted Gateway in Office 365
    2.Now i have creating  the Data source for that gateway using Sql server R2
    3.While Creating the Data source using the Corresponding gateway i have given and next phase set Credentials  phase i have noticed one pop up window and it will shows me like
    Data source Settings and  below in that window it will show's u the things like 
    Datasource Name.
    Loading......
    Credentials type:
    Privacy Level:
    Failed to verify parameter
    I will get this results finally  ,so hw should i achive this probelm ,Please let me know if any one knows
    So kindly give me the proper answer for this.
    Regards

    Any suggestions for Chinnarianu?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Can we change the Data source in AO ?

    Hi Folks,
    Environment: SAP HANA on AO
    I have the following scenario , Am creating a report on one Calculation View: CV and have done some analysis where I have pulled in some dimensions and kept some background filters.
    Now I have to generate the same report on another Calculation View: CV2 ( Similar to structure of CV ) and compare the reports. Is there any way to edit copy the previous report and change the data source? Can you guide me on that?
    Regards,
    Krishna Tangudu

    Hi,
    You can exchange the calc view by clicking on the button next to the data source name in the tab "components", but when you do this, the new data source will overwrite the settings and filters from the previous data source. So no, there is not a supported way of exchanging the datasource and keeping the filters of the previous data source.
    Best regards,
    Victor

  • Adding a new server in the menu of SAP GUI 640

    Hello Everybody,
    While adding a new server to the menu of SAP GUI 640 using Server Tab after entering all details like :
    1] SAP System ID
    2] Hostname where message server is running
    3] SAP ROUTER :None
    After filling all the above details and after pressing the Generate List Button I am getting the following error .Please help me to know why this error is coming and suggest a solutio for adding a new server to my SAP GUI 640.But I am able to add a new server using User defined tab but I want to add a new server using Server tab.
    Below is error details which I am getting:
    Error:service'sapmsSBX'unknown
    Wed Jan 09 06:41:13 2008
    Release 640
    Component NI(network interface),version 37
    rc=-3,module ninti.c,line 463
    Detail NiPGetServByName: service 'sapmsSBX' not found.
    Thanks and Regards,
    Ashish Thakkar.

    Hi,
    check etc/services for sapmsSBX entry. If missing - add it (i.e. sapmsSBX      36XX/tcp - where XX is your instance no.)
    Add an extra [Enter] after last line of etc/services.
    Regs,
    FS

  • Date picker is not working in IE9 for sharepoint 2010 appliation pages

    Hi,
    Date picker not working  in IE9 for sharepoint 2010 appliation pages. We have enabled custom master page.
    Thanks in advance.
    Shameej

    Hi,
    For this issue, you can add the following line of code into the pickerdialog.master which lays in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
    <meta http-equiv=”x-ua-compatible” content=”IE=8”>
    Or we can use the JavaScript code provided in this blog which would also do the trick:
    http://williamwmy.wordpress.com/2013/06/03/problem-with-sharepoint-peoplepicker/
    A thread with the same issue for your reference:
    http://sharepoint.stackexchange.com/questions/27251/hotfix-for-problem-with-sharepoint-peopleeditor-in-ie-9
    Best regards
    Patrick Liang
    TechNet Community Support

  • SharePoint PPS 2013 Dashboard Designer error "Please check the data source for any unsaved changes and click on Test Data Source button"

    Hi,
    I am getting below error in SharePoint PPS 2013 Dashboard Designer. While create the Analysis Service by using "PROVIDER="MSOLAP";DATA SOURCE="http://testpivot2013:9090/Source%20Documents/TestSSource.xlsx"
    "An error occurred connecting to this data source. Please check the data source for any unsaved changes and click on Test Data Source button to confirm connection to the data source. "
    I have checked all the Sites and done all the steps also. But still getting the error.Its frustrating like anything. Everything is configured correctly but still getting this error.
    Thanks in advance.
    Poomani Sankaran

    Hi Poomani,
    Thanks for posting your issue,
    you must have to Install SQL Server 2012 ADOMD.Net  on your machine and find the browse the below mentioned URL to create SharePoint Dashboard with Analysis service step by step.
    http://www.c-sharpcorner.com/UploadFile/a9d961/create-an-analysis-service-data-source-connection-using-shar/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

Maybe you are looking for

  • Adjusting a created pattern swatch

    Hello all, I've been searching around for a solution to my problem, it seems so basic that i'm suprised i can't find anything on the subject (maybe i use the wrong therm's). I have the following question, is it possible to adjust a pattern after it h

  • Why is NumberFormat.cachedLocaleData still a Hashtable?

    Looking at JDK 6, NumberFormat.getInstance(Locale) is a bottleneck at high concurrency, because it hits a synchronized block calling cacheLocaleData.get(locale). The latter is a Hashtable - shouldn't it be a ConcurrentMap by now? Not sure what Locale

  • In view rearrange by name does nothing now. Increasing size of Icons, increases in other folders.

    I used to use icons of pictures with a black background to get the feel of the older times contact sheets. It non-longer works, not the rearranging by name and not black colored background behind the pictures.

  • 8520 curve error "Reload Software 552"

    I don't know how to fix error message. I can not get pass the white screen saying Reload software 552. As soon as i take the battery out then put the battery back in it goes to that screen. HOW DO I GET PASSS that screen???????? Thank You Czabless

  • Application crashed and details about application crash are mentioned below?

    Problem signature:   Problem Event Name: APPCRASH   Application Name: CaptureScreen.exe   Application Version: 1.0.5514.34017   Application Timestamp: 54d3783c   Fault Module Name: unknown   Fault Module Version: 0.0.0.0   Fault Module Timestamp: 000