<?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 Cisco DNA Center API -- Problems creating Buildings SITEs in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/cisco-dna-center-api-problems-creating-buildings-sites/m-p/4478190#M8993</link>
    <description>&lt;P&gt;I try to create a Building via Rest-Call with the next JSON-payload:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;"type":&amp;nbsp;"building",
&amp;nbsp;&amp;nbsp;&amp;nbsp;"site":&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"building":&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"name":&amp;nbsp;"Test_Building",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"address":&amp;nbsp;"123&amp;nbsp;Main&amp;nbsp;Street",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"parentName":&amp;nbsp;"Global/TestArea",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"latitude":&amp;nbsp;"51.0458",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"longitude":&amp;nbsp;"5.6413"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/PRE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Then I receive&amp;nbsp;the response:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"executionId":&amp;nbsp;"e52a559f-f1cc-48c1-90b0-3250db9cdf08",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"executionStatusUrl":&amp;nbsp;"/dna/platform/management/business-api/v1/execution-status/e52a559f-f1cc-48c1-90b0-3250db9cdf08",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"message":&amp;nbsp;"The&amp;nbsp;request&amp;nbsp;has&amp;nbsp;been&amp;nbsp;accepted&amp;nbsp;for&amp;nbsp;execution"
}&lt;/PRE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I look for the status of the execution i receive&amp;nbsp;this information:&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{&lt;BR /&gt;    "bapiKey": "50b5-89fd-4c7a-930a",
    "bapiName": "Create Site",
    "bapiExecutionId": "e52a559f-f1cc-48c1-90b0-3250db9cdf08",
    "startTime": "Fri Oct 01 09:44:55 UTC 2021",
    "startTimeEpoch": 1633081495275,
    "endTime": "Fri Oct 01 09:44:55 UTC 2021",
    "endTimeEpoch": 1633081495558,
    "timeDuration": 283,
    "status": "FAILURE",
    "bapiError": "{\n  \"bapiErrorResponse\" : {\n    \"bapiKey\" : \"50b5-89fd-4c7a-930a\",\n    \"bapiName\" : \"Create Site\",\n    \"bapiErrorCode\" : \"\",\n    \"bapiErrorMessage\" : \"\"\n  },\n  \"componentErrorResponse\" : [ {\n    \"compId\" : \"uuid0bb941aa\",\n    \"compName\" : \"CreateBuildingInput\",\n    \"compErrorCode\" : \"500\",\n    \"compErrorMessage\" : \"e52a559f-f1cc-48c1-90b0-3250db9cdf08 | c0ef82aa-3d0e-4665-b228-27896b955918 | 50b5-89fd-4c7a-930a : ScriptProcessor Execution Failed with error: SyntaxError: Invalid JSON: &amp;lt;json&amp;gt;:1:0 Expected json literal but found &amp;lt;\\n&amp;lt;!--# Id: internetaccess.html 292306 2021-08-05 16:06:16Z szhang --&amp;gt;\\n^ in &amp;lt;eval&amp;gt;  at line number : 16 \",\n    \"componentType\" : \"JAVASCRIPT_TRANSFORM\"\n  } ]\n}",
    "runtimeInstanceId": "DNACP_Runtime_7421398c-8fa0-4703-b900-4b0305b719b5"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works as expected when I use the same call to create an area or floor.&lt;/P&gt;&lt;P&gt;Only when trying to create a building I get this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DNAC is on v&lt;SPAN&gt;ersion&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2.1.2.5 and Cisco DNA Center Platform is on version 1.3.99.272.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 01 Oct 2021 09:47:50 GMT</pubDate>
    <dc:creator>christian.heussen</dc:creator>
    <dc:date>2021-10-01T09:47:50Z</dc:date>
    <item>
      <title>Cisco DNA Center API -- Problems creating Buildings SITEs</title>
      <link>https://community.cisco.com/t5/network-platform-api/cisco-dna-center-api-problems-creating-buildings-sites/m-p/4478190#M8993</link>
      <description>&lt;P&gt;I try to create a Building via Rest-Call with the next JSON-payload:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;"type":&amp;nbsp;"building",
&amp;nbsp;&amp;nbsp;&amp;nbsp;"site":&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"building":&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"name":&amp;nbsp;"Test_Building",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"address":&amp;nbsp;"123&amp;nbsp;Main&amp;nbsp;Street",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"parentName":&amp;nbsp;"Global/TestArea",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"latitude":&amp;nbsp;"51.0458",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"longitude":&amp;nbsp;"5.6413"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/PRE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Then I receive&amp;nbsp;the response:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"executionId":&amp;nbsp;"e52a559f-f1cc-48c1-90b0-3250db9cdf08",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"executionStatusUrl":&amp;nbsp;"/dna/platform/management/business-api/v1/execution-status/e52a559f-f1cc-48c1-90b0-3250db9cdf08",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"message":&amp;nbsp;"The&amp;nbsp;request&amp;nbsp;has&amp;nbsp;been&amp;nbsp;accepted&amp;nbsp;for&amp;nbsp;execution"
}&lt;/PRE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I look for the status of the execution i receive&amp;nbsp;this information:&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{&lt;BR /&gt;    "bapiKey": "50b5-89fd-4c7a-930a",
    "bapiName": "Create Site",
    "bapiExecutionId": "e52a559f-f1cc-48c1-90b0-3250db9cdf08",
    "startTime": "Fri Oct 01 09:44:55 UTC 2021",
    "startTimeEpoch": 1633081495275,
    "endTime": "Fri Oct 01 09:44:55 UTC 2021",
    "endTimeEpoch": 1633081495558,
    "timeDuration": 283,
    "status": "FAILURE",
    "bapiError": "{\n  \"bapiErrorResponse\" : {\n    \"bapiKey\" : \"50b5-89fd-4c7a-930a\",\n    \"bapiName\" : \"Create Site\",\n    \"bapiErrorCode\" : \"\",\n    \"bapiErrorMessage\" : \"\"\n  },\n  \"componentErrorResponse\" : [ {\n    \"compId\" : \"uuid0bb941aa\",\n    \"compName\" : \"CreateBuildingInput\",\n    \"compErrorCode\" : \"500\",\n    \"compErrorMessage\" : \"e52a559f-f1cc-48c1-90b0-3250db9cdf08 | c0ef82aa-3d0e-4665-b228-27896b955918 | 50b5-89fd-4c7a-930a : ScriptProcessor Execution Failed with error: SyntaxError: Invalid JSON: &amp;lt;json&amp;gt;:1:0 Expected json literal but found &amp;lt;\\n&amp;lt;!--# Id: internetaccess.html 292306 2021-08-05 16:06:16Z szhang --&amp;gt;\\n^ in &amp;lt;eval&amp;gt;  at line number : 16 \",\n    \"componentType\" : \"JAVASCRIPT_TRANSFORM\"\n  } ]\n}",
    "runtimeInstanceId": "DNACP_Runtime_7421398c-8fa0-4703-b900-4b0305b719b5"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works as expected when I use the same call to create an area or floor.&lt;/P&gt;&lt;P&gt;Only when trying to create a building I get this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DNAC is on v&lt;SPAN&gt;ersion&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2.1.2.5 and Cisco DNA Center Platform is on version 1.3.99.272.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Oct 2021 09:47:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/cisco-dna-center-api-problems-creating-buildings-sites/m-p/4478190#M8993</guid>
      <dc:creator>christian.heussen</dc:creator>
      <dc:date>2021-10-01T09:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco DNA Center API -- Problems creating Buildings SITEs</title>
      <link>https://community.cisco.com/t5/network-platform-api/cisco-dna-center-api-problems-creating-buildings-sites/m-p/4487008#M8994</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/446066"&gt;@christian.heussen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a very similar case as yours, presented as a bug:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvu16691?rfs=iqvred" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Cisco DNA Center 1.3.3.4: timeout error while generating Inventory report&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may search through the &lt;A href="https://bst.cloudapps.cisco.com/bugsearch" target="_blank" rel="noopener"&gt;Cisco Bug Search Tool&lt;/A&gt; for more...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 15:57:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/cisco-dna-center-api-problems-creating-buildings-sites/m-p/4487008#M8994</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2021-10-15T15:57:09Z</dc:date>
    </item>
  </channel>
</rss>

