# Bug in nested try/catch exception handling

**URL:** https://www.finalbuilder.com/forums/t/bug-in-nested-try-catch-exception-handling/3653
**Category:** Bugs
**Created:** [December 23, 2016, 10:15am UTC](https://www.finalbuilder.com/forums/t/bug-in-nested-try-catch-exception-handling/3653 "2016-12-23T10:15:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mbreun](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mbreun](https://www.finalbuilder.com/forums/u/mbreun)
#### Post date: [December 23, 2016, 10:15am UTC](https://www.finalbuilder.com/forums/t/bug-in-nested-try-catch-exception-handling/3653/1 "2016-12-23T10:15:50Z")

</div>

I’m facing a bug in a nested try/catch inside a loop:   
  
 Iterator Start   
 Try   
 Try   
 “###Do something”   
 Catch   
 Handle Exception   
 Re-Raise Exception for outer Try/Catch   
 Finally   
 End   
 Catch   
 ### Expected to run only when the Catch above runs   
 Finally   
 End   
 Iterator End   
  
 Now when “###Do something” fails in some iteration then the Exception is handled and re-thrown to the outer Catch block.   
 Then in all subsequent iterations the outer Catch block runs, even though “###Do something” does not fail anymore.   
  
 I’m going to send a sample project to [support@finalbuilder.com](mailto:support@finalbuilder.com) that reproduces the error.

---

<div class="post-metadata">

### Author: ![mbreun](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@mbreun](https://www.finalbuilder.com/forums/u/mbreun)
#### Post date: [December 23, 2016, 10:18am UTC](https://www.finalbuilder.com/forums/t/bug-in-nested-try-catch-exception-handling/3653/2 "2016-12-23T10:18:19Z")

</div>

I forgot to mention:   
 I’m using FinalBuilder V8.0.0.2007 on Win7 x64 SP1.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [January 9, 2017, 5:59am UTC](https://www.finalbuilder.com/forums/t/bug-in-nested-try-catch-exception-handling/3653/3 "2017-01-09T05:59:20Z")

</div>

We have located the issue causing the inner exception to be raised on each iteration. The fix has been applied to the following update   
 [http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2026.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2026.exe)
