Select to view content in your preferred language

Live layer widget - RPC Fault faultString="Unexpected < encountered" faultCode="null"

1480
12
07-07-2010 01:10 PM
SusanMordy1
Deactivated User
Hi

I am getting the following error with the live layer widget:

[RPC Fault faultString="Unexpected < encountered" faultCode="null" faultDetail="null"]

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright © 2008 - 2009 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.  See use restrictions in the file:
// <install location>/FlexViewer/License.txt
// 
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
 <layer>https://xxx.xxx.xx.bc.ca/ext/sgw/BCH.AGS/housing_data/MapServer/0</layer>
<query>OBJECTID = 238 
OR OBJECTID = 456 
OR OBJECTID = 251 
OR OBJECTID = 485 
OR OBJECTID = 425 
OR OBJECTID = 456 
OR OBJECTID = 362 
OR OBJECTID = 194 
OR OBJECTID = 456 
OR OBJECTID = 380 
OR OBJECTID = 135 
OR OBJECTID = 98 
OR OBJECTID = 441 
OR OBJECTID = 545 
OR OBJECTID = 466
OR OBJECTID = 239
OR OBJECTID = 136
OR OBJECTID = 546
OR OBJECTID = 541
OR OBJECTID = 552
OR OBJECTID = 339
OR OBJECTID = 85
OR OBJECTID = 504
OR OBJECTID = 216
OR OBJECTID = 399
OR OBJECTID = 257
OR OBJECTID = 138
OR OBJECTID = 433
OR OBJECTID = 311
OR OBJECTID = 308
OR OBJECTID = 510
OR OBJECTID = 401
OR OBJECTID = 79
OR OBJECTID = 452
OR OBJECTID = 278
OR OBJECTID = 199
OR OBJECTID = 536
OR OBJECTID = 176
OR OBJECTID = 275
OR OBJECTID = 512
OR OBJECTID = 162
OR OBJECTID = 365
OR OBJECTID = 332
OR OBJECTID = 426
OR OBJECTID = 54
OR OBJECTID = 438
OR OBJECTID = 237
OR OBJECTID = 404
OR OBJECTID = 503
OR OBJECTID = 52
OR OBJECTID = 122
OR OBJECTID = 182
OR OBJECTID = 427
OR OBJECTID = 446
OR OBJECTID = 487
OR OBJECTID = 475
OR OBJECTID = 422
OR OBJECTID = 490
OR OBJECTID = 97
OR OBJECTID = 451
OR OBJECTID = 1
OR OBJECTID = 488
OR OBJECTID = 478
OR OBJECTID = 274
OR OBJECTID = 364
OR OBJECTID = 508
OR OBJECTID = 556
OR OBJECTID = 338
OR OBJECTID = 537
OR OBJECTID = 498
OR OBJECTID = 547
OR OBJECTID = 483
OR OBJECTID = 405
OR OBJECTID = 206
OR OBJECTID = 233
OR OBJECTID = 307
OR OBJECTID = 177
OR OBJECTID = 395
OR OBJECTID = 459
</query>
 <fields>PROPERTY_NAME,PROPERTY_STREET_ADDRESS,COMMUNITY_NAME,FLOOR_SPACE_RATIO</fields>
 <titlefield>PROPERTY_NAME</titlefield>
 <refreshrate></refreshrate>
 <zoomscale>80000</zoomscale>
</configuration>



I don't get this message when I remove about half of the OBJECTID's queried.
I don't get this message when I call this map service in other widgets.
The map service is a secure map service.
Any ideas as to what is causing this problem?

Thanks,

Susan
Tags (2)
0 Kudos
12 Replies
RobertScheitlin__GISP
MVP Emeritus
Susan

  Try changing the Query to

OBJECTID IN (238,456,251,485,425,456,362,194,456,380,135,98,441,545,466,239,136,546,541,552,339,85,504,216,399,257,138,433,311,308,510,401,79,452,278,199,536,176,275,512,162,365,332,426,54,438,237,404,503,52,122,182,427,446,487,475,422,490,97,451,1,488,478,274,364,508,556,338,537,498,547,483,405,206,233,307,177,395,459)
0 Kudos
SusanMordy1
Deactivated User
Thanks Robert,
Looks like your suggestion worked!! as per usual...!!!
0 Kudos
WilliamRockwell
Occasional Contributor
Hello, I'm a Flex noob and I'm just tinkering with the API. I'm getting the same error message when trying to make a search widget. My service is just a simple service made from ArcMap, with only one layer in it.

<?xml version="1.0" ?>
<configuration>
    <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
    <layers>
        <layer>
            <name>PIN</name>
            <url>http://XX-XX/ArcGIS/services/parceltest/MapServer</url>
            <expression>PIN = '[value]'</expression>
            <textsearchlabel>Search by Parcel ID  [ Example: 1508200017 ]:</textsearchlabel>
            <graphicalsearchlabel>Type PIN number</graphicalsearchlabel>
            <fields>PIN</fields>
            <titlefield>PIN</titlefield>
            <linkfield>PIN</linkfield>
        </layer>
        <layer>
            <name>Owner</name>
            <url>http://XX-XX/arcgis/services/parceltest/MapServer</url>
            <expression>Owner LIKE '[value]'</expression>
            <textsearchlabel>Search by name... [ Example: Village of Vernon Hills ]

</textsearchlabel>
            <graphicalsearchlabel>Type name</graphicalsearchlabel>
            <fields>BILLTONAME</fields>
            <titlefield>BILLTONAME</titlefield>
            <linkfield>BILLTONAME</linkfield>
        </layer>
    </layers>
    <zoomscale>1000</zoomscale>
</configuration>

I get the same error message in both searches. Any help is greatly appreciated. Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Will,

Your url needs to have the specific layer that you are trying to search in the map service specified.

<url>http://XX-XX/ArcGIS/services/parceltest/MapServer/0</url>
0 Kudos
WilliamRockwell
Occasional Contributor
Thank you Robert for your quick reply. Unfortunately, I'm still getting the same error message. I confirmed the layer is 0, and the field I'm searching is text. Thanks again for your time, I appreciate it.

<url>http://xx-xx/ArcGIS/services/parceltest/MapServer/0</url>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
William,

   Do you have the shape and objectid fields visible in the mxd for that layer?
0 Kudos
WilliamRockwell
Occasional Contributor
ok never mind. I wasn't using "rest" in the http thread. all works now. Thanks!
0 Kudos
SharonGin1
Occasional Contributor
Hi Robert,

May I know the cause of this error? I'm facing the same problem with my application and it's only specific to Windows Vista and IE7 platform that this happens. It's within a secure environment and we do not get the same issue in a non-secured environment.
Within the same environment, there is not issue with Win7 and IE8.

We're calling the solveServiceArea task of an NAServer.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sharon,

   I have never heard of this issue with only a particular browser and OS Version... You need to use a http tool like fiddler, charles, etc to see the http url sent to the server and the responce back and see if that gives any clues.
0 Kudos