10-01-2021 02:47 AM
I try to create a Building via Rest-Call with the next JSON-payload:
{ "type": "building", "site": { "building": { "name": "Test_Building", "address": "123 Main Street", "parentName": "Global/TestArea", "latitude": "51.0458", "longitude": "5.6413" } } }
Then I receive the response:
{ "executionId": "e52a559f-f1cc-48c1-90b0-3250db9cdf08", "executionStatusUrl": "/dna/platform/management/business-api/v1/execution-status/e52a559f-f1cc-48c1-90b0-3250db9cdf08", "message": "The request has been accepted for execution" }
{
"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: <json>:1:0 Expected json literal but found <\\n<!--# Id: internetaccess.html 292306 2021-08-05 16:06:16Z szhang -->\\n^ in <eval> at line number : 16 \",\n \"componentType\" : \"JAVASCRIPT_TRANSFORM\"\n } ]\n}", "runtimeInstanceId": "DNACP_Runtime_7421398c-8fa0-4703-b900-4b0305b719b5" }
It works as expected when I use the same call to create an area or floor.
Only when trying to create a building I get this error.
DNAC is on version 2.1.2.5 and Cisco DNA Center Platform is on version 1.3.99.272.
10-15-2021 08:57 AM
Hello @christian.heussen,
I found a very similar case as yours, presented as a bug:
You may search through the Cisco Bug Search Tool for more...
Hope this helps!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide