You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dashboards having single quote ('), slash (/) or colon (:) in the name not getting migrated
Description
If a dashboard has a single quote in the name, the migrate_dashboards.py fails with "INVALID_INPUT" and "..not a valid NRQL query" error. If a slash (/) or colon (:) is in the name, the Dashboard is simply not found on the source account (and therefore not migrated) since the fetch entities script replaces slash (/) or colon (:) with the ~ character.
Steps to Reproduce
Test by using the migrate_dashboards.py script to migrate a Dashboard having single quote in the name. i.e. "Aaron's Test"
Expected Behavior
Dashboards having single quote in the name, slash (/) or colon (:) in the name should be able to get migrated.
Relevant Logs / Console output
2022-10-13 10:02:27,850 - migrate_dashboards.py - INFO - Dashboard migration started.
2022-10-13 10:02:27,856 - entityclient.py - INFO - Searching matching entity for type:DASHBOARD, name:Aaron's Test, acct:*****
2022-10-13 10:02:28,405 - entityclient.py - ERROR - {'entityFound': False, 'status': 200, 'error': [{'extensions': {'errorClass': 'INVALID_INPUT'}, 'locations': [{'column': 41, 'line': 3}], 'message': "Provided filter: [name = 'Aaron's Test' AND type = 'DASHBOARD' AND tags.accountId = '1006970'] is not a valid NRQL query", 'path': ['actor', 'entitySearch']}]}
The text was updated successfully, but these errors were encountered:
OscarLopezEns
changed the title
Dashboards having single quote (') in the name not getting migrated
Dashboards having single quote (') or slash (/) in the name not getting migrated
Oct 13, 2022
OscarLopezEns
changed the title
Dashboards having single quote (') or slash (/) in the name not getting migrated
Dashboards having single quote ('), slash (/) or colon (:) in the name not getting migrated
Oct 13, 2022
Dashboards having single quote ('), slash (/) or colon (:) in the name not getting migrated
Description
If a dashboard has a single quote in the name, the migrate_dashboards.py fails with "INVALID_INPUT" and "..not a valid NRQL query" error. If a slash (/) or colon (:) is in the name, the Dashboard is simply not found on the source account (and therefore not migrated) since the fetch entities script replaces slash (/) or colon (:) with the ~ character.
Steps to Reproduce
Test by using the migrate_dashboards.py script to migrate a Dashboard having single quote in the name. i.e. "Aaron's Test"
Expected Behavior
Dashboards having single quote in the name, slash (/) or colon (:) in the name should be able to get migrated.
Relevant Logs / Console output
2022-10-13 10:02:27,850 - migrate_dashboards.py - INFO - Dashboard migration started.
2022-10-13 10:02:27,856 - entityclient.py - INFO - Searching matching entity for type:DASHBOARD, name:Aaron's Test, acct:*****
2022-10-13 10:02:28,405 - entityclient.py - ERROR - {'entityFound': False, 'status': 200, 'error': [{'extensions': {'errorClass': 'INVALID_INPUT'}, 'locations': [{'column': 41, 'line': 3}], 'message': "Provided filter: [name = 'Aaron's Test' AND type = 'DASHBOARD' AND tags.accountId = '1006970'] is not a valid NRQL query", 'path': ['actor', 'entitySearch']}]}
The text was updated successfully, but these errors were encountered: