Skip to content

Commit 66ff3b7

Browse files
authored
Handling AmoException when populating references (#116)
When using TomConnection to extract stats from the DMV, any exceptions raised will be AmoExceptions, rather than AdomdErrorResponseExceptions
1 parent 85a13dd commit 66ff3b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Dax.Model.Extractor/DmvExtractor.cs

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Dax.Model.Extractor.Data;
2+
using Microsoft.AnalysisServices;
23
using Microsoft.AnalysisServices.AdomdClient;
34
using System;
45
using System.Collections.Generic;
@@ -1101,6 +1102,10 @@ SELECT DISTINCT
11011102
// We ignore errors accessing this DMV
11021103
Debug.WriteLine($"Ignored error in DISCOVER_CALC_DEPENDENCY: {ex.Message}");
11031104
}
1105+
catch (AmoException ex)
1106+
{
1107+
Debug.WriteLine($"Ignored error in DISCOVER_CALC_DEPENDENCY: {ex.Message}");
1108+
}
11041109
}
11051110

11061111
public void PopulateRelationships()

0 commit comments

Comments
 (0)