Iupdater fails

Iupdater fails

ameer.mansourWAK8Y
Advocate Advocate
634 Views
3 Replies
Message 1 of 4

Iupdater fails

ameer.mansourWAK8Y
Advocate
Advocate

I have an updater but sometimes it fails and it doesn't throw exceptions. it just gives me that message without any other details to understand what went wrong!
is there any way

1111.png

to know at least where it failed?

0 Likes
635 Views
3 Replies
Replies (3)
Message 2 of 4

RPTHOMAS108
Mentor
Mentor

That's a common dialogue with the name of the updater blanked out so I'm assuming most will know even less than you about this.

 

Journal files may offer clues.

 

If you are running debug and it doesn't break there are certain tricks you can still use to see where you got to last i.e.  you can write to text log file, console or immediate window. Start by considering what you were doing at the time and what is likely to have been called in your code (assuming you are talking about your code).

0 Likes
Message 3 of 4

ameer.mansourWAK8Y
Advocate
Advocate

I opened a journal and I found these 

what my code does is removing created elements if there is a clash and create new elements with no clash 
journal snippet (Don't know the issue of errors in red)

6:< REGEN_DOC_CONTEXT_INFO: Attempt to modify wrong element during regeneration
' 6:< REGEN_DOC_CONTEXT_INFO: Document is changed in regeneration while it is not supposed to
' 4:< DBG_INFO: 5 regen passes: line 7728 of d:\ship\2019_px64\source\revit\revitdb\regen\ADocumentRegen.cpp.
' 2:< DBG_INFO: When constructing ElementRecord, elem 20252 not found: line 35 of d:\ship\2019_px64\source\revit\revitdb\elemtable\ElementRecord.cpp.
' 6:< ::68:: Delta VM: Avail +14 -> 134211062 MB, Used +1 -> 633 MB; RAM: Avail -13 -> 3483 MB, Used +3 -> 881 MB, Peak +3 -> 883 MB
' 6:< GUI Resource Usage GDI: Avail 9161, Used 839, User: Used 487
' 71.592764!!! 2:!!!BIG_GAP EndOrAbortUndoTransaction();DOPT;
' 4:< ::68:: Delta VM: Avail 134211062 MB, Used 633 MB; RAM: Avail -51 -> 3432 MB, Used +3 -> 884 MB, Peak +1 -> 884 MB
' 4:< GUI Resource Usage GDI: Avail 9162, Used 838, User: Used 487
' 32.425605!!! 2:!!!BIG_GAP EndOrAbortUndoTransaction();DOPT;
' 6:< FaultyAtomsCheckLog - Comparasion difference found :
' 9:< MODIFICATION IS FORBIDDEN: Element modification is forbidden because it is a member of a family, and that family is not being edited.

is there any other way to achieve my goal? and i can not use DocumentChanged event as i will not be able to make transaction in it.

0 Likes
Message 4 of 4

Sean_Page
Collaborator
Collaborator

I think it's kinda hard to help since we don't know much of anything about what your actually trying to do. All we know is that you've got an updater that's failing somewhere. Can you post any of the code, or what categories it's associated with, what it's doing etc?

 

If not I'd make sure your in a try /catch block and use a TaskDialog (TD)or something else to get more info. Can also use TD along the way for testing to see how far / where you get when it breaks.

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes