Lacking Documentation for PackageOptions.IgnoreValidationErrors property
- Dominant language
- C#
- Stars
- 460
- Forks
- 29
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 7
Description
I've been working on a utility to filter out objects from our product layer dacpac that we want to override in our client layer dacpac based on this code [DACExtensions](https://github.com/Microsoft/DACExtensions).
I'd like to ignore some validation errors, unfortunately [microsoft.sqlserver.dac.packageoptions.ignorevalidationerrors](https://learn.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.dac.packageoptions.ignorevalidationerrors?view=sql-dacfx-162) property is not well documented and the best I've come up with is this which will ignore all validation errors:
```csharp
if (ignoreValidationErrors)
{
packageOptions.IgnoreValidationErrors = new List() { "*" };
};
DacPackageExtensions.BuildPackage(
filteredDacpacPath,
filteredModel,
packageMetadata,
packageOptions);
```
What value could I use in the IgnoreValidationErrors property to only ignore unresolved reference errors such as `Error SQL71501: Error validating element [dbo].[OverrideTableView]: View: [dbo].[OverrideTableView] has an unresolved reference to object [dbo].[OverrideTbl]`?
Contributor guide
Assessment
This issue has not been assessed yet.