Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all 25064 articles
Browse latest View live

Running a CAML will return the following error "ERROR: cannot run Query: Microsoft.SharePoint.SPException: One or more field types are not installed properly. Go to the list settings page to delete these fields. ---> System.Runtime.InteropServices.COMExc"

$
0
0

I define the following CAML query inside the "SP CAML Query Helper" :-

<Where><Or><And><Eq><FieldRef Name="ContentTypeId" /> <Value Type="ContentTypeId">0x01030039A425F609A70A44BA580AF4A69CB18802</Value></Eq><Eq><FieldRef Name="Technical_x0020_Delivery_x0020_Team" LookupId="TRUE" /><Value Type="Integer"><UserID/></Value></Eq></And><And><Eq><FieldRef Name="ContentTypeId" /> <Value Type="ContentTypeId">0x01030039A425F609A70A44BA580AF4A69CB18803</Value></Eq><Eq><FieldRef Name="User_x0020_Support_x0020_Delivery_x0020_Team" LookupId="TRUE" /><Value Type="Integer"><UserID/></Value></Eq></And></Or></Where>



what i want to do is to return list items that have the following :-

  • CT with ID = "0x01030039A425F609A70A44BA580AF4A69CB18802"&"Technical_x0020_Delivery_x0020_Team = login user "

OR

  • CT with ID = "0x01030039A425F609A70A44BA580AF4A69CB18803"&"User_x0020_Support_x0020_Delivery_x0020_Team = login user "

but on the "SP CAML Query Helper" i got the following error:-

[15:41:06] ERROR: cannot run Query: Microsoft.SharePoint.SPException: One or more field types are not installed properly. Go to the list settings page to delete these fields. ---> System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.0x81020014
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) --- End of inner exception stack trace --- at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData() at Microsoft.SharePoint.SPListItemCollection.GetEnumerator() at SPCAMLQueryHelper.WinWork.ExecuteQuery.b__0()





5000 limit problem

$
0
0

I am having a list with more than 5000 items.

But, I am not using OOB page to view it.  I am only using Programmatic access using REST API.

Should I worry about the 5000 limit-error & apply recommended solutions like Indexing?

SP2013 PerformancePoint Services - Can you create Analytic Chart from SharePoint List??

$
0
0
I have SP2013 PerformancePoint Services Configured in my environment. I created a BusinessIntelligence Site and using Dashboard Designer created a data connection using SharePoint List. This is the only data connection i have at the moment. This list contains the data that needs to be converted to chart.
When I try to create a analytic chart report, i get the following message:
"There are no analysis services data sources available. Create a new data source, or add a document library to the workspace that contains one."

How can Icreate a chart in PerformancePoint services using SharePoint List as the data source.. I  do not want to use Excel Services and I am using Excel 2010 not Excel 2013(can not use ODATA functionality)..

Please Help !!!

Where is 5000 list item threshhold problem?

$
0
0

I wanted to try the 5000 item threshold problem with lists.

1. Create a list of type Contacts

2. Inserted 5000 items through code

3. Opened list in browser

NO ERRORS!

Increased items to 25000

NO ERRORS!

Ensured no Indexed Columns in the list

Am I doing correct?

How we can test the 5000 list item threashold problem?

Pagination to List using SharePoint REST API

$
0
0

Hi,

i am trying to implement pagination using REST API. I have created a table html where i am getting list items(top=30), but i need pagination so when we click on Next button it should come next 30 items and so on, same as previous button(similar to our default SharePoint List items). I can achieve this using knockout,js, but how can i implement without knockout?




Outlook Template be open from Display form

$
0
0

Hello All Gurus - Is it possible to open Outlook (2007/2010) Template from a List display form with a link? I started by putting mailto: link which was very easy but the text is so big and formatted that it can't be done by mailto:. So, am finding if is it possible to open a pre-saved custom outlook template? We don't have Outlook 2013 yet. Or is it possible to create a document library with the outlook template like we can do with word/excel template.

Any suggestion please.

Regards,


Khushi

turn off notifications from 0365 suitebar / ribbon

$
0
0

is is possible to completely turn off notifications for all users by default?

I know you can go to site setting > 0365 settings and modify for individual but I want to turn them off for all users by default. 

Any ideas? Powershell? or site admin setting?

I can hide the icon no problems but people still get the notifications and they really don't want them.


sayitfast

Pnp Provisioning.UX.AppWeb

$
0
0
I've done all the setup and configuration for this project. However, when I browse to the app I get an internal 500 error. the line of code that is causing it is  Page.RegisterWebAPIService("api/provisioning") in Default.aspx. If I comment this line out it works fine. Any idea why this call is failing?

