From 8a3d335fc085341fe38866c6e71feaf2e199d07f Mon Sep 17 00:00:00 2001 From: Daniel Otykier Date: Tue, 5 Mar 2024 13:24:21 +0100 Subject: [PATCH] When using TomConnection to extract stats from the DMV, any exceptions raised will be AmoExceptions, rather than AdomdErrorResponseExceptions. --- src/Dax.Model.Extractor/DmvExtractor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Dax.Model.Extractor/DmvExtractor.cs b/src/Dax.Model.Extractor/DmvExtractor.cs index 164eee3..3498c58 100644 --- a/src/Dax.Model.Extractor/DmvExtractor.cs +++ b/src/Dax.Model.Extractor/DmvExtractor.cs @@ -1,4 +1,5 @@ using Dax.Model.Extractor.Data; +using Microsoft.AnalysisServices; using Microsoft.AnalysisServices.AdomdClient; using System; using System.Collections.Generic; @@ -1101,6 +1102,10 @@ SELECT DISTINCT // We ignore errors accessing this DMV Debug.WriteLine($"Ignored error in DISCOVER_CALC_DEPENDENCY: {ex.Message}"); } + catch (AmoException ex) + { + Debug.WriteLine($"Ignored error in DISCOVER_CALC_DEPENDENCY: {ex.Message}"); + } } public void PopulateRelationships()