Disappearing of Web Parts and a custom List Views containing XSL

Hello!
Recently, on the sites with Web Parts
containing XSL or on List Views (.aspx-pages) containing
XSL a message appears:
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:98bcff3d-5cc0-42b6-819c-41d36a4aa335
And so it is as long as I do not take
certain actions: indicated below as I
struggled with this. In a day or two it
repeats.
Web Parts and List Views without XSL
are displayed normal.
Related LOGs for such Web Parts and List View containing XSL:
Error while executing web part: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Xslt.MethodCollection.ResolveMethodDef(Int32 tokenNum)
at Microsoft.Xslt.MethodCollection.GetMethodInfo(Int32 methodNumber)
at Microsoft.Xslt.STransform.GetCompiledTransform()
at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
Herewith:
1. Updates have been installed on the server
with a further rebooting.
2. No doubt the correctness of XSL:
previously these web parts and list views were displayed.
And it is displayed in SP Designer.
My actions for troubleshooting (a day or two
it reappears):
For Web Parts containing XSL:
- Server rebooting does not help.
- Resaving of Web Part settings
helps (Web Part menu -> Change Web Part -> OK).
- Sometimes resaving of Web Part settings does not help. In this case restarting of Application Pool 'SharePoint - 80' with further
resaving of Web Part settings helps.
For List Views containing XSL:
- Server rebooting does not help.
- Server updating with futher rebooting
helps.
- Restarting of Application Pool 'SharePoint - 80'
helps.