Retrieve items from a list (example fail)

$
0
0
I'm trying to follow the examples in article:

https://msdn.microsoft.com/library/jj163201.aspx

Retrieve items from a list

function retrieveListItems(siteUrl) {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('Announcements');

    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml(
        '<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
        '<Value Type=\'Number\'>1</Value></Geq></Where></Query>' +
        '<RowLimit>10</RowLimit></View>'
    );
    this.collListItem = oList.getItems(camlQuery);

    clientContext.load(collListItem);
    clientContext.executeQueryAsync(
        Function.createDelegate(this, this.onQuerySucceeded),
        Function.createDelegate(this, this.onQueryFailed)
    );
}

function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();

    while (listItemEnumerator.moveNext()) {
        var oListItem = listItemEnumerator.get_current();
        listItemInfo += '\nID: ' + oListItem.get_id() +
            '\nTitle: ' + oListItem.get_item('Title') +
            '\nBody: ' + oListItem.get_item('Body');
    }

    alert(listItemInfo.toString());
}

function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() +
        '\n' + args.get_stackTrace());
}

I've modified the code to get items from Documents or from other lists.  When I try it fails.  I'm not sure what is missing. 

My code:

ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
function retrieveListItems(siteUrl) {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('Documents');

    var camlQuery = new SP.CamlQuery();
    //camlQuery.set_viewXml(
    //    '<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    //    '<Value Type=\'Number\'>1</Value></Geq></Where></Query>' +
    //    '<RowLimit>10</RowLimit></View>'
    //);
    this.collListItem = oList.getItems(camlQuery);

    clientContext.load(collListItem);
    clientContext.executeQueryAsync(
        Function.createDelegate(this, this.onQuerySucceeded),
        Function.createDelegate(this, this.onQueryFailed)
    );
}

function onQuerySucceeded(sender, args) {
    console.log('succeed...')
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();

    while (listItemEnumerator.moveNext()) {
        var oListItem = listItemEnumerator.get_current();
        listItemInfo += '\nID: ' + oListItem.get_id() +
            '\nTitle: ' + oListItem.get_item('Title') +
            '\nBody: ' + oListItem.get_item('Body');
    }

    alert(listItemInfo.toString());
}

function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() +
        '\n' + args.get_stackTrace());
}
I commented out the CAML in hopes it would get me all the data.  I think that's what the KB article says.

F12 tools show oList is undefined.

var oList = clientContext.get_web().get_lists().getByTitle('Documents');


David Jenkins

Create a sitecolumn in visual studio 2013 that points to a sps list

$
0
0

I currently have this column created and working with the following information 'hard coded' choices as shown below.

<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Field
       ID="{6db7f2b3-a268-4eca-b655-c683b546f55e}"
       Name="Job prerequistes"
       DisplayName="Job prerequistes"
       Required="FALSE"
       Group="ShareQL"
       Type="MultiChoice"><CHOICES><CHOICE>Use Cases</CHOICE><CHOICE>javascript</CHOICE><CHOICE>html5</CHOICE><CHOICE>asp.net</CHOICE><CHOICE>c#</CHOICE><CHOICE>SharePoint</CHOICE><CHOICE>Java</CHOICE><CHOICE>C++</CHOICE><CHOICE>Cobol</CHOICE><CHOICE>JQUERY</CHOICE></CHOICES></Field></Elements>

I want to change this so its pointing to a list that is already created in sharepoint at the following path.http://portal/Lists/Locations/AllItems.aspx

How do I update my code in the elements.xml file to use the sharepoint list instead of the hard coded choice as I have above?

Hoping someone can help.

SigningCredentials was not initialized Error in provider hosted high trusted app

$
0
0

Hi All

 I am creating a provider hosted app which is hosted in IIS trusted site. I followed stceps from  https://msdn.microsoft.com/en-us/library/office/fp179901.aspx..I am getting SigningCredentials was not initialized issue .

