<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Prime 3.8 API CRUD getEnum error in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4440507#M2315</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This entity may not appear as problematic in the UI.&lt;/P&gt;
&lt;P&gt;You can narrow it down by changing the value of .maxResults (and .firstResult if necessary).&lt;BR /&gt;Also could be useful to check xmpNbiFw.log and persistence.log.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 16:33:04 GMT</pubDate>
    <dc:creator>Olga Bozhko</dc:creator>
    <dc:date>2021-07-28T16:33:04Z</dc:date>
    <item>
      <title>Prime 3.8 API CRUD getEnum error</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4319740#M2312</link>
      <description>&lt;P&gt;I'm running a query of all the ClientDetails.json with pagination, and after quite a few successful queries, I get this error:&lt;/P&gt;&lt;PRE&gt;&amp;lt;ClientResponse(https://156.72.162.11:443/webacs/api/v4/data/ClientDetails.json?.full=true&amp;amp;.maxResults=250&amp;amp;.firstResult=18000) [500 ]&amp;gt;
&amp;lt;CIMultiDictProxy('Cache-Control': 'private', 'Expires': 'Thu, 01 Jan 1970 00:00:00 GMT', 'Set-Cookie': 'JSESSIONID=79AD54B05C167DF522949AC4ABF382CF; Path=/webacs; Secure; HttpOnly', 'Strict-Transport-Security': 'max-age=31622400; includeSubDomains', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'Content-Security-Policy': "default-src 'self' wss: https: data: 'unsafe-inline' 'unsafe-eval'", 'X-NBI-TIME': '360', 'X-Frame-Options': 'SAMEORIGIN', 'Date': 'Tue, 06 Apr 2021 08:56:46 GMT', 'Server-Timing': 'filters;dur=5;desc="Servlet filters"', 'Server-Timing': 'security;dur=927;desc="Authentication and authorization"', 'Server-Timing': 'cxf;dur=2;desc="CXF"', 'Server-Timing': 'nbi;dur=7;desc="NBI framework"', 'Server-Timing': 'db;dur=353;desc="Database access"', 'Server-Timing': 'marshalling;dur=0;desc="Response marshalling"', 'Server-Timing': 'total;dur=1294;desc="Total time"', 'Content-Type': 'application/json', 'Content-Length': '577', 'Connection': 'close', 'Server': 'Prime')&amp;gt;
{"errorDocument":{"httpResponseCode":500,"httpMethod":"GET","message":"errorId=12,componentName=CRUD Error Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.SecurityPolicyEnum'","exception":"com.cisco.xmp.web.query.PersistenceException: errorId=12,componentName=CRUD Error Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.SecurityPolicyEnum'","uriPath":"data/ClientDetails","queryParams":"{.full=[true], .maxResults=[250], .firstResult=[18000]}","domain":"ROOT-DOMAIN"}}&lt;/PRE&gt;&lt;P&gt;It looks like it always fails on the same page (firstResult=18000). Could this be a specific problematic client?&lt;/P&gt;&lt;P&gt;I saw a similar error in a post that said this issue was fixed in 3.5.1, but I'm running 3.8.1.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 06:36:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4319740#M2312</guid>
      <dc:creator>orp</dc:creator>
      <dc:date>2021-04-07T06:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Prime 3.8 API CRUD getEnum error</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4319943#M2313</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like one of the clients returns an unsupported value for policyType attribute.&lt;BR /&gt;You can find the full list of the supported values on the documentation page:&lt;BR /&gt;your-pi-ipaddress/webacs/api/v4/data/ClientDetails?_docs&lt;/P&gt;
&lt;P&gt;Can you please check and update?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:08:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4319943#M2313</guid>
      <dc:creator>Olga Bozhko</dc:creator>
      <dc:date>2021-04-07T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Prime 3.8 API CRUD getEnum error</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4440480#M2314</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Is there any smart way to find the problematic client? Would it appear problematic in the UI as well?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:52:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4440480#M2314</guid>
      <dc:creator>orp</dc:creator>
      <dc:date>2021-07-28T15:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Prime 3.8 API CRUD getEnum error</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4440507#M2315</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This entity may not appear as problematic in the UI.&lt;/P&gt;
&lt;P&gt;You can narrow it down by changing the value of .maxResults (and .firstResult if necessary).&lt;BR /&gt;Also could be useful to check xmpNbiFw.log and persistence.log.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 16:33:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4440507#M2315</guid>
      <dc:creator>Olga Bozhko</dc:creator>
      <dc:date>2021-07-28T16:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Prime 3.8 API CRUD getEnum error</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4442710#M2316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;About narrowing it down- I can never actually get the info for the actual endpoint and the order in the API doesn't tell me anything about how to find it in the UI, no?&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW- this sounds like a bug. If the field has specific supported types, why isn't it restricted to those values?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 08:03:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4442710#M2316</guid>
      <dc:creator>orp</dc:creator>
      <dc:date>2021-08-02T08:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Prime 3.8 API CRUD getEnum error</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4445463#M2317</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can change the values of .maxResults and .firstResult and this way get the problematic entity by a process of elimination.&lt;BR /&gt;Have you tried to check xmpNbiFw.log and persistence.log once the error occurs?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 11:22:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-8-api-crud-getenum-error/m-p/4445463#M2317</guid>
      <dc:creator>Olga Bozhko</dc:creator>
      <dc:date>2021-08-06T11:22:11Z</dc:date>
    </item>
  </channel>
</rss>

