Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8328039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:18:48+00:00 2026-06-09T01:18:48+00:00

I am using designing a Windows Form application using VB.net. I trying to have

  • 0

I am using designing a Windows Form application using VB.net. I trying to have the application return the number of rows in a specific SharePoint List. Everything works perfectly when I I remove the ndQuery.InnerXml code; however, I want to filter the list before I get the count. The two columns I want to filter are “Assigned Employee” and “status.” I looked at many different posts here on Stack(SharePoint SoapServerException calling GetListItems web service), but my Exception is relating to the Query. The detail of the soapserverException is: “One or more field types are not installed properly. Go to the list settings page to delete these fields: 0x81020014.”

I tried going to the relationship page, but I could not browse to it:

(url)/Relationships%20List/allitems.aspx

Can any one see a problem with the Query code?

Imports System
Imports System.IO
Imports System.Net
Imports System.Xml
Imports <xmlns="rs">
Public Class Form1

Dim i As Integer

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim listService As New getListItems.Lists
    listService.Credentials = CredentialCache.DefaultCredentials
    listService.Url = "http://(servername)/_vti_bin/Lists.asmx"
    Dim xmlDoc = New System.Xml.XmlDocument()

    Dim ndQuery As XmlNode =
    xmlDoc.CreateNode(XmlNodeType.Element, "Query", "")
    Dim ndViewFields As XmlNode =
        xmlDoc.CreateNode(XmlNodeType.Element, "ViewFields", "")
    Dim ndQueryOptions As XmlNode =
        xmlDoc.CreateNode(XmlNodeType.Element, "QueryOptions", "")

    ndQueryOptions.InnerXml =
        "<IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns>"
    ndViewFields.InnerXml = "<FieldRef Name='Assigned Employee'/><FieldRef Name='Status'/>"
    ndQuery.InnerXml = "<Where><And><Contains><FieldRef Name ='Assigned Employee'/><Value Type='Text'>Engineer</Value></Contains><Contains><FieldRef Name='Status'/><Value Type='Text'>New</Value></Contains></And></Where>"

    Try

        Dim ndListItems As XmlNode =
                listService.GetListItems("Requests", Nothing, ndQuery, _
                ndViewFields, Nothing, ndQueryOptions, Nothing)

        Dim n1 As XmlNode = ndListItems.Item("rs:data")
        Dim a As String = n1.Attributes("ItemCount").InnerText

        'Attempted For each loop, but not needed:
        'Dim listItemCount As String
        'Dim innerXML = New System.Xml.XmlDocument
        'innerXML.LoadXml(ndListItems.InnerXml)
        'Dim rows As XmlNodeList = innerXML.GetElementsByTagName("rs:data")

        'For Each (XmlNode Attribute In rows)
        'Next


        Label1.Text = a

    Catch ex As System.Web.Services.Protocols.SoapException

        Label1.Text = ("Message:" + ControlChars.Lf + ex.Message +
            ControlChars.Lf +
        "Detail:" + ControlChars.Lf + ex.Detail.InnerText +
            ControlChars.Lf +
        "StackTrace:" + ControlChars.Lf + ex.StackTrace)

    End Try
End Sub
End Class
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:18:51+00:00Added an answer on June 9, 2026 at 1:18 am

    I discovered the problem when breaking apart the query statement into two parts:

    'ndQuery.InnerXml = "<Where><Eq><FieldRef Name ='Assigned_x0020_Employee'/><Value Type='Text'>Engineer</Value></Eq></Where>"
    'ndQuery.InnerXml = "<Where><Eq><FieldRef Name ='Status'/><Value Type='Text'>New</Value></Eq></Where>"
    

    I figured out that although one of the Columns in the SP list was named “Assigned Employee,” the actual FieldRef Name was just employee. When I modified the code to include that, the error went away. I was spending all my time changing the Value Type, instead of looking at the FieldRef Name

    Final Conclusion:
    The “one or more field types are not installed properly” error not only gets returned if the “Value Type” is incorrect, but also when the “FieldRef Name” contains the wrong label.

    Final working code line:

    ndQuery.InnerXml = "<Where><And><Eq><FieldRef Name ='Employee'/><Value Type='Text'>Engineer</Value></Eq><Eq><FieldRef Name='Request_x0020_Status'/><Value Type ='Text'>New</Value></Eq></And></Where>"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am designing a web application using the ASP.net MVC framework. I would like
I am designing a multipage windows form using panels. I'm displaying a login form
I'm in the beginning stages of designing an application using Prism and have a
Im designing a dialerPad form using Windows form, there is a textbox which should
I'm currently designing a windows mobile application using compact framework 3.5 and I need
I'm designing a windows form with a TabControl that contains 2 tabs. I have
I have created a small application using Microsoft .NET. I don't have problems with
I'm designing a game for windows 8 using HTML5 , but my game can't
I'm designing an HTML 5 site using a header, article, and footer. I have
I am designing a shared add-in using VB.Net 2008 and VSTO that has to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.