Message 1 of 7
can't solve failure message

Not applicable
02-21-2020
05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone.
I need help understanding how to handle the faileur message bellow:
I just need to use Revit APi to Cancel this message and proceed.
this is my Transaction that causes the error message
using (Transaction trans = new Transaction(doc, "setParameter")) { trans.Start(); for (int i = 0; i < x.Length; ++i) { GlobalParameter parameter = doc.GetElement(new ElementId(variables.ElementAt(i))) as GlobalParameter; parameter.SetValue(new DoubleParameterValue(x.ElementAt(i))); } uiApp.Application.FailuresProcessing += new EventHandler<FailuresProcessingEventArgs>(FailureProcess); trans.Commit(); }
and then I'm trying to handle the message, I've Tried without success:
RollBackPendingTransaction
ResolveFailures
Any ideas?
Thank you