Forum Discussion
Query to know if table exists in LA workspace
Hi Vino55,
I do not think this is possible. It is like you are trying to avoid exposing errors due to not only specific data being there but any data. What is the scenario here?
- Vino55Aug 21, 2019
Microsoft
Hi Stanislav_Zhelyazkov ,
Currently most of the RP data (who are not onboarded to resource specific) move to AzureDiagnostics.
We are moving to Resource specific feature and due to which we are creating workflow in LA.
By this, LA workspace will always have our table with defined schema.Hence this table will always exist in LA workspace when we query. if there is no data, LA is going to return 0 records but not error.
However, the workspace may or may not have table AzureDiagnostics. You can quickly check by creating a new workspace and you will not find table AzureDiagnostics. If there is no data, since table will not exist, LA will return error.
As our intent to combine data from both table (AzureDiagnostics and our new table) from our workbook, our customer workspace may or may not have AzureDiagnostic table. Hence we need to handle this in our query used in our workbook template.
I will try to follow Ketan Ghelani 's suggestion.