SigningCredentials was not initialized

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: SigningCredentials was not initialized

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[InvalidOperationException: SigningCredentials was not initialized]
   ProviderhostedAppWeb.TokenHelper.IssueToken(String sourceApplication, String issuerApplication, String sourceRealm, String targetApplication, String targetRealm, String targetApplicationHostName, Boolean trustedForDelegation, IEnumerable`1 claims, Boolean appOnly) +939
   ProviderhostedAppWeb.TokenHelper.GetS2SClientContextWithWindowsIdentity(Uri targetApplicationUri, WindowsIdentity identity) +407
   ProviderhostedAppWeb.Pages.Default.Page_Load(Object sender, EventArgs e) +170
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

I didnt change anything in the default.aspx which should write the current developer site name.

Pls help to resolve this issue.

Regards

Jhanani


Janani.R

Merging columns from 2 different content types into one view

$
0
0

I have a requirement to display columns from a custom list and the associated workflow tasks list into a single view. The custom list contains vendor name and the amount of the invoice while the Task shows the Assigned to and the date it was assigned. My customer wants this information combined into a single line in a custom view.

Any thoughts on how to accomplish this most efficiently?

The second part of this is that the records would be pulled from multiple site collections at different urls.

Thanks!


Love them all...regardless. - Buddha

How to migrate custom SharePoint solution to Office 365 ?

$
0
0

Hello,

I have custom SharePoint solution developed using Visual Studio project for SharePoint 2013 platform that contains following SharePoint objects:

  1. Site Columns and Content Types
  2. Lists
  3. Web parts
  4. User controls
  5. Modules
  6. Master Pages and Page layouts
  7. HTTP Handlers

Would you please let me know how can I migrate above features and contents on Office 365 ? ( 
Basically, I require to migrate entire on-premises SharePoint 2013 custom solution working on Office 365 )

Your answers will be highly appreciated !

Thanks and Regards,


Dipti Chhatrapati

Multiple site collections access files from central location

$
0
0
I have been looking but have not been able to find it. Is there a way where you can put a document library containing html and js files in it in a central location in a SharePoint 2013 site collection and then just reference it in content editor web part in different site collections?

Unable to ping SharePoint Apps domain

$
0
0

Hi,

I have created a new domain using Windows Server 2008 R2 DNS Manager-->Forward Lookup Zones--> New Zone... (say abc.com), after that I createdNew Alias (CName).... (say *.abc.com); when I tried to ping apps.abc.comin command prompt, this error message appeared "Ping request could not find host apps.abc.com. Please check the name and try again"  

Any help please?

Thanks in advance


Sharepoint 2013 Client Object Model Deployment

$
0
0

I have worked on Sharepoint 2013 client object model and created the MVC razor web application. I have used the sharepoint Custom Lists to store the data. All the things work fine till development but when I deploy the web application on staging site it started behave strangely. 

When I submit any form through razor then I found that system inserts the record in Custom list twice! However it was just working through Visual studio 2013 Ultimate. So I have deploy my web application on my local IIS and I found that it also works fine there and data has been submitted accurately (without twice records). 

I tired to investigate this issue but not luck. Our staging server is windows server 2012 R2. 

My question is is there any thing else i need to install on staging? 

Note:- .net version and the installed VS also same on staging as installed on development server. so I don't think its the different versions issue.

CSR - New list item - attachments

$
0
0

Hi,

I am using CSR for the new form in a list (new list item). The columns work fine but the attachments are not working.

When I click on the attachments icon, I get the error "span with id part1 does not exist".

Can you please share some sample csr implementation that uses attachments in the new form.

Also, is it a best practice to modify the new list item webpart and use the js link for the CSR or any other procedure to be followed (like list definition)

Thanks.

RK Senthil

List Definition - Best practice

$
0
0

Hi,

I have a requirement to create a list and whenever an item is created, an email should be sent to the users.

I have created the list in the site manually , created a feature and that feature would attach the itemadded event to the specific list.(which will send mail)

My peer is suggesting to create the list using a list definition as its a best practice, but he could not justify why the list has to be created using a list definition, just mentioning that its a best practice.

Since I will not use this list anywhere else, (we need that list only once in that specific list), I think creating list definition is not required for the below reason.

* When creating a new list, this list definition will show up which is not needed as we will not create any other list using this definition. so we have to use list definition only if we want to create many lists in many sites using that list definition.

* Any small changes in the list settings / column settings need code change / deployment.

* Will take time to develop list definition compared to creating lists manually.

Please suggest which is the best way or any other best practice.

Thanks.

Content Search Web Part breaks Custom Visual Web Part with UpdatePanel?

$
0
0

Hi all,

I'm having this error where-in any page / page layout with Content Search Web Part breaks my Custom Visual Web Part control. My Custom Control has an UpdatePanel in it, which I use to update only specific items on that control.

If I click the button trigger for that control, it performs perfectly on other pages. But if I do it on a page with a Content Search Web Part, it shows me this error:

Line: 5
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'ebPartEditing|false|<script type='text/j'.

Does anyone know why this happens?

Thank you

How to add footer text in ABCPDF.dll

$
0
0

Hi,

Kindly share some idea, How to add footer text at run time using existing PDF in ABCPdf.

Viewing all 25064 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>