<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disable error with 'Error' severity in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003799#M20252</link>
    <description>&lt;P&gt;From SDK (FailureResolutionType):&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Default - Special (reserved) type. It cannot be used as a type when defining a resolution, but can be used as a key to query default resolution from FailureMessage or FailureDefinition.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you have to call "ResolveFailure" if you want to rollback the transaction&lt;/P&gt;
&lt;P&gt;I would try to set "clear after rollback" through transaction options before starting the transaction, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var failureOptions = transaction.GetFailureHandlingOptions();
failureOptions.SetClearAfterRollback(true);
...
transaction.SetFailureHandlingOptions(failureOptions);
transaction.Start();
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 14:28:40 GMT</pubDate>
    <dc:creator>aignatovich</dc:creator>
    <dc:date>2022-03-14T14:28:40Z</dc:date>
    <item>
      <title>Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11001843#M20239</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a specific failure that I want to disable.&lt;/P&gt;&lt;P&gt;I'm able to 'catch' the error (With FailuresProcessing event).&lt;/P&gt;&lt;P&gt;The problem is that I can't find a way to disable / delete the error.&lt;/P&gt;&lt;P&gt;DeleteWarning only works for 'Warning' severity, and my failure is 'Error' severity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 13:38:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11001843#M20239</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-13T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002034#M20240</link>
      <description>&lt;P&gt;How do you handle the situation manually in the end user interface? Please note that the Revit API almost always just duplicates or provides access to the standard UI functionality.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 16:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002034#M20240</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-03-13T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002043#M20241</link>
      <description>&lt;P&gt;I'd click 'Cancel' on the popup message (It's the message that warns that deleting a part will cause other parts to be deleted).&lt;/P&gt;&lt;P&gt;My goal is to not&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;show this error.. I'm cancelling the operation itself by posting another failure message saying "operation was cancelled" but the warning of 'deleting part will cause other part to be deleted' is still shown&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 16:36:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002043#M20241</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-13T16:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002061#M20242</link>
      <description>&lt;P&gt;Yes, well if you click cancel, then the operation is aborted, isn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume that Revit absolutely refuses to perform this operation, because it would corrupt the entire BIM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the UI you have to cancel it, and in the API the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;A warning is a warning and is permissible. An error is an error and is forbidden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or am I misunderstanding?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 16:53:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002061#M20242</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-03-13T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002273#M20243</link>
      <description>Of course.&lt;BR /&gt;Revit doesn't refuse. I can also click "Delete" and it'll delete the part (and the associated parts as well). Nothing will be corrupt.&lt;BR /&gt;&lt;BR /&gt;My goal is to not show this error message from the start. I am eventually not performing the deletion (I'm blocking it with creating my own error using FailuresProcessing as I mentioned before). So I want to prevent from this error to appear in the first place..</description>
      <pubDate>Sun, 13 Mar 2022 20:15:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002273#M20243</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-13T20:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002903#M20244</link>
      <description>&lt;P&gt;Sorry, I do not understand. If you want to delete the element causing the error, why don't you just delete it? Then, no error will be caused. You can see how lost I am here...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, regardless of whether I understand or not, maybe the previous discussions of the Failure API functionality and usage will help solve the issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.32" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.32&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or previous discussions here in the forum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe even the warning swallower?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/failure-processing-warnings-swallower-only-for-specific-files/m-p/8870050" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/failure-processing-warnings-swallower-only-for-specific-files/m-p/8870050&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 07:40:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002903#M20244</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-03-14T07:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002936#M20245</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11452955"&gt;@tomerFUNPJ&lt;/a&gt; , I think, you could try to either resolve the failure or rollback transaction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so you could try to delete elements automatically in your failure preprocessor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;if (failureAccessor.HasResolutionOfType(FailureResolutionType.DeleteElements))
{
    failureAccessor.SetCurrentResolutionType(FailureResolutionType.DeleteElements);
    failuresAccessor.ResolveFailure(failureAccessor);
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should return FailureProcessingResult.ProceedWithCommit if you set resolution type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This failure preprocessor solves a bit different task, but I think it could help you:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;    public class AutoDetachOrDeleteFailurePreprocessor : IFailuresPreprocessor
    {
        public FailureProcessingResult PreprocessFailures(FailuresAccessor failuresAccessor)
        {
            var preprocessorMessages = failuresAccessor.GetFailureMessages(FailureSeverity.Error)
                .Union(failuresAccessor.GetFailureMessages(FailureSeverity.Warning))
                .Where(x =&amp;gt; x.HasResolutionOfType(FailureResolutionType.DeleteElements) || x.HasResolutionOfType(FailureResolutionType.DetachElements))
                .ToList();

            if (preprocessorMessages.Count == 0)
                return FailureProcessingResult.Continue;

            foreach (var failureAccessor in preprocessorMessages)
            {
                failureAccessor.SetCurrentResolutionType(failureAccessor.HasResolutionOfType(FailureResolutionType.DetachElements) ? FailureResolutionType.DetachElements : FailureResolutionType.DeleteElements);

                failuresAccessor.ResolveFailure(failureAccessor);
            }

            return FailureProcessingResult.ProceedWithCommit;
        }
    }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't resolve the error with FailureResolutionType.DeleteElements, then you can return FailureProcessingResult.ProceedWithRollBack&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In such case you have to set:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;failureOptions.SetClearAfterRollback(true);&lt;/LI-CODE&gt;
&lt;P&gt;for your transaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 07:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11002936#M20245</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2022-03-14T07:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003028#M20246</link>
      <description>&lt;P&gt;I'll explain my flow with more details:&lt;/P&gt;&lt;P&gt;- I'm successfully preventing the users from deleting parts that have a specific scheme I made&lt;/P&gt;&lt;P&gt;- No deletion is done whatsoever. Which is good - that was my goal&lt;/P&gt;&lt;P&gt;- Although no deletion is done, the user still get this warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to hide it because it can be confusing to my user. The problem is that - The severity of this message is 'Error' and not warning and therefore I can't use Failure Accessor 'DeleteWarning' method.&lt;/P&gt;&lt;P&gt;So my question is - Is is possible to prevent showing failures of 'Error' severity?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1035898i781FD3F6B0010F48/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 08:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003028#M20246</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-14T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003206#M20247</link>
      <description>&lt;P&gt;Failures with "Error" severity could not be "swallowed". They should be resolved using some resolution type (if supported) or by transition rollback. If the transition is rolled back and you don't want to see messages in the UI, you should set clear after rollback transition option&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 10:33:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003206#M20247</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2022-03-14T10:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003443#M20248</link>
      <description>&lt;P&gt;Transactions of course, not transitions.... T9, sorry&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 12:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003443#M20248</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2022-03-14T12:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003465#M20249</link>
      <description>I tried returning ProceedWithCommit but the error still seems to appear &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Although I think I'm getting close</description>
      <pubDate>Mon, 14 Mar 2022 12:24:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003465#M20249</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-14T12:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003511#M20250</link>
      <description>But there's nothing to rollback because the transaction (deletion) didn't happen yet. That's what error warns me from.. I'm trying to return ProceedWithCommit / Continue and still no success..</description>
      <pubDate>Mon, 14 Mar 2022 12:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003511#M20250</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-14T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003567#M20251</link>
      <description>&lt;P&gt;This is my PreprocessFailures&lt;/P&gt;&lt;P&gt;I'm getting in the for loop, and inside my if statement. And of course - returning ProceedWithRollback. The error still appears..&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public FailureProcessingResult PreprocessFailures(FailuresAccessor failuresAccessor)
        {
            IList&amp;lt;FailureMessageAccessor&amp;gt; failList = new List&amp;lt;FailureMessageAccessor&amp;gt;();
            failList = failuresAccessor.GetFailureMessages(); // Inside event handler, get all warnings

            foreach (FailureMessageAccessor failure in failList)
            {
                FailureDefinitionId failID = failure.GetFailureDefinitionId();
                if (failID == BuiltInFailures.DPartFailures.DeletingDPartWillDeleteMorePartsError)
                {
                    failure.SetCurrentResolutionType(FailureResolutionType.Default);
                    failuresAccessor.ResolveFailure(failure);
                    failuresAccessor.GetFailureHandlingOptions().SetClearAfterRollback(true);
                    return FailureProcessingResult.ProceedWithRollBack;
                }
            }

            return FailureProcessingResult.Continue;
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Mar 2022 13:01:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003567#M20251</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-14T13:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003799#M20252</link>
      <description>&lt;P&gt;From SDK (FailureResolutionType):&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Default - Special (reserved) type. It cannot be used as a type when defining a resolution, but can be used as a key to query default resolution from FailureMessage or FailureDefinition.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you have to call "ResolveFailure" if you want to rollback the transaction&lt;/P&gt;
&lt;P&gt;I would try to set "clear after rollback" through transaction options before starting the transaction, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var failureOptions = transaction.GetFailureHandlingOptions();
failureOptions.SetClearAfterRollback(true);
...
transaction.SetFailureHandlingOptions(failureOptions);
transaction.Start();
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:28:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003799#M20252</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2022-03-14T14:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003823#M20253</link>
      <description>&lt;P&gt;But I'm not starting any transaction.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; At any point&lt;BR /&gt;This method is triggered by the user - When he tries to delete an element (that's what I want). I'm preventing the user from deleting the element (Raising a different error saying "Operation is cancelled".)&lt;BR /&gt;I just don't want to get the error I attached in the picture a few comments above..&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:31:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003823#M20253</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-14T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003877#M20254</link>
      <description>&lt;P&gt;Do you use&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Application.RegisterFailuresProcessor&lt;/LI-CODE&gt;
&lt;P&gt;method?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally would suggest to avoid this...&lt;/P&gt;
&lt;P&gt;From SDK:&lt;/P&gt;
&lt;DIV id="mainSection" style="overflow: auto; height: 863px; width: 1676px;"&gt;
&lt;DIV id="mainBody"&gt;
&lt;DIV id="allHistory" class="saveHistory"&gt;
&lt;DIV class="summary"&gt;Replaces Revit's default user interface (if present) with alternative handling for all warnings and errors (including those not generated by your application) for the rest of the Revit session; if your application is not prepared to respond to all warnings and errors, consider use of IFailuresPreprocessor (in your opened Transaction) or the FailuresProcessing event instead of this interface.&lt;/DIV&gt;
&lt;DIV class="summary"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="summary"&gt;I think a better idea would be to subscribe to Application.FailuresProcessing event.&lt;/DIV&gt;
&lt;DIV class="summary"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="summary"&gt;Then - yes, set "clear after rollback" as you did&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:48:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003877#M20254</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2022-03-14T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003883#M20255</link>
      <description>&lt;P&gt;I am registered to FailuresProcessing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;uiControlledApplication.ControlledApplication.FailuresProcessing += ControlledApplication_FailuresProcessing;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;And it still shows the error..&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:51:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003883#M20255</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-14T14:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003890#M20256</link>
      <description>&lt;P&gt;I am also using IFailuresPreprocessor:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public class FailuresPreProcessor : IFailuresPreprocessor
    {
        public FailureProcessingResult PreprocessFailures(FailuresAccessor failuresAccessor)
        {
            IList&amp;lt;FailureMessageAccessor&amp;gt; failList = new List&amp;lt;FailureMessageAccessor&amp;gt;();
            failList = failuresAccessor.GetFailureMessages(); // Inside event handler, get all warnings

            foreach (FailureMessageAccessor failure in failList)
            {
                FailureDefinitionId failID = failure.GetFailureDefinitionId();
                if (failID == BuiltInFailures.DPartFailures.DeletingDPartWillDeleteMorePartsError)
                {
                    failure.SetCurrentResolutionType(FailureResolutionType.Others);
                    
                    failuresAccessor.GetFailureHandlingOptions().SetClearAfterRollback(true);
                    failuresAccessor.ResolveFailure(failure);
                    return FailureProcessingResult.ProceedWithRollBack;
                }
            }

            return FailureProcessingResult.Continue;
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;Thanks so much for trying to help. I appreciate it!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:53:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11003890#M20256</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-14T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11004220#M20257</link>
      <description>&lt;P&gt;I guess you should pick one. Have you tried to remove ResolveFailure and left only&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;return FailureProcessingResult.ProceedWithRollBack;&lt;/LI-CODE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 17:15:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11004220#M20257</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2022-03-14T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Disable error with 'Error' severity</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11005548#M20258</link>
      <description>What do you mean by 'pick one'?&lt;BR /&gt;&lt;BR /&gt;I tried to return ProceedWithRollBack and removing ResolveFailure - didn't help.. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Tue, 15 Mar 2022 07:44:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/disable-error-with-error-severity/m-p/11005548#M20258</guid>
      <dc:creator>tomerFUNPJ</dc:creator>
      <dc:date>2022-03-15T07:44:41Z</dc:date>
    </item>
  </channel>
</rss>

