Content Query Web Part gives error when trying to edit
Hello there,
When I put the page in edit mode and try to edit the content query web part I get an unexpeced error. When searching the correlation ID from the error message I see this message a lot:
07/08/2014 11:51:03.72
w3wp.exe (0x5370)
0x49D8
Web Content Management
Publishing
7fz0
Medium
ConsoleUtilies.GetContextualControlMode had no currentPage so the current SPWebPartManager mode cannot be retrieved.
The error message says something about Publishing and I had an Publishing issue before the CQWB issue happened.
The thing is that the CQWB is dependent on the Publishing feature. The publishing feature when turned on (as site collection feature) creates Content types. One of these content types was removed because when I tried to create a new publishing site
I got an error about a missing content type.
I deactivated the site collection publishing feature (after deactivating it on all sites where it was activated) and then activated it again so it reacreates the content types. This was working, since now I can create Publishing sites again.
The problem is that I can not edit the CQWB anymore. But it is still showing the query in correct lay-out. Also when I add a new CQWB I have the same issue. I can add it, but not edit.
I also made a new test site collection and here everything works fine. I tried to copy the .webpart from the test to the problem-sitecollection, but the webpart is just not editable on my broken site collection.
Does anyone have any idea how to fix this? Im assuming it has something to do with the publishing issue I had....
Please help......
I disabled all publishing features on all subsites
Then I disabled the site collection publishing feature
Then I enabled the site collection publishing feature again
I enabled publishing feature on the subsites where I want to use the content query web part and also on the subsites where the query is coming from
So: Yes, the publishing feature is enabled
Similar Messages
-
Hi,
Workflow status web part gives error when going back to previous stage (using GO TO) transition activity in Project Server 2013 workflow.
Please guide how to create a workflow which restarts from a desired stage.Thanks for your prompt reply....
It gives following error
Workflow Status
This Web Part was unable to load.
Information that may be useful in solving this problem was written to the Unified Logging Service (ULS) log on the Project Web App with the following ID: e95a9c9c-1f68-90d7-0a3e-5951df70fec6
For more information, contact your Project Web App administrator.
what do you mean to restart the Project Server 2013 with different project name, please elaborate.... -
Content Query Web Part hasn't data in the first step.
I have a problem with the deployment of Content Query Web Part programmatically.
When I do the deployment, the Web Part appears in the required page with the correct configuration, but the problem is that it hasn't data. If I edit the page and I do click in "Apply" button of the Web Part, the data appears perfectly.
Do you know anything about this?
Thanks !!Hi Magnus, thanks for your quick response.
I'm deploying and adding this webpart in code-behind
ContentByQueryWebPart cqwp = new ContentByQueryWebPart();
cqwp.MainXslLink = "/Style Library/XSL Style Sheets/ContentQueryMain.xsl";
cqwp.Title = "Recently Documents";
cqwp.ItemStyle = "WithDocIcon";
cqwp.ChromeType = PartChromeType.Default;
cqwp.ItemLimit = 15;
cqwp.WebUrl = currentWeb.ServerRelativeUrl;
cqwp.SortBy = "Modified";
cqwp.SortByDirection = ContentByQueryWebPart.SortDirection.Desc;
cqwp.BaseType = "101";
cqwp.UseCache = false;
cqwp.AsyncRefresh = true;
cqwp.AutoRefresh = true;
PublishingWeb pweb = PublishingWeb.GetPublishingWeb(web);
cqwp.Update(pweb);
webPartManager.AddWebPart(cqwp, "Left", 0);
webPartManager.SaveChanges(cqwp);
Regards, -
Error When inserting Content Query Web part onto the page
i am using share point 2010 and when i am trying to insert content query web part onto the page i am getting the following error
i checked the correlation id in the logs file but could not find anything useful in it.
please suggest why this problem occuring everytime when i try to insert content query webpart onto the pageHi,
Check the correlation id in your logging files are the best way to investigate.
Did you check these files with "SharePoint ULS Log viewer". Maybe, that will be more easy for you to get the correlation Id.
Moreover, check the account's permissions with which you try to insert your webpart.
Regards.
Gilles Martinez
Twitter
Blog
Please mark as helpful/answer if this resolved your post -
Issues with Content Query Web Part List Override
I have modified a Content Query web part to show all checked out documents across my site collection. I used this property to get the checked out documents:
<property name="QueryOverride" type="string"><![CDATA[<Where><Geq><FieldRef Name="CheckoutUser" LookupId="TRUE"/><Value Type="int">0</Value></Geq></Where><OrderBy><FieldRef
Name="CheckoutUser"/></OrderBy>]]></property>
It fails when trying to view across the site collection and gives this error:
"There is a problem with the query that this webpart is issuing. Check the configuration of this webpart and try again."
However, it works for sub-sites.
Thus, I followed this blog to modify the ListsOverride property: http://geekswithblogs.net/simonh/archive/2013/05/08/increasing-the-number-of-lists-a-content-query-webpart-can.aspx I modified the property to:
<property name="ListsOverride" type="string"><![CDATA[<Lists Servertemplate="101" MaxListLimit="2000"></Lists>]]></property>
But now I am getting this response:
This query has returned no items. To configure the query for this Web Part, open the tool pane.
Can anyone tell me what the problem is? I cannot find anything in the ULS logs that would indicate a timeout from the SQL server or any other type of error.Hi Susan,
According to your description, my understanding is that there is something wrong when you override content query web part property.
As you said, the query override works for sub-site, I suggest you check the data in the parent site whether the data is valid.
Here are some detailed articles for your reference:
http://rmanimaran.wordpress.com/2010/10/19/getfind-all-checked-out-documents-from-a-document-library-using-caml/
http://msdn.microsoft.com/en-us/library/office/aa981241(v=office.14).aspx
Best Regards
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]
Zhengyu Guo
TechNet Community Support -
Content query web part is not working after chaning the DNS entry
Hi all,
We have a content query web part in the sharepoint site but it is not working after changing the DNS Entry for the web site ipaddress from one server to other . But it is working fine on the server, if we try to access the site from other system content
quey server its not working fine and its giving error message as bellow.
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.
Can anyone help me to fix this issue please.I have custom XSLT . But it is working fine before changing the dns entry as soon as we change the DNS entry the content quey web part is not working. I tried to delete the content query web part and add it once again to the page, As soon as content query
web part is added to the page the fallowing error message is displayed.
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.
Can anyone help me to fix this issue please. -
Content Query Web Part Fields Documentation?
Hello community, I have a question about content query web part. I want to use it to display information from a custom large list with more than just the title and description columns that the default allows. For example, I have a list with 50k items in
it and 20 columns. I want to be able to create multiple CQWPs to display select data and select columns for the appropriate users.
I am looking for good accurate documentation to help implement this. I seem to be finding multiple methods that people are using and I am not sure what is best in terms of performance - which is ideally why I want to use the CQWP in the first place (prevent
people from loading the 50k item list over and over).
By default, the content query web part looks great for displaying links to specific documents, but I am hoping that it can be configured to essentially create a mini-list of the large list.
EDIT: Forgot to mention that this is with a custom content type and all custom fields.Figured this out a few days ago. Found that there really wasn't any documentation that helped me tremendously or explained in a way that I could understand it completely (user error??). There was one video that I found on YouTube that helped considerably.
I took some of what he did, but found that I could accomplish what he did with less than what he showed.
Pretty sure that by now everyone knows how to do this, but anyway, here is what I did:
I just exported a content query web part (after adding a blank one to a page), edited the CommonViewFields and the ItemXslLink (pointing to a copy of the original ItemStyle.xsl). Rename the copy of the file to whatever you want and then SAVE it locally (you
will upload it later to the Web Part Gallery or directly to the page for use when complete).
Create a new template at the bottom of the copy of the ItemStyle.xsl file (similar to all of the other templates that you see throughout the page).
Then make sure that the name that you selected for the name attribute of the template tag is exactly the same as the name that you will put in single quotes in the match attribute. Again you can use the existing templates on the page as a guide.
Copy and paste some of the existing variables to your template (add them between the opening and closing template tags). For instance, I added the 'SafeLinkUrl' variable, which I copied from above, so that I could have it render when I select my template
when I configure the web part on the page.
Then you can create new fields utilizing the
<xsl:value-of>
tags. Utilize the select attribute to get the field name that you want; use the examples in the page to help guide you. You can use plain old HTML to style your content. For example, I created a table to display my results.
The CommonViewFields property from the .webpart file should have the field names that you want to add in them already (because you edited that earlier).
Add the new CQWP that you just modified to the page that you want and select the template name from the drop-down to get the template that you created. You should then see your new fields there too!
This worked for me. If anyone needs clarification on what I wrote, let me know. Anyway, I know that I am a few years too late, but whatever - hopefully this can help someone else. -
How to hide title of the list on Content Query Web Part?
I am trying to display the description on content query web part from a list. Even when I leave the Title field blank on "Presentation" section (editing the web part), the title shows up with the link along with the description. Is there any way
to hide the title or leave it as blank? Any help is highly appreciated.
Thanks,
EvilarHi Evilar,
Thanks for posting your issue, Kindly use the below mentioned CSS Style in ID of table tag to fix this issue
#hide-title .ms-viewheadertr {
display: none;
}OR
For Content Query Web part (WebPartWPQX) Note; X is a number of your web part.#WebPartWPQX .ms-viewheadertr
display: none;
}So only titles of the webpart within the WebPartWPQX will be hided.
Also, browse below mentioned URL for more details
http://www.balestra.be/2013/08/hide-column-titles-from-sharepoint-lists-libraries.html
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 -
Content Query Web Part - in 2010 but Catalog-Item Reuse in 2013
In SharePoint 2010 I exported this SharePoint Links List to be a WebPart that I can put for things. It's our company's "Popular Links." "WE" decide what is "Popular." We have a few that I am sharing here.
In 2010 I got this to be a web part that I can pop onto multiple sites on our site collection. Now in 2013, I'd like to use Search if possible to get this to work. I tried and it didn't come out right.
SharePoint 2013 Enterprise Edition RTM dec 2013 CU
I tried the Items Matching a Tag and I set a tag to be "Popular Links" and set the tag on the items below in this graphic. I then set it to look only at these.
This is on the same page on the "home" page, publishing turned on. I don't have the "feel" of the first "list" that I did on the graphic above. It's not CSS as it is on the same page using the same master page.
Also when I click on the link it takes me to the displayform.aspx?id=1 page and I want to have the user just click the hyperlink.
Could I / should I use the Catalog-Item Reuse feature with publishing and get a new site collection setup with this? I am frustrated as I'd like to "share" information in another site, just as this "perfect" example (for me) to
show this information multiple times.
Thank you!CQWB is supported for Publishing Sites or site having publishing feature turned on, on other it will not work as expected.
You can add it on the page from ribbon insert web part> from categories select Content Rollup > next pane slect Content Query.
http://info.axceler.com/Blog/bid/116286/Content-Query-Web-Part-vs-Content-Search-Web-Part
http://www.cwheeler76.com/Lists/Posts/Post.aspx?List=9a19060b-0efe-4368-8360-b07d23dc5c7b&ID=6&Web=916c3f13-7f62-4b71-b302-6fd9106b4bb2
here is MSDN to customize it:
http://msdn.microsoft.com/en-us/library/ff650512.aspx
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Content Query Web Part filter not returning any results
This CQWP stopped working after moving a number of files to new locations. It is configured in the following way:
Source: Show items from the following site and all subsites
List type: Pages Library
We want to filter the list by the article date, last 30 days. Without a filter, results are returned. If ANY filtering is applied, NO results are returned, NO error messages.
I experimented with "Group items by" filter, but it also resulted in no results.
If I change the Source field to a subfolder, I can return filtered results.
Any ideas?Make sure that ItemStyle.xslt is working fine, try to change the item style
for your content query web part, if it shows data then there your custom defined
item style is not working properly -
Content Query Web Part will not display all fields.
I would love some assistance on this. When I choose fields to display in the Web Part they do not appear. And I should say the the article "How to: Display Custom Fields in a Content Query Web Part" on the Developer Network is
a great start but it is only applicable to '07 and '10. Where is the detailed info for SP 2013??Hi,
According to your description, my understanding is that you want to display custom columns in Content Query web part in SharePoint 2013.
Per my knowledge, the method for SharePoint 2013 to display custom columns in Content Query web part is the same with SharePoint 2010.
The method in the link below is also can be used for SharePoint 2013:
http://msdn.microsoft.com/en-us/library/ms497457(v=office.14).ASPX
Do you encounter any issue when customizing in in a Content Query Web Part?
Here are some links about customizing the ItemStyle.xsl to display custom columns in Content Query web part in SharePoint 2013 for you to take a look:
http://prafulgoyal.blogspot.in/2013/04/sharepoint-content-query-webpart-oob.html
http://social.msdn.microsoft.com/Forums/en-US/49739730-47c1-43df-9d0e-ad506e6ca31b/display-multiple-columns-in-content-query-webpart
http://social.msdn.microsoft.com/Forums/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns?forum=sharepointgeneral
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Content Query Web Part - Sort Libraries by Name
Hello,
I created a Content Query Web Part that lists all Libraries under the current site (preferably it would be better to list only the Libraries on the current site but I couldn't manage to do it). However, the libraries are not sorted in any way.
The query is the following:
Path:{Site.URL}* contentclass:STS_List_DocumentLibrary -Title:Assets -Title:Templates
Whatever I select on the Sorting tab nothing happens, the results are displayed still in the same way, please see attached screenshot.
PS: I also want to do the same things to lists the subsites - which I also couldn't do to list only one level *Below* the current site - any tips appreciated.
path:"https://sharepointsite.com/sites/Test/Acquisitions/" contentclass:STS_Web Title<>AcquisitionsHi,
Did you use the content search web part?
I tried to reproduce the issue in my environment, it works well without any issue.
Did you set the sort by Title in the SORTING section?
I set the query just like yours:Path:{Site.URL}* contentclass:STS_List_DocumentLibrary Title:docs -Title:incoming
Then set the sort by Title in the sorting section.
You can check whether you have configured the SORTING option, then check whether it works.
Note: By default, the Title property is not enabled the sort option, you can configure it in
Central Administration->Manage Service Application->Search Service Application->Search Schma
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Duplicate groups in Content Query Web Part in SharePoint 2010
Hello,
I'm facing one weird issue in CQWP. I've a document library in SharePoint 2010 site where I have 2 columns - Title and Document Type. The column 'Document Type' is a Single line of Text column and mandatory. Users have entered bunch of documents in this
library by populating the metadata.
On one wiki page I have a CQWP where I'm showing the documents of this library grouped by 'Document Type'. The problem I am facing is that some documents are showing in different columns even though their 'Document Type' value is exactly same. Please see
below screenshot:
You can see that the documents under 'Industry Group Publications' are showing in 3 different columns, why?
My CQWP settings are:
Presentation: Number of columns to be shown: 5 (I've changed it to 3 also, but the same result)
Group items by: Document Type and sort order is Ascending (I've tried changing sort order as well, same result)
Limit number of items to display: This checkbox is unchecked (unlimited)
It's not just one case. I've seen this issue on other sites as well where same 'Group by' column value is being shown in different column rather than under same column while values are EXACTLY same.
Has anybody else faced this issue? What's the reason and solution to this problem?
Thanks in advance!
--AshishHi Ashish,
I tried to reproduce the issue in my environment. I created a content query web part displaying one library documents. The library has two columns, title and document type. However, document type is a single text column you need to manually write content
into.
I set the web part to group items by document type and left other settings to be by default. It worked as expected. I’d like to know if there is any difference from your situation, especially for the document type column so I can reproduce the issue from
my side.
Regards,
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] .
Rebecca Tu
TechNet Community Support -
Hello,
I'm querying custom list called "Links" on my home page using Content Query Web Part. CQWP shows the links, and when you click on it, it's going to the item display view. Can this behaviour be changed to, when you click on link it open the link destination?Hi Vivek,
Thanks for you help, issue resolved.
Thanks for Lakshmanan
Sethu -
Increase the font size of a Content Query Web part
Hi - I have been trying to increase the font size of one of my Content Query web parts, I've had a look at your articles however I am unsure where to insert the lines of code. Unfortunately I am not a programmer however I need to be able to increase the
font size, please can you assist?
http://social.technet.microsoft.com/Forums/sharepoint/en-US/d0cfd348-c9d0-43b7-bd00-3bb17d612ea0/increase-font-size-of-the-content-query-web-part?forum=sharepointgeneralprevious
Kind Regards
NatashaHi Natasha, Do you have multiple Content Query Web Parts on the same page? If so, are you looking to change the font on all of these or just a specific one?
Also, are you looking to make this change to your entire site or only a specific page?
Dimitri Ayrapetov (MCSE: SharePoint)
Maybe you are looking for
-
Here is the solution that fixed flash locking up my browser...
OK, I will attempt to explain as clearly as possible what was happening, and what I did to fix the issue. pretty simple, without all of the registry key hacks and edits, no in depth, "advanced", if you will, knowledge needed, so here goes The system
-
How to pass values to XML complex type of a Webservice using PL/SQL
HI, I need to call a web service from PL/SQL that has an complex type element. That complex type element has 4 child elements each of integer type. I want to pass values for this complex type using SOAP_API.add_parameter but I can't understand how to
-
Error with passive substitution
Hi experts, we have the following situation: user has approved SC using passive substitution. The problem is that after approval the status of SC is not updated and the work item is still in the inbox of the approver. thanks, Evgeny
-
I recently downloaded the iTunes 11.0.5 for Mac OS X and the iTunes store comes up as a blank page. I have already tried re-downloading iTunes and that didn't work... How can I get it to work?
-
Screen not full size with DVD movie
I have a new iMac and played my first DVD. It was a 16:9 letter box format. The DVD started as a very small picture. I then went to view and set for full screen mode. The movie still only expanded to 70% or so of the screen. Are iMAC not capable of u