Prerequisites
- [Yes ] Have you tested the operation in the API directly?
- [Yes ] Do you have the latest Ansible collection version?
- [Yes ] Review the compatibility matrix before opening an issue.
Name of the module
cisco.dnac.site_workflow_manager
Describe the bug
There is a change from 6.29 to 6.30 where 6.30 does not check if parent site exists in the hierarchy. This results in a bulk site creation which fails, this issue is still present in 6.40. Using an incorrect parent name eg Globasl,
The module message is as follows
6.29 - "msg": "Parent name 'Globasl' does not exist in the Cisco Catalyst Center."
6.30 - "msg": "Failed to execute the task create_sites with Task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559.Failure reason: One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.".
6.40 and 6.44 has been tested and they show the same behaviour of 6.30
Expected behavior
The expectation is to provide a meaningful message of a failure, like we have in 6.29
"msg": "Parent name 'Globasl' does not exist in the Cisco Catalyst Center."
Screenshots
n/a
Debug
See debug logs for 6.29 and 6.30 below in additional comments
Environment (please complete the following information):
Cisco DNA Center Version and patch: 2.3.7.9-70301
Ansible Version: 2.18.9
Collection version: cisco.dnac 6.29.0, 6.30.0 and tested 6.40 and 6.44
OS Version: Alpine 3.22
Additional context
See highlighted parts with ">>>>>".
cisco.dnac 6.29 logs
10-17-2025 10:00:25 DEBUG Site: init: 110: Logging configured and initiated
10-17-2025 10:00:25 INFO Site: validate_input: 495: Configuration details found in the playbook: [{'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}, 'site_type': 'area'}]
10-17-2025 10:00:25 INFO Site: validate_input: 515: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 10:00:25 DEBUG Site: check_return_status: 302: Line No: 2554 status: success, msg: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1169: Starting validation of site input data.
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1176: Config data found with 1 entries.
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1178: Validating entry in config: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1184: Validating 'name' field: Area_TEST.
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1192: Validating 'parent_name' field:Globasl
10-17-2025 10:00:25 INFO Site: validate_site_input_data: 1340: Successfully validated config params.
10-17-2025 10:00:25 DEBUG Site: check_return_status: 302: Line No: 2556 status: success, msg: Successfully validated config params.
10-17-2025 10:00:25 INFO Site: get_want: 1127: Processing site of type: area
10-17-2025 10:00:26 INFO Site: get_want: 1139: Desired State (want): [{'name': 'Area_TEST', 'parent_name': 'Globasl', 'type': 'area'}]
10-17-2025 10:00:26 DEBUG Site: check_return_status: 302: Line No: 2560 status: success, msg: Successfully validated config params.
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 812: Retrieving site name for site data: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 816: Identified site type: area
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 817: Retrieved parent name: Globasl
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 825: Retrieved site name: Area_TEST
10-17-2025 10:00:26 INFO Site: get_site_name_hierarchy: 834: Constructed site name: Globasl/Area_TEST
10-17-2025 10:00:26 DEBUG Site: get_site_params: 793: Site parameters: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}
10-17-2025 10:00:26 DEBUG Site: get_site: 809: Initiating retrieval of site details for site name: 'Globasl/Area_TEST'.
10-17-2025 10:00:26 DEBUG Site: get_site: 817: Using 'get_sites' API for Catalyst Center version: '2376'.
10-17-2025 10:00:26 DEBUG Site: execute_get_request: 1832: Initiating GET API call for Function: get_sites from Family: site_design with Parameters: {'name_hierarchy': 'Globasl/Area_TEST'}.
10-17-2025 10:00:26 INFO Site: execute_get_request: 1848: Response received from GET API call to Function: 'get_sites' from Family: 'site_design' is Response: {'response': [], 'version': '1.0'}
10-17-2025 10:00:26 WARNING Site: execute_get_request: 1866: Empty 'response' key in the API response from GET API call to Function: 'get_sites' from Family: 'site_design'.
10-17-2025 10:00:26 DEBUG Site: get_have: 1034: Raw response from get_site: None
10-17-2025 10:00:26 ERROR Site: get_have: 1037: Unexpected response received:
10-17-2025 10:00:26 DEBUG Site: get_have: 1075: All site information collected from bulk operation(create_config): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 10:00:26 DEBUG Site: get_have: 1077: All site information collected (have): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 10:00:26 DEBUG Site: check_return_status: 302: Line No: 2561 status: success, msg: Successfully validated config params.
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1644: Starting site creation process.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1553: Starting to process payload data.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1555: Config data found, proceeding with processing.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1560: Site type identified as: area
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1565: Mapping key: name to value: Area_TEST
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1569: Payload data created successfully.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1565: Mapping key: parent_name to value: Globasl
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1569: Payload data created successfully.
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1651: Payload data prepared for site creation: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1655: Added to area: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1664: Processing configurations for 'area'.
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1666: Handling configuration: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1672: Checking if parent site 'Globasl' exists in the hierarchy.
'>>>>>>>>> this is the part thats been removed in later releases
10-17-2025 10:00:26 DEBUG Site: get_site: 809: Initiating retrieval of site details for site name: 'Globasl'.
10-17-2025 10:00:26 DEBUG Site: get_site: 817: Using 'get_sites' API for Catalyst Center version: '2376'.
10-17-2025 10:00:26 DEBUG Site: execute_get_request: 1832: Initiating GET API call for Function: get_sites from Family: site_design with Parameters: {'name_hierarchy': 'Globasl'}.
10-17-2025 10:00:26 INFO Site: execute_get_request: 1848: Response received from GET API call to Function: 'get_sites' from Family: 'site_design' is Response: {'response': [], 'version': '1.0'}
10-17-2025 10:00:26 WARNING Site: execute_get_request: 1866: Empty 'response' key in the API response from GET API call to Function: 'get_sites' from Family: 'site_design'.
10-17-2025 10:00:26 DEBUG Site: is_site_exist: 1603: No site details retrieved for site name: Globasl
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1677: Parent name 'Globasl' does not exist in the Cisco Catalyst Center.
10-17-2025 10:00:26 ERROR Site: set_operation_result: 1780: Parent name 'Globasl' does not exist in the Cisco Catalyst Center.
10-17-2025 10:00:26 DEBUG Site: check_return_status: 302: Line No: 1679 status: failed, msg: Parent name 'Globasl' does not exist in the Cisco Catalyst Center.
##################################
cisco.dnac 6.30 logs
10-17-2025 09:55:01 DEBUG Site: init: 110: Logging configured and initiated
10-17-2025 09:55:01 INFO Site: validate_input: 506: Configuration details found in the playbook: [{'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}, 'site_type': 'area'}]
10-17-2025 09:55:01 INFO Site: validate_input: 526: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 09:55:01 DEBUG Site: check_return_status: 302: Line No: 2690 status: success, msg: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1180: Starting validation of site input data.
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1187: Config data found with 1 entries.
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1189: Validating entry in config: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1195: Validating 'name' field: Area_TEST.
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1203: Validating 'parent_name' field:Globasl
10-17-2025 09:55:01 INFO Site: validate_site_input_data: 1351: Successfully validated config params.
10-17-2025 09:55:01 DEBUG Site: check_return_status: 302: Line No: 2692 status: success, msg: Successfully validated config params.
10-17-2025 09:55:01 INFO Site: get_want: 1138: Processing site of type: area
10-17-2025 09:55:01 INFO Site: get_want: 1150: Desired State (want): [{'name': 'Area_TEST', 'parent_name': 'Globasl', 'type': 'area'}]
10-17-2025 09:55:01 DEBUG Site: check_return_status: 302: Line No: 2696 status: success, msg: Successfully validated config params.
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 823: Retrieving site name for site data: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 827: Identified site type: area
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 828: Retrieved parent name: Globasl
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 836: Retrieved site name: Area_TEST
10-17-2025 09:55:01 INFO Site: get_site_name_hierarchy: 845: Constructed site name: Globasl/Area_TEST
10-17-2025 09:55:01 DEBUG Site: get_site_params: 804: Site parameters: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}
10-17-2025 09:55:01 DEBUG Site: get_site: 812: Initiating retrieval of site details for site name: 'Globasl/Area_TEST'.
10-17-2025 09:55:01 DEBUG Site: get_site: 823: Using 'get_sites' API for Catalyst Center version: '2376'.
10-17-2025 09:55:01 DEBUG Site: get_site: 829: Sending initial API request: Family='site_design', Function='get_sites', Params={'name_hierarchy': 'Globasl/Area_TEST', 'offset': 1, 'limit': 500}
10-17-2025 09:55:01 DEBUG Site: execute_get_request: 1904: Initiating GET API call for Function: get_sites from Family: site_design with Parameters: {'name_hierarchy': 'Globasl/Area_TEST', 'offset': 1, 'limit': 500}.
10-17-2025 09:55:01 INFO Site: execute_get_request: 1920: Response received from GET API call to Function: 'get_sites' from Family: 'site_design' is Response: {'response': [], 'version': '1.0'}
10-17-2025 09:55:01 WARNING Site: execute_get_request: 1938: Empty 'response' key in the API response from GET API call to Function: 'get_sites' from Family: 'site_design'.
10-17-2025 09:55:01 DEBUG Site: get_site: 835: No data received from API (Offset=1). Exiting pagination.
10-17-2025 09:55:02 WARNING Site: get_site: 859: No site details found for site name: 'Globasl/Area_TEST'.
10-17-2025 09:55:02 DEBUG Site: get_have: 1045: Raw response from get_site: None
10-17-2025 09:55:02 ERROR Site: get_have: 1048: Unexpected response received:
10-17-2025 09:55:02 DEBUG Site: get_have: 1086: All site information collected from bulk operation(create_config): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 09:55:02 DEBUG Site: get_have: 1088: All site information collected (have): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 09:55:02 DEBUG Site: check_return_status: 302: Line No: 2697 status: success, msg: Successfully validated config params.
10-17-2025 09:55:02 DEBUG Site: get_diff_merged: 1734: Starting site creation process.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1564: Starting to process payload data.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1566: Config data found, proceeding with processing.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1571: Site type identified as: area
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1576: Mapping key: name to value: Area_TEST
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1580: Payload data created successfully.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1576: Mapping key: parent_name to value: Globasl
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1580: Payload data created successfully.
10-17-2025 09:55:02 DEBUG Site: get_diff_merged: 1741: Payload data prepared for site creation: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 09:55:02 DEBUG Site: get_diff_merged: 1745: Added to area: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
'>>>>>>>>> No checks if parent exists
10-17-2025 09:55:02 INFO Site: process_bulk_site: 1647: Initiating bulk site creation for 1 sites.
10-17-2025 09:55:02 INFO Site: creating_bulk_site: 1525: Before executing create site: [{'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}]
10-17-2025 09:55:02 INFO Site: creating_bulk_site: 1539: Site creation successful. Response: {'response': {'taskId': '0199f19a-84b8-7601-b5a0-0815ad3e2559', 'url': '/api/v1/task/0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 DEBUG Site: process_bulk_site: 1650: Response from creating_bulk_site for [{'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}]: {'response': {'taskId': '0199f19a-84b8-7601-b5a0-0815ad3e2559', 'url': '/api/v1/task/0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 INFO Site: process_bulk_site: 1662: Task Id for the 'site_creation' task: 0199f19a-84b8-7601-b5a0-0815ad3e2559
10-17-2025 09:55:02 DEBUG Site: get_task_status_from_tasks_by_id: 2026: Starting task monitoring for 'create_sites' with task ID '0199f19a-84b8-7601-b5a0-0815ad3e2559'.
10-17-2025 09:55:02 DEBUG Site: get_tasks_by_id: 1739: Task Details: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 DEBUG Site: get_tasks_by_id: 1740: Retrieving task details by the API 'get_tasks_by_id' using task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559, Response: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 DEBUG Site: get_tasks_by_id: 1748: Task Status: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:02 INFO Site: get_task_status_from_tasks_by_id: 2037: Successfully retrieved task details: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:02 DEBUG Site: get_task_status_from_tasks_by_id: 2076: Waiting for the next poll interval of 2 seconds before checking task status again.
10-17-2025 09:55:04 DEBUG Site: get_tasks_by_id: 1739: Task Details: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:04 DEBUG Site: get_tasks_by_id: 1740: Retrieving task details by the API 'get_tasks_by_id' using task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559, Response: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:04 DEBUG Site: get_tasks_by_id: 1748: Task Status: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:04 INFO Site: get_task_status_from_tasks_by_id: 2037: Successfully retrieved task details: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:04 DEBUG Site: get_task_status_from_tasks_by_id: 2076: Waiting for the next poll interval of 2 seconds before checking task status again.
10-17-2025 09:55:06 DEBUG Site: get_tasks_by_id: 1739: Task Details: {'response': {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:06 DEBUG Site: get_tasks_by_id: 1740: Retrieving task details by the API 'get_tasks_by_id' using task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559, Response: {'response': {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:06 DEBUG Site: get_tasks_by_id: 1748: Task Status: {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:06 INFO Site: get_task_status_from_tasks_by_id: 2037: Successfully retrieved task details: {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:06 DEBUG Site: get_task_details_by_id: 1707: Task Details: {'progress': '{"TOTAL":1,"VALIDATION_FAILURE_COUNT":1,"VALIDATION_SUCCESS_COUNT":0,"VALIDATION_PENDING_COUNT":0,"CRAETION_SUCCESS_COUNT":0,"message":"Group validation is completed."}', 'data': 'BULK_IMPORT_GROUPS', 'errorCode': '502', 'failureReason': 'One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.'}
10-17-2025 09:55:06 ERROR Site: set_operation_result: 1852: Failed to execute the task create_sites with Task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559.Failure reason: One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.
10-17-2025 09:55:06 DEBUG Site: get_task_status_from_tasks_by_id: 2080: Completed monitoring task 'create_sites' with task ID '0199f19a-84b8-7601-b5a0-0815ad3e2559' after 4.28 seconds.
10-17-2025 09:55:06 DEBUG Site: process_bulk_site: 1673: List of successfully created sites: ["{'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}: Area_TEST"]
10-17-2025 09:55:06 INFO Site: process_bulk_site: 1680: All sites have been successfully created. Proceeding with floor site processing.
10-17-2025 09:55:06 INFO Site: process_bulk_site: 1705: Bulk site creation process completed successfully.
10-17-2025 09:55:06 DEBUG Site: check_return_status: 302: Line No: 2699 status: failed, msg: Failed to execute the task create_sites with Task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559.Failure reason: One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.
Prerequisites
Name of the module
cisco.dnac.site_workflow_manager
Describe the bug
There is a change from 6.29 to 6.30 where 6.30 does not check if parent site exists in the hierarchy. This results in a bulk site creation which fails, this issue is still present in 6.40. Using an incorrect parent name eg Globasl,
The module message is as follows
6.29 - "msg": "Parent name 'Globasl' does not exist in the Cisco Catalyst Center."
6.30 - "msg": "Failed to execute the task create_sites with Task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559.Failure reason: One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.".
6.40 and 6.44 has been tested and they show the same behaviour of 6.30
Expected behavior
The expectation is to provide a meaningful message of a failure, like we have in 6.29
"msg": "Parent name 'Globasl' does not exist in the Cisco Catalyst Center."
Screenshots
n/a
Debug
See debug logs for 6.29 and 6.30 below in additional comments
Environment (please complete the following information):
Cisco DNA Center Version and patch: 2.3.7.9-70301
Ansible Version: 2.18.9
Collection version: cisco.dnac 6.29.0, 6.30.0 and tested 6.40 and 6.44
OS Version: Alpine 3.22
Additional context
See highlighted parts with ">>>>>".
cisco.dnac 6.29 logs
10-17-2025 10:00:25 DEBUG Site: init: 110: Logging configured and initiated
10-17-2025 10:00:25 INFO Site: validate_input: 495: Configuration details found in the playbook: [{'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}, 'site_type': 'area'}]
10-17-2025 10:00:25 INFO Site: validate_input: 515: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 10:00:25 DEBUG Site: check_return_status: 302: Line No: 2554 status: success, msg: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1169: Starting validation of site input data.
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1176: Config data found with 1 entries.
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1178: Validating entry in config: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1184: Validating 'name' field: Area_TEST.
10-17-2025 10:00:25 DEBUG Site: validate_site_input_data: 1192: Validating 'parent_name' field:Globasl
10-17-2025 10:00:25 INFO Site: validate_site_input_data: 1340: Successfully validated config params.
10-17-2025 10:00:25 DEBUG Site: check_return_status: 302: Line No: 2556 status: success, msg: Successfully validated config params.
10-17-2025 10:00:25 INFO Site: get_want: 1127: Processing site of type: area
10-17-2025 10:00:26 INFO Site: get_want: 1139: Desired State (want): [{'name': 'Area_TEST', 'parent_name': 'Globasl', 'type': 'area'}]
10-17-2025 10:00:26 DEBUG Site: check_return_status: 302: Line No: 2560 status: success, msg: Successfully validated config params.
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 812: Retrieving site name for site data: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 816: Identified site type: area
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 817: Retrieved parent name: Globasl
10-17-2025 10:00:26 DEBUG Site: get_site_name_hierarchy: 825: Retrieved site name: Area_TEST
10-17-2025 10:00:26 INFO Site: get_site_name_hierarchy: 834: Constructed site name: Globasl/Area_TEST
10-17-2025 10:00:26 DEBUG Site: get_site_params: 793: Site parameters: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}
10-17-2025 10:00:26 DEBUG Site: get_site: 809: Initiating retrieval of site details for site name: 'Globasl/Area_TEST'.
10-17-2025 10:00:26 DEBUG Site: get_site: 817: Using 'get_sites' API for Catalyst Center version: '2376'.
10-17-2025 10:00:26 DEBUG Site: execute_get_request: 1832: Initiating GET API call for Function: get_sites from Family: site_design with Parameters: {'name_hierarchy': 'Globasl/Area_TEST'}.
10-17-2025 10:00:26 INFO Site: execute_get_request: 1848: Response received from GET API call to Function: 'get_sites' from Family: 'site_design' is Response: {'response': [], 'version': '1.0'}
10-17-2025 10:00:26 WARNING Site: execute_get_request: 1866: Empty 'response' key in the API response from GET API call to Function: 'get_sites' from Family: 'site_design'.
10-17-2025 10:00:26 DEBUG Site: get_have: 1034: Raw response from get_site: None
10-17-2025 10:00:26 ERROR Site: get_have: 1037: Unexpected response received:
10-17-2025 10:00:26 DEBUG Site: get_have: 1075: All site information collected from bulk operation(create_config): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 10:00:26 DEBUG Site: get_have: 1077: All site information collected (have): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 10:00:26 DEBUG Site: check_return_status: 302: Line No: 2561 status: success, msg: Successfully validated config params.
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1644: Starting site creation process.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1553: Starting to process payload data.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1555: Config data found, proceeding with processing.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1560: Site type identified as: area
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1565: Mapping key: name to value: Area_TEST
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1569: Payload data created successfully.
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1565: Mapping key: parent_name to value: Globasl
10-17-2025 10:00:26 DEBUG Site: change_payload_data: 1569: Payload data created successfully.
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1651: Payload data prepared for site creation: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1655: Added to area: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1664: Processing configurations for 'area'.
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1666: Handling configuration: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1672: Checking if parent site 'Globasl' exists in the hierarchy.
'>>>>>>>>> this is the part thats been removed in later releases
10-17-2025 10:00:26 DEBUG Site: get_site: 809: Initiating retrieval of site details for site name: 'Globasl'.
10-17-2025 10:00:26 DEBUG Site: get_site: 817: Using 'get_sites' API for Catalyst Center version: '2376'.
10-17-2025 10:00:26 DEBUG Site: execute_get_request: 1832: Initiating GET API call for Function: get_sites from Family: site_design with Parameters: {'name_hierarchy': 'Globasl'}.
10-17-2025 10:00:26 INFO Site: execute_get_request: 1848: Response received from GET API call to Function: 'get_sites' from Family: 'site_design' is Response: {'response': [], 'version': '1.0'}
10-17-2025 10:00:26 WARNING Site: execute_get_request: 1866: Empty 'response' key in the API response from GET API call to Function: 'get_sites' from Family: 'site_design'.
10-17-2025 10:00:26 DEBUG Site: is_site_exist: 1603: No site details retrieved for site name: Globasl
10-17-2025 10:00:26 DEBUG Site: get_diff_merged: 1677: Parent name 'Globasl' does not exist in the Cisco Catalyst Center.
10-17-2025 10:00:26 ERROR Site: set_operation_result: 1780: Parent name 'Globasl' does not exist in the Cisco Catalyst Center.
10-17-2025 10:00:26 DEBUG Site: check_return_status: 302: Line No: 1679 status: failed, msg: Parent name 'Globasl' does not exist in the Cisco Catalyst Center.
##################################
cisco.dnac 6.30 logs
10-17-2025 09:55:01 DEBUG Site: init: 110: Logging configured and initiated
10-17-2025 09:55:01 INFO Site: validate_input: 506: Configuration details found in the playbook: [{'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}, 'site_type': 'area'}]
10-17-2025 09:55:01 INFO Site: validate_input: 526: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 09:55:01 DEBUG Site: check_return_status: 302: Line No: 2690 status: success, msg: Successfully validated playbook config params: [{'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}]
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1180: Starting validation of site input data.
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1187: Config data found with 1 entries.
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1189: Validating entry in config: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1195: Validating 'name' field: Area_TEST.
10-17-2025 09:55:01 DEBUG Site: validate_site_input_data: 1203: Validating 'parent_name' field:Globasl
10-17-2025 09:55:01 INFO Site: validate_site_input_data: 1351: Successfully validated config params.
10-17-2025 09:55:01 DEBUG Site: check_return_status: 302: Line No: 2692 status: success, msg: Successfully validated config params.
10-17-2025 09:55:01 INFO Site: get_want: 1138: Processing site of type: area
10-17-2025 09:55:01 INFO Site: get_want: 1150: Desired State (want): [{'name': 'Area_TEST', 'parent_name': 'Globasl', 'type': 'area'}]
10-17-2025 09:55:01 DEBUG Site: check_return_status: 302: Line No: 2696 status: success, msg: Successfully validated config params.
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 823: Retrieving site name for site data: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 827: Identified site type: area
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 828: Retrieved parent name: Globasl
10-17-2025 09:55:01 DEBUG Site: get_site_name_hierarchy: 836: Retrieved site name: Area_TEST
10-17-2025 09:55:01 INFO Site: get_site_name_hierarchy: 845: Constructed site name: Globasl/Area_TEST
10-17-2025 09:55:01 DEBUG Site: get_site_params: 804: Site parameters: {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}
10-17-2025 09:55:01 DEBUG Site: get_site: 812: Initiating retrieval of site details for site name: 'Globasl/Area_TEST'.
10-17-2025 09:55:01 DEBUG Site: get_site: 823: Using 'get_sites' API for Catalyst Center version: '2376'.
10-17-2025 09:55:01 DEBUG Site: get_site: 829: Sending initial API request: Family='site_design', Function='get_sites', Params={'name_hierarchy': 'Globasl/Area_TEST', 'offset': 1, 'limit': 500}
10-17-2025 09:55:01 DEBUG Site: execute_get_request: 1904: Initiating GET API call for Function: get_sites from Family: site_design with Parameters: {'name_hierarchy': 'Globasl/Area_TEST', 'offset': 1, 'limit': 500}.
10-17-2025 09:55:01 INFO Site: execute_get_request: 1920: Response received from GET API call to Function: 'get_sites' from Family: 'site_design' is Response: {'response': [], 'version': '1.0'}
10-17-2025 09:55:01 WARNING Site: execute_get_request: 1938: Empty 'response' key in the API response from GET API call to Function: 'get_sites' from Family: 'site_design'.
10-17-2025 09:55:01 DEBUG Site: get_site: 835: No data received from API (Offset=1). Exiting pagination.
10-17-2025 09:55:02 WARNING Site: get_site: 859: No site details found for site name: 'Globasl/Area_TEST'.
10-17-2025 09:55:02 DEBUG Site: get_have: 1045: Raw response from get_site: None
10-17-2025 09:55:02 ERROR Site: get_have: 1048: Unexpected response received:
10-17-2025 09:55:02 DEBUG Site: get_have: 1086: All site information collected from bulk operation(create_config): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 09:55:02 DEBUG Site: get_have: 1088: All site information collected (have): [{'site_name_hierarchy': 'Globasl/Area_TEST', 'site_params': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parentName': 'Globasl'}}}, 'want': {'type': 'area', 'site': {'area': {'name': 'Area_TEST', 'parent_name': 'Globasl'}}}, 'site_exists': False}]
10-17-2025 09:55:02 DEBUG Site: check_return_status: 302: Line No: 2697 status: success, msg: Successfully validated config params.
10-17-2025 09:55:02 DEBUG Site: get_diff_merged: 1734: Starting site creation process.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1564: Starting to process payload data.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1566: Config data found, proceeding with processing.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1571: Site type identified as: area
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1576: Mapping key: name to value: Area_TEST
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1580: Payload data created successfully.
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1576: Mapping key: parent_name to value: Globasl
10-17-2025 09:55:02 DEBUG Site: change_payload_data: 1580: Payload data created successfully.
10-17-2025 09:55:02 DEBUG Site: get_diff_merged: 1741: Payload data prepared for site creation: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
10-17-2025 09:55:02 DEBUG Site: get_diff_merged: 1745: Added to area: {'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}
'>>>>>>>>> No checks if parent exists
10-17-2025 09:55:02 INFO Site: process_bulk_site: 1647: Initiating bulk site creation for 1 sites.
10-17-2025 09:55:02 INFO Site: creating_bulk_site: 1525: Before executing create site: [{'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}]
10-17-2025 09:55:02 INFO Site: creating_bulk_site: 1539: Site creation successful. Response: {'response': {'taskId': '0199f19a-84b8-7601-b5a0-0815ad3e2559', 'url': '/api/v1/task/0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 DEBUG Site: process_bulk_site: 1650: Response from creating_bulk_site for [{'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}]: {'response': {'taskId': '0199f19a-84b8-7601-b5a0-0815ad3e2559', 'url': '/api/v1/task/0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 INFO Site: process_bulk_site: 1662: Task Id for the 'site_creation' task: 0199f19a-84b8-7601-b5a0-0815ad3e2559
10-17-2025 09:55:02 DEBUG Site: get_task_status_from_tasks_by_id: 2026: Starting task monitoring for 'create_sites' with task ID '0199f19a-84b8-7601-b5a0-0815ad3e2559'.
10-17-2025 09:55:02 DEBUG Site: get_tasks_by_id: 1739: Task Details: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 DEBUG Site: get_tasks_by_id: 1740: Retrieving task details by the API 'get_tasks_by_id' using task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559, Response: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:02 DEBUG Site: get_tasks_by_id: 1748: Task Status: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:02 INFO Site: get_task_status_from_tasks_by_id: 2037: Successfully retrieved task details: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:02 DEBUG Site: get_task_status_from_tasks_by_id: 2076: Waiting for the next poll interval of 2 seconds before checking task status again.
10-17-2025 09:55:04 DEBUG Site: get_tasks_by_id: 1739: Task Details: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:04 DEBUG Site: get_tasks_by_id: 1740: Retrieving task details by the API 'get_tasks_by_id' using task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559, Response: {'response': {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:04 DEBUG Site: get_tasks_by_id: 1748: Task Status: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:04 INFO Site: get_task_status_from_tasks_by_id: 2037: Successfully retrieved task details: {'status': 'PENDING', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:04 DEBUG Site: get_task_status_from_tasks_by_id: 2076: Waiting for the next poll interval of 2 seconds before checking task status again.
10-17-2025 09:55:06 DEBUG Site: get_tasks_by_id: 1739: Task Details: {'response': {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:06 DEBUG Site: get_tasks_by_id: 1740: Retrieving task details by the API 'get_tasks_by_id' using task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559, Response: {'response': {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}, 'version': '1.0'}
10-17-2025 09:55:06 DEBUG Site: get_tasks_by_id: 1748: Task Status: {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:06 INFO Site: get_task_status_from_tasks_by_id: 2037: Successfully retrieved task details: {'endTime': 1760695062667, 'lastUpdate': 1760695062656, 'status': 'FAILURE', 'startTime': 1760695059640, 'resultLocation': '/dna/intent/api/v1/tasks/0199f19a-84b8-7601-b5a0-0815ad3e2559/detail', 'id': '0199f19a-84b8-7601-b5a0-0815ad3e2559'}
10-17-2025 09:55:06 DEBUG Site: get_task_details_by_id: 1707: Task Details: {'progress': '{"TOTAL":1,"VALIDATION_FAILURE_COUNT":1,"VALIDATION_SUCCESS_COUNT":0,"VALIDATION_PENDING_COUNT":0,"CRAETION_SUCCESS_COUNT":0,"message":"Group validation is completed."}', 'data': 'BULK_IMPORT_GROUPS', 'errorCode': '502', 'failureReason': 'One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.'}
10-17-2025 09:55:06 ERROR Site: set_operation_result: 1852: Failed to execute the task create_sites with Task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559.Failure reason: One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.
10-17-2025 09:55:06 DEBUG Site: get_task_status_from_tasks_by_id: 2080: Completed monitoring task 'create_sites' with task ID '0199f19a-84b8-7601-b5a0-0815ad3e2559' after 4.28 seconds.
10-17-2025 09:55:06 DEBUG Site: process_bulk_site: 1673: List of successfully created sites: ["{'name': 'Area_TEST', 'type': 'area', 'parentNameHierarchy': 'Globasl'}: Area_TEST"]
10-17-2025 09:55:06 INFO Site: process_bulk_site: 1680: All sites have been successfully created. Proceeding with floor site processing.
10-17-2025 09:55:06 INFO Site: process_bulk_site: 1705: Bulk site creation process completed successfully.
10-17-2025 09:55:06 DEBUG Site: check_return_status: 302: Line No: 2699 status: failed, msg: Failed to execute the task create_sites with Task ID: 0199f19a-84b8-7601-b5a0-0815ad3e2559.Failure reason: One or more groups are invalid. Hence none of the groups are getting created. Retry with correcting the import file.