Hi,
According to your post, my understanding is that Web Parts and List Views with XSL were displayed unnormal.
The error message is caused by that the time allowed for doing the XSL transformation was exceeded.
In SharePoint 2010 the XSL transform cannot take longer than 1 second.
There is now a hot fix available from Microsoft to resolve this issue,  the solution are at this page:
http://support.microsoft.com/kb/2639184. 
In addition, you can install  sharepointfoundation2010-kb2597136-fullfile-x64-glb.exe and use the PowerShell
script below to make the change to the Timeout value
If the issue still exists, you can perform an AppPool recycle in IIS.
More information:
http://englando.wordpress.com/2012/01/05/unable-to-display-this-web-part-xsltlistview-and-xsltdataview-web-part-issues-in-ie/
http://hsdhaarsma.blogspot.in/2013/06/indexoutofrangeexception-in.html#!/2013/06/indexoutofrangeexception-in.html
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • List View Web part not showing all available views for list

    We have added a list view web part to a page, and we get the "Current View" link in the web part...which is configurable when modifying the actual web part.
    What we'd like to see (instead of having to click the ellipses button/context menu to get the other views) is the views displayed horizontally like when you are viewing the list itself.
    When viewing the list itself, we see "All Items" "View 1" "View 2", etc.
    Is this possible in the list view web part to display all available views in a horizontal/breadcrumb layout?  Please advise.

    The below works via alert, just need to now assign data to a <DIV> or element for display.
    Trying this in simple webpart code snippet to get back all views:
        <script>
        var viewCollection = null;
            function runCode() {
                var clientContext = new SP.ClientContext.get_current();
                if (clientContext != undefined && clientContext != null) {
                    var web = clientContext.get_web();
                    var listCollection = web.get_lists();
                    var list = listCollection.getByTitle("MyListName");
                    this.viewCollection = list.get_views();
                    //var viewInfo = new SP.ViewCreationInformation();
                    //viewInfo.set_title('MyView');
                    //this.viewCollection.add(viewInfo);
                    clientContext.load(this.viewCollection);
                    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
            function onQuerySucceeded() {
                var viewInfo = 'Tasks list current views: \n\n';
                var viewEnumerator = this.viewCollection.getEnumerator();
                while (viewEnumerator.moveNext()) {
                    var view = viewEnumerator.get_current();
                    viewInfo += view.get_title() + '\n';
                alert(viewInfo);
            function onQueryFailed(sender, args) {
                alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
        </script>
        <a onclick='return runCode();'>Click here</a>
                            

  • ECT List View Web Part displaying incorrect data when View Item

    I have a External Content Type which pulls data from a stored procedure. The stored procedure has 1 parameter - the users logon id. The data retrieved is a list of meetings with start date time, end date time, location, subject, etc. From this ECT there
    is an External List which displays all data correctly.
    There is 2 pages within the site and its subsites that have list view web parts which display a subset of the info from the external list. When the user clicks a specific meeting to display the complete info on the meeting, the wrong information is displayed,
    it always displays the info for the 1st meeting in the list. So, I displayed the BDC Identity field on the list and this field is identical for all the rows since the key for the ECT is the username and hence not unique.
    I've spent all day trying to finding a way to resolve this and have come up empty. I've tried to find a way to make the BDC Identity field to be unique, using Business Data View web part, Data View web part, and nothing.
    The user needs to be able to click the My Meetings url header on the above pages to see a full list of their meetings so I need the external list. Any ideas how to make the BDC Identity field unique or how to get the View Item on the List View web part to
    work correctly?

    Sorry, I do not understand what you mean.
    I resolved the non unique BDC Identity problem by simply adding the row # to the Username in the stored procedure so the BDC Identity fields on the list records are now unique (although they're really long ie. __bk44003500070057003700560027000200140037003700f600360096001600470056003300,
    __bk44003500070057003700560027000200140037003700f600360096001600470056004300 etc). Not sure how it generates the BDC Identity?
    I still see the same behaviour when you select a meeting to display the details. It always displays the 1st record in the list.
    I added code to the DispForm to display the ID when the page loads and the BDC Identity from the record and verfied that they do match.
    I can add another parameter to the stored procedure and just return the row # in that field. What do you mean by make the identifire as Identity in operations?

  • Content Search Web Part and Managed Property

    Do I have to have cross-site collection publishing feature turned on for the Content Search Web Part to show a managed property?
    I have a list and a column in that list called Colors. I created a managed property out of the crawled property for Colors column. On a page within the same site-collection, I added a content search web part (displays items from the earlier list) and
    trying to display the managed property for Colors to show up for each of the items. For some reason, Colors value is not being displayed for the items.
    Any ideas?

    Thanks, Peter, appreciated. Here is my problem:
    I created a site column and added it to the list. Added an item that has a value for this site column. System automatically generated a crawled property for the site column and also a managed property. Do I still have to perform step # 5 from above?
    Now when I go into the content search web part and change the query to use this managed property as a refiner, it does not work.
    I will try the debugging as you suggested.
    In the meanwhile, Please let me know if you know of anything wrong I am doing.
    UPDATE: I debugged it using IE Dev. Toolbar and the value for that managed property is being returned as null. What could be going wrong? How can I further troubleshoot this problem?

  • Content By Search Web Part and the Hover Panel

    Hi
     I have an Office 365 E3 account.
    I have a Content By Search Webpart which I have added to a home page.
    I have a display template that displays the results and should show the Search hover panel just like in SharePoint Search Results.
    However, it does not unless the CSWP is near the bottom of the screen.
    I have used the IE11 debugger and I can see the hover panel code being called when the mouse enters the CSWP area, but it only works (and doers not stay visible very long) if the CSWP web part is at the bottom of the screen.
    This only works when the CSWP is at the bottom of the screen.  It does not work when the CSWP is further up the screen.
    Am I doing something wrong.
    (This works perfectly using on-premise SharePoint 2013 with SP1.)
    Regards
    Nigel
    Nigel Price NJPEnterprises

    Hi  Nigel,
    According to your description, my understanding is that the hover panel of your custom display template only works when the Content Search Web Part is at the page bottom.
    For  customizing  hover panel on the Content Search Web Part  using a Custom Display Template, you can refer to the blog:
    http://www.cdhtalkstech.com/2013/11/19/5598/
    I tested it in my SharePoint Online environment and the hover panel worked.
    For more information, you can have a look at these articles:
    http://yeshagrawal.blogspot.in/2013/06/sharepoint-2013-search-adding-hover.html
    Thanks,
    Eric
    Forum 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]
    Eric Tao
    TechNet Community Support

  • How to create web part and retrieve data from a scheduled task?

    Hi,
    I am new to SP, so I think you can guide me. I have  a scheduled task which gets currency data. I wonder if there is  way to show them on a web part. There will be currnecy names, buy and sell data on this web part. I would be glad if you can show
    me step by step how to create this web part on SP.
    Thanks in advance.
    Best Regards.

    Hi,
    thanks for the reply so I advice on that case to write code in the task schedule to write the data into a SharePoint list, if the scheduled task is on the same server as SharePoint then use Object model if it on another server then use client object model
    to write data to a list
    then on SharePoint site you will just add out of the box web part to display the list where you stored the data
    to save data using Object model:
    http://msdn.microsoft.com/en-us/library/office/ms467435(v=office.14).aspx
    http://www.go4sharepoint.com/Code/insert-list-item-sharepoint-object-286.aspx
    to save data using client object model
    http://www.codeproject.com/Articles/268196/SharePoint-Client-Object-Model
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Excel web part and choice filter web part session timeout

    Hi,
    I have set up a excel web part and choice filter web part so I can change the parameters for the excel with the choice filter. I used this link: office.microsoft.com/en-001/sharepoint-server-help/connect-filter-web-parts-to-excel-web-access-HA010105470.aspx
    The problem that I have, is that each time I select a parameter through the choice filter web part, I get a session timeout:
    How can I prevent the session timeouts? I allready checked the Trusted File Location in the central admin (the location where the Excel is uploaded is not mentioned specifically, but the main domain is, so I guess all domains that built upon the
    main domain are also trusted locations?)

    Hi vjo,
    Please try to increase the Short Session Timeout in the trusted file location, compare the result.
    If this issue still exists, please check the ULS log to find whether there is something about this issue.
    The path of the log file is: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\LOGS.
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to make the web part and web part zone smaller?

    Hello Community
        On WS2012 running SharePoint 2013 Server when you edit a page
    the web part zone is big and when you add the web part the web part 
    is big also.
        So the question is how to you make web parts and web part zone
    smaller?
        Thank you
        Shabeaut

    Hi,
    According to your description, my understanding is that you want to make the web part zone and web part smaller.
    When you edit a page, you could change the height and width of the web part in Edit Web Part -> Appearance by typing in the Height and Width field. The size of the web part zone changes with the web part.
    Best Regards,
    Dean Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Infopath to design WYSIWYG Custom List Views on 2013

    We are migrating to SPO 2013.  Playing with InfoPath 2013.
    I know it's dieing, but InfoPath has always frustrated me.  Some much potential yet so out of touch with what users seem to need IMO.  Far from user friendly enough to let users maintain their own forms too IMO.
    But really my biggest gripe with SharePoint in general is that it misses the mark with Custom lists and Views.
    Why doesn't SharePoint and/or InfoPath address the need for more flexibility and Design options in the Custom List View. My users are constantly looking to build View pages that to reflect paper forms they use to have.  They always seem to
    have to settle for the way the list view looks.  InfoPath does not seem to address Read Only Views of List Data ??
    - No List Mode (View vs Edit)
    - No Label control
    - Field Names do not display unless you hover over the control. 
    - No WYSIWYG drag and drop designer - only grid cells.
    - No easy or clear way to get URL Query string values
    - No way to build complex expression fields, say I want to build a URL Link using some list field data and the ID from the URL query string on the form? Possible?
    - Better/easier way to join and bind in multiple Lists and multiple data sources?
    One other challenge we have is that SSRS can't be integrated into SPO and is being dropped from Azure.  The SSRS designer is leaps and bounds better than InfoPaths IMO.
    Considering SPO 2013, might there be another product or IDE coming in (maybe FoSL) that will address all of these? How about Visio, Excel, PDF
    Thank You.

    Thank You for your response.
    A little of both :)   ... But am very interested in hearing about practical development options.  But the catch is that we are waiting to see if something shows up that will enable users to build these views without development.
    I have been seeing new Apps show up on the o365 store that look promising, but none of them are quite there yet IMO ...  like Ninetex forms, Lightning Data Viewer, BlackCompass Data Viewer, List Designer, OData query Builder.  We've
    actually demoed every single one of them.
    We have also been playing with oData Connections from Excel and Visio web Access Web parts.  We can't get Data connections to refresh from Excel apparently unless we buy Power BI and we are still trying to figure out Visio on SPO.
    I know we can create a SharePoint 2013 App that binds in SPO List data and use .NET controls to arrange them on a page.  But that would put a developer and a deployment process in front of that View.  We can also use SSRS and create a one row report
    - but SPO does not support integrated SSRS and we would have to authenticate  on-Prem SSRS against  ADFS which we have not yet configured here.

  • SharePoint 2013 Online : Custom List view xslt webpart UI vs List View WebPart UI with search ? How to create a xslt list view webpart same UI as list View webpart ???

    I have created a xslt list view webpart but I does not have UI as SharePoint 2013 list view UI.
    how I can have it.
    Ahsan Ranjha

    Hi Ahsan,
    According to your description, my understanding is that the UI is different between XSLT web part and List View web part.
    Per my knowledge, the List View web part is a kind of the XSLT list view web part which uses XSLT to display data on the page.
    http://sharepoint-videos.com/list-view-and-data-view-web-parts/
    How did you add the XSLT web part and the List View web part?
    Could you please provide a screenshot of the two web parts?
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Content search web part to display only lists and libraries

    Hi,
    I want to configure Content Search Web Part to display only the names of lists and libraries inside my site collection. I tried adding Keyword filter "Only return lists and libraries", however it is also returning list items. Any idea on this issue?

    Hi John,
    Thanks.
    Agree with your point. I can't use any code (that is client requirement). Also, still I use, I can't use it in this scenario. I want to display most visited lists and libraries (in last month or lifetime). I can use managed properties such as ViewsLifeTime
    and ViewsRecent to sort it If i get the names of lists and libraries. Let me know if this clarifies the question more and you have an idea about it.

  • Using xsl stylesheet with List View Web Part to display custom text

    Hi 
    i have an xsl stylesheet with sharepoint listview webpart. The list view shows some items based on a filter. I want to display custom text such as "No Items" when there are zero items in the list view using the xsl stylesheet. How do i achieve
    this. I have spent hours searching but couldnt find the exact answer. Please help me out. I am a light user not a hard core developer so I dont use Visual Studio. Thanks in advance

    Hi 
    I have customised the list view webpart using a custom xsl file by including it in the xsl link of the list view webpart. So i think i need to include the condition in the xsl file itself else it wont work. Since the list view webpart isnt using the default
    xsl. Please let me kknow if you have any idea about including a condition in xsl to check if there are not items in view. 
    The code of the xsl is included below.
    <!--
    This section is the set up and can be used at the top of any external XSLT stylesheet file
    -->
    <xsl:stylesheet
    xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
    version="1.0"
    exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
    <table>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowview"></xsl:call-template> 
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
        <tr>
      <td><img height="78" width="60"><xsl:attribute name="src"><xsl:value-of select="@Photo"/></xsl:attribute></img></td>
        <td>
        <table style="margin-left:10px;">
        <tr><td><xsl:value-of select="@FullName"/></td></tr>
        <tr><td><xsl:value-of select="@DOBinWords"/></td></tr>
        </table>
        </td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>

  • Error in Creating a Chart Web Part Connected to a List-Column named "" already belongs to this DataTable

    Hi,
    I am trying to create a Chart Web Part that is connected to a list. 
    I inserted a Chart Web Part on the page.
    In Step 1, I chose, Connect to a List.
    In Step 2, I chose the List, "QPAPForm"
    After I connect to the list (QPAPForm), and I get to step 3 to Retrieve and Filter Data, I have the following error message:  "Please correct the following: A column named "Update Policy Tasks" already belongs to this Data Table.
    "Update Policy Tasks" is a Workflow used on this list (QPAPForm), but it is not a column value per se.
    How do I correct this issue?
    Thanks,
    Jan

    Hi,
    I have done a test, and I can’t reproduce your issue.
    I created a custom list and an approval workflow which generated an column in the custom list. Then created a Chart Web Part which was connected to the custom list, I didn’t meet any error.
    Let’s verify the following:
    What template is your List template? what columns does the list has?
    What kind of workflow has generated the “Update Policy Tasks” column?
    I suggest you re-create the list without workflow and do a test, compare the results.
    Best Regards
    Lisa Chen

  • Internet Explorer 11 and SharePoint 2013 Standard - Web Parts and Calendar Don't Display/Render Correctly

    Hello everyone.
    I am currently running a fully patched (Service Pack 1) version of SharePoint Standard 2013 On Premises. I am having 2 problems that are reproducible on both Windows 7 and Windows 8.1 on multiple computers when running Internet Explorer 11 (fully updated
    through Windows Update). The issues are "fixed" when running compatibility view in the browser or using Chrome/Firefox.
    The issues are as follows:
    Issue 1 Calendar view does not display correctly
    Issue 2 Web parts do not display correctly when editing a page.
    Picture of calendar
    Webpart "edit menu dropdown" in upper right corner is replaced with 2 up arrows. Clicking minimizes web part.
    Is there any word on a fix for this? Is this something only I am experiencing? Is there an issue with my SharePoint server? I would hate to have to uninstall IE11 from 300 machines and install IE10.
    Thanks

    There are a few critical issues
    Pages will not enter edit mode. You will click Settings > Edit Page and the page will simply refresh but will not change over into edit mode. Seems to only affect pages with
    Web Part Zones.
    Calendar will not enter edit mode.
    Web Part Properties cannot be modified. If you are able to get into edit mode (you can edit wiki pages) you will not be able to modify existing Web Parts by using the Web Part
    Properties panel. Instead you will see a really weird collapse button that looks like it is coming from the mobile view but you cannot modify web part properties… even through the ribbon controls.
    I cannot use the import spreadsheet app, the error says it is not supported with the current browser.
    When I hoover over a “people” field I cannot see their information.
    I had all these capabilities with IE9
    This suggestion I found online appears to fix issues 1-3.
    http://windowsitpro.com/windows-7/fixing-most-not-all-ie11-compatibility-problems
    To run in compatibility mode
    Press ALT + T when viewing your      SharePoint page
    Click Compatibility View Settings      in the menu that appears
    Click Add to add the current      SharePoint site to your list of compatibility view pages
    Click Close

  • Content Query Web Part and special characters in file names

    Hi All,
    Is there an out-of-box way to display periods in a file name if I am displaying a document library files? I do not want to end up doing a custom item style if possible.
    For example, file name is 8.5x11Letterhead.docx, 8.5x11Resume.pdf etc.  I do not want to display the file names as 85x11Letterhead.docx.
    Thanks

    Hi,
    Would mind providing a screenshot about how your Content Query Web Part rendering in your environment?
    In my environment, it displays the filename which contains periods:
    I would suggest you create a new page and insert a Content Query Web Part to perform the test again.
    Feel free to reply with the test result or if there any progress.
    Thanks
    Patrick Liang
    Forum 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]
    Patrick Liang
    TechNet Community Support

Maybe you are looking for