Getting error while adding field to data viewer web part

I have custom EditItemForm for a custom list having over 100 columns. That EditItemForm contains a DataFormWebPart in edit mode having over 100
<SharePoint:FormField controls.
If I browse for the above page in internet explorer, I got got the generic error:
"Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such
as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
Correlation ID:XXXXXXX"
I went to Log, and got the exact error details as follows,
"Error while executing web part: System.StackOverflowException: Operation caused a stack overflow.     at
Microsoft.Xslt.NativeMethod.CheckForSufficientStack()     at <xsl:template name="dvt_1.rowedit">(XmlQueryRuntime , XPathNavigator , Double , String )     at <xsl:template name="dvt_1.body">(XmlQueryRuntime
, IList`1 , Double , Double )     at <xsl:template name="dvt_1">(XmlQueryRuntime , XPathNavigator )     at Root(XmlQueryRuntime )     at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)     at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
results)     at System.Xml.Xsl.XslCompiledTransform.Tr..."
Then I thought of removing some columns from the dataFormWebpart. I removed several
<SharePoint:FormField controls from the dataFormWebpart. Then page started working fine.
Please let us know if there is any workaround to fix this issue.
Note: The same page was working fine in MOSS 2007 before migrating to SharePoint
2010.
Sharepoint Consultant from NY, USA

In SP1 and earlier, you could sometimes fix this by breaking the "dvt_1.rowedit" template into smaller templates and calling them sequentially. Sadly, this no longer works in many cases.
Microsoft's "fix" for this problem appears in the August 2011 CU (Possibly earlier in the June CU - haven't checked that one). They have implemented a one-second timer that artificially throws a stack overflow exception if a transform takes longer than 1
second.
Reflector shows us what's going on. As the stack trace shows, it's in Microsoft.Xslt.NativeMethod.CheckForSufficientStack().
A dateTime variable has been set to Now + 1 second when a Microsoft.Xslt.NativeMethod.SetStackBarrier() method was called, then we have this gem:
public static unsafe void CheckForSufficientStack()
void* stackBarrier = StackBarrier;
if (dateTime < DateTime.Now)
throw new StackOverflowException();
if (&stackBarrier < stackBarrier)
throw new StackOverflowException();
As you can see, there has been no real stack overflow, and there isn't even any provision for allowing a SharePoint admin to adjust the now-plus-one-second hack.
The MSFT support person we spoke with said this code was added in the August CU to "prevent long transforms from bringing down the server." So... Let's see what the SP1 version of the same method looks like:
public static unsafe void CheckForSufficientStack()
void* stackBarrier = StackBarrier;
if (((++callCount & 0xffff) == 0) && (dateTime.AddSeconds(5.0) < DateTime.Now))
throw new StackOverflowException();
if (&stackBarrier < stackBarrier)
throw new StackOverflowException();
Well, at least it allowed 5 seconds instead of 1....

Similar Messages

  • Modify the data source of a data view web part

    I have a dataView web part deployed in a template in multiple site collection. This dataView hasn't any query set up, so it loads a lot of items and this is slowing down my system.
    Now I want to programmatically put a query overriding the existent (empty) one and I'm doing like this:
    System.Web.UI.WebControls.WebParts.WebPart y = (System.Web.UI.WebControls.WebParts.WebPart)item;
    Microsoft.SharePoint.WebPartPages.DataFormWebPart z = (Microsoft.SharePoint.WebPartPages.DataFormWebPart)item;
    StringBuilder dataSourceString = new StringBuilder("<%@ Register TagPrefix=\"sharepoint\" Namespace=\"Microsoft.SharePoint.WebControls\" Assembly=\"Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c\" %>");
    dataSourceString.Append("<%@ Register TagPrefix=\"WebPartPages\" Namespace=\"Microsoft.SharePoint.WebPartPages\" Assembly=\"Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c\" %>");
    dataSourceString.Append("<sharepoint:SoapDataSource runat=\"server\" SelectUrl=\"http://intranet.contoso.com/sites/spc/_vti_bin/lists.asmx\" InsertUrl=\"\" UpdateUrl=\"\" DeleteUrl=\"\" SelectAction=\"http://schemas.microsoft.com/sharepoint/soap/GetListItems\" InsertAction=\"\" UpdateAction=\"\" DeleteAction=\"\" SelectPort=\"ListsSoap\" InsertPort=\"\" UpdatePort=\"\" DeletePort=\"\" SelectServiceName=\"Lists\" InsertServiceName=\"\" UpdateServiceName=\"\" DeleteServiceName=\"\" AuthType=\"Basic\" AuthUserName=\"contoso\\administrator\" AuthPassword=\"pass@word1\" WsdlPath=\"http://intranet.contoso.com/sites/spc/_vti_bin/lists.asmx?WSDL\" XPath=\"\" ID=\"SoapDataSource3\">");
    dataSourceString.Append("<SelectCommand><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><GetListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"><listName>Jobs</listName>");
    dataSourceString.Append("<Query><Where><Eq><FieldRef Name=\"Title\" /><Value Type=\"Text\">2012_080_A_0</Value></Eq></Where></Query>");
    dataSourceString.Append("<rowLimit>9999</rowLimit></GetListItems></soap:Body></soap:Envelope></SelectCommand><InsertCommand></InsertCommand><UpdateCommand></UpdateCommand><DeleteCommand></DeleteCommand></sharepoint:SoapDataSource>");
    z.DataSourcesString = dataSourceString.ToString();
    manager.SaveChanges(z);
    In my code, I can see the DataSourceString changing, but if I refresh the page it is still loading all the data: why?!

    Hi,
    According to your description, my understanding is that you want to change the data view web part datasource programmatically.
    We need to override the databind method like below:
    public class ExtendedDataFormWebPart : DataFormWebPart
    public override void DataBind()
    this.DataSource = your own data source;
    base.DataBind();
    Here is a detailed code demo for your reference:
    http://jamestsai.net/Blog/post/How-to-query-cross-site-lists-in-DataFormWebPart-Part-1-Build-your-own-data-source-for-DataFormWebPart.aspx
    Best Regards
    Jerry Guo
    TechNet Community Support

  • How do I set the scope to recursive in the Data View Web Part in SP 2013?

    How do I set the scope to recursive in the Data View Web Part in SP 2013?
    I have items in folders that I would like to display in the data view web part out of their folders.  I know that I need to set the scope to recursive.  I found documentation on how to do it in 2010, but since they removed all views other than
    the code view, I am unsure about how to do so.
    Link to article describing how to do what I am trying to do in 2010:
    https://www.nothingbutsharepoint.com/2009/05/13/data-view-web-part-folders-part-2-aspx/

    Hi,
    In SharePoint Designer 2013, we can click the code of the Data view web part. Then switch the tab to "OPTIONS". And then we can find the Folder Scope option, you can select "Show All Files of All Folders"
    to achieve your requirement.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Filter in data view web part using sharepoint designer 2010

    Hi,
    i have a scenario that there are 4 column Name, shift time, Location, Date. so i have to create a data view web part using designer. 
    further conditions are:
    1.Shift time should be radio button and filter the data accordingly.
    2. Data display only for current date(system date).
    3. Group by Location.
    i have complete all things except how to display data according current date. its showing all dates result.
    So please help me how to give a expression or filter to do this. if you have xslt code then plz let me know.
    Please help ASAP.
    Thanks
    Vivek

    Hi Vivek,
    If i understand it right, you know how to do other bits and want help in displaying data for only current date. on your view you can use filter condition as :
                    column: Date
                    condition : is equal to
                     value:     [Today]
    Let me know if this helps.
    Regards
    P
    Please don't forget to mark an answer if it solves your problem.

  • Sharepoint 2013 Web Parts missing - XsltListViewWebPart, Data View Web Part ...

    Hi,
    I'm using a SP2013 standalone dev server and I can´t find some web parts like XsltListViewWebPart and Data View Web Part.
    I was expecting to find a category like "Lists and Libraries" or "Authoring" but I can´t find it.
    I'm a site collection admin and have standard, enterprise and publishing features activated.
    Shouln´t I see those Web Parts?
    I noticed that I don´t have any file "XsltListViewWebPart.webpart" on my server file system. should it exists there?
    Thanks,
    DD 

    Hi,
    If you want to add a XsltListViewWebPart into page via UI.
    In SharePoint 2010, we can find in "Lists and Libraries" category.
    In SharePoint 2013, the category named "Apps".
     Best Regards
    Dennis Guo
    TechNet Community Support

  • Getting error while uploading gl master data using LSMW batch input data

    Hi Experts,
    I am getting error while uploading the GL master data through lsmw using batch input recording.
    After completion of all steps at the time of running batch input session error i am getting is "maintain EN language discription"
    and Pls tell me is it possible to upload transactional data using lsmw? if yes pls explaing briefly.

    Hello,
    Kindly post in the FI forum to get a better response.
    Regarding the issue you might check whether the correct column is being picked up where you have maintained the description.
    Kind Regards // Shaubhik

  • Getting error while adding a custom field (with input help) through AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running while I am testing it
    While adding fsecond field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Please help me out.Kindly be detailed as I am new to SAP CRM.

    Thanks for very helpful reply. After implementing the suggested SAP note, I am able to see the getter and setter methods.
    So one of my problem has got solved with your kind help:)
    As per your another suggestion,I have created the enhanced fields without the search help from AET in the node BTAdminI with names Plant(ZZPLANT) and Storage Location(ZZStoarge_Loc).
    Now I am facing below problem:
    Since Plant needs to autopopulated by Storage Location (search Help ZOFI_SHLP_STORAGE_LOC),So I need to Implement Getter setter method.
    I have written below code into Get_V_ZZStorage_Loc Method:
    method GET_V_ZZSTORAGE_LOC.
      DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
        ls_map-context_attr = 'ZZSTORAGE_LOC'.
        ls_map-f4_attr      = 'STORAGE_LOC'. (Storage_loc is the parameter defined in search help)
        APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id        = 'ZOFI_SHLP_STORAGE_LOC1'
          iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback
          iv_input_mapping  = lt_inmap
          iv_output_mapping = lt_outmap.
    endmethod.
    But its not working.Should I write some code in Get_P_XX or some other method also?
    Kindly suggest .

  • Getting error while mapping fields btween DS and Data target IO

    Hi,
    I am getting error message "Rule(target field:0DEL_GR_WT): No source units assigned" while activating transfer rules btween Data source and Data target.
    Infoobject has got mapped with source field BRGEW.
    Even in the data source the field units are GEWEI
    In BI the units are 0unit_of_wt.
    Every thing seems to be fine,but while mapping fiellds in the transfermation i am getting above error

    Hi,
    I think u have to assign source unit in transformation .
    double click on that  particular filed and it will take you to other screen and there you have choose that field and have to  assign,
    if am wrong please ignore it.
    Thanks,
    Jack

  • Error while Adding Profit Center Data element to Data Model of MDG-M

    Hello gurus,
    Can any one help me in adding profit center filed (Data element) to zztable, basically want to use the Data Element (PRCTR).
    Getting error" There is an attribute with data element assigned that refers to a check table. Besides the client, the check table can only have one key field that corresponds to the attribute.
    Regards,
    Mandapati

    Hi Mandapati,
    looks like you are assigning data element in existing attribute or you are assigning data element more than once.
    Try to create a new attribute and then assign the Data Element (PRCTR).
    Go to General Settings-> Data Modeling-> Edit Data Model.
    Select your datamodel( note that it should be MDGM data model. For MDG the MDGM data model is called MM. We can only add pre-delivered SAP ERP material master database field to an MDGM entity as an attribute)
    Select the entity types and then the attributes subdialog.
    Create a new attribute and assign a data element. The system then derives the properties, field labels for the attribute
    Regards
    Goutham Kanithi

  • Error while Adding field on Screen Variant

    Hi SAP Gurus,
    I want to add one field Trading partner in Fast entry screen.
    I am getting below error message while adding one field Trading Partner in Screen Variant ES007(O7E6)
    FIELD instruction for field BSEG-VBUND missing on template screen
    Message no. F4171
    Please let me know where do I have to maintain Trading partner field in template screen.
    A quick response on this is highly appreciate.
    Regards,
    SATVIR SINGH
    Edited by: Satvir S Digwa on Oct 6, 2010 12:41 PM

    Hi
    Go through the below link:
    Re: Trading partner in Field Status Group
    Rgds
    Vani

  • Getting error while trying to create a view

    Hi,
    I'm creating a view , but when I try to create it is giving "ORA-02338 missing or invalid column constraint specification".
    The syntax I used for creating view is:
    create or replace view XYZ_VIEW of "XYZ_OBJECT" with object oid id1, id2)
    (arg1,arg2) as
    where XYZ_OBJECT is an object type declared as
    CREATE OR REPLACE TYPE "XYZ_OBJECT"
    (arg1 varchar2(50),
    arg2 varchar2(50)
    Thanks in advance
    Sujith

    It's interesting that Oracle resolves SELECT * FROM for ordinary views but not for object views, at least in 9.2.
    SQL> CREATE OR REPLACE VIEW xyz_view OF xyz_object
      2    WITH OBJECT IDENTIFIER (arg1)
      3  AS SELECT * FROM xyz_table;
    View created.
    SQL> select * from  xyz_view ;
    ARG1                 ARG2
    APC                  XYZ
    SQL> set long 5000
    SQL> select TEXT from user_views where view_name = 'XYZ_VIEW';
    TEXT
    SELECT * FROM xyz_table
    SQL> alter table xyz_table add (col3 number);
    Table altered.
    SQL> select * from  xyz_view ;
    select * from  xyz_view
    ERROR at line 1:
    ORA-04063: view "APC.XYZ_VIEW" has errors
    SQL>                drop view xyz_view ;
    View dropped.
    SQL> create  view xyz_view as select * from xyz_table;
    View created.
    SQL>  select TEXT from user_views where view_name = 'XYZ_VIEW';
    TEXT
    select "A","B","COL3" from xyz_table
    SQL> Does anybody know if this behaviour is different in 10g?
    Chers, APC

  • Data view web part to display the most frequently accessed pages based on the user that is logged in

    I am working on a project in which I would like to display the top 5 most accessed pieces of content as links, based on the user that is logged in. Our MOSS 2007 implementation has subsites for all regions that we do business in, as an example North, South, East, and West. When a user visits the North region homepage, I would like a web part to display:
    Hello, <username>, here is a listing of your most accessed content:
    Link to One
    Link to Two
    Link to Three
    Link to Four
    Link to Five
    So each user would get a customized list based on their content access. We are not using my sites, but these would not work as we want the list to display on the home page of the region site.
    I am thinking that a data view may work here, but I am not sure. Any help is greatly appreciated.

    If you are running MOSS you may want to take a look at the Relevant Documents web part too.
    http://office.microsoft.com/en-us/sharepointserver/HA102410251033.aspx
    The Relevant Documents Web Part helps you create a personalized view of the documents that you create, check out, and change. In a large Document Center, the Web Part can save you time and effort by making files easier to find and use. The following figure shows the Web Part:

  • Data View Web Part - List of Subsites and Document Libraries under Current Site - Must be able to Package as Site Template in SPDesigner

    Hi Guys,
    On the home page of each sub site I would like to be able to show a list of subsites and Document libraries that are under the current subsite.
    I started investigating a solution using Datasources with SOAP requests sent to the server but it is very difficult to understand how to surface it on the Data View WebPart.
    I have tried with the search results webpart but the problem is that it does not work well when packaged in a Site Template.
    Please advise.
    Thanks and Regards,
    Rhyan

    Ok,
    Here is the problem:
    When creating a mysite from powershell or script, apparently you can ONLY do this from a wfe (or a server running Microsoft SharePoint Foundation Web Application in services on server).
    You CANNOT create mysites from script on your appserver if it is not also a Web Application Server. I confirmed the same is true in my test farm. I guess I was always running most of these scripts on the webserver.
    I searched all over and cannot find this documented anywhere.
    Who do I contact to have Microsoft document this?
    It's Thursday morning, I've been working non stop since Saturday morning so you don't have to :)

  • Errors while editing the xsl for dataview web part

    while modifying a dataview webpart in sharepoint designer, i finding the issues for the below line
    <xsl:for-each select="$Rows[substring-before(substring-after(substring-after(@FullName, '?ID='), '>'), '<') = $FullName]">
    errors:
    the tag is marked invalid because it is missing quote for  '>' and '<'
    the tag is marked invalid because it has an extra quote ">

    Hi ,
    According to your description, my understanding is that you got an error when you edited the xsl for dataview web part.
    Please try to change
    <xsl:for-each select="$Rows[substring-before(substring-after(substring-after(@FullName, '?ID='), '>'), '<') = $FullName]">
    To
    <xsl:for-each select="$Rows[substring-before(substring-after(substring-after(@FullName, '?ID='), '&gt;'), '&lt;') = $FullName]">
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Getting error while reading file from /data/interface

    HI Experts,
    while i am executing the job MPU* in ECC it write error file in /data/interface/sidclntxxx/IN/MPU742. now for the tcode ZMM_MPU_ANALYSIS it ask that error file, it is reflecting "error reading log file /data/interface...". now i am not getting the email also that supposed to get. please help
    Edited by: stiw382 on Dec 1, 2011 1:17 PM

    > while i am executing the job MPU* in ECC it write error file in /data/interface/sidclntxxx/IN/MPU742. now for the tcode ZMM_MPU_ANALYSIS it ask that error file, it is reflecting "error reading log file /data/interface...". now i am not getting the email also that supposed to get. please help
    is that file accessible on the operating system? Is the filesystem mounted?
    Z-transaction codes are customer developments, since nobody here knows, what this program does I suggest you contact the developer of that transaction.
    Markus

Maybe you are looking for