# Mostly functioning SFC shows abortCause java.lang.Exception: compilation error in \</td\> \</tr\> \</table\>

**URL:** <https://forum.inductiveautomation.com/t/mostly-functioning-sfc-shows-abortcause-java-lang-exception-compilation-error-in-td-tr-table/70193>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 23, 2023, 12:28am UTC](https://forum.inductiveautomation.com/t/mostly-functioning-sfc-shows-abortcause-java-lang-exception-compilation-error-in-td-tr-table/70193 "2023-02-23T00:28:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Sherman](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Alexander\_Sherman](https://forum.inductiveautomation.com/u/Alexander_Sherman)\
**Post date:** [February 23, 2023, 12:28am UTC](https://forum.inductiveautomation.com/t/mostly-functioning-sfc-shows-abortcause-java-lang-exception-compilation-error-in-td-tr-table/70193/1 "2023-02-23T00:28:36Z")

</div>

I have an SFC that runs for the most part (it fails when trying to run sequentially, due to this bug). Even when it is "working" it shows an abortCause in the Chart Monitoring window of `java.lang.Exception: compilation error in </td> </tr> </table>`. This is obviously of not a lot of help, so I am wondering what other threads I can pull in order to try to figure out what is going wrong here. I probably have a typo somewhere, but I can't find it!

Also, is there a way to see the entire exception in this window or even via a popup? I currently have to copy paste the field out of the Designer into a notepad even to read it. The console apparently wont hang out while I am in the SFC editor, so that isn't an option for finding errors!

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f05e1a51b761fc4ecbe914b32ec975300a05d0f5.png)

Thanks

---

<div class="post-metadata">

**Author:** ![clifford.ayer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/clifford.ayer/32/78030_2.png) [@clifford.ayer](https://forum.inductiveautomation.com/u/clifford.ayer)\
**Post date:** [April 10, 2023, 2:36pm UTC](https://forum.inductiveautomation.com/t/mostly-functioning-sfc-shows-abortcause-java-lang-exception-compilation-error-in-td-tr-table/70193/2 "2023-04-10T14:36:13Z")

</div>

I am having this issue too!

I am not seeing any issues in either the gateway logger or console logger.

---

<div class="post-metadata">

**Author:** ![clifford.ayer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/clifford.ayer/32/78030_2.png) [@clifford.ayer](https://forum.inductiveautomation.com/u/clifford.ayer)\
**Post date:** [April 18, 2023, 7:03pm UTC](https://forum.inductiveautomation.com/t/mostly-functioning-sfc-shows-abortcause-java-lang-exception-compilation-error-in-td-tr-table/70193/3 "2023-04-18T19:03:56Z")

</div>

So I may have found the culprit. For each SFC that presents this error (in my case, I made a 'template' SFC that I duplicated multiple times) go to the Element Properties. Verify for each Event Script event, the script included the keyword 'pass' if there is no code being implemented.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/7/17d0bd59659626186d92ff695062d154e32c1587.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/e/aea03f848c7b2bc5b8ee1c186291b54710330f22.png)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 19, 2023, 2:47am UTC](https://forum.inductiveautomation.com/t/mostly-functioning-sfc-shows-abortcause-java-lang-exception-compilation-error-in-td-tr-table/70193/4 "2023-04-19T02:47:57Z")

</div>

![Screenshot_20230418-214709-676](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/8/b8b3adc8841ef3fb3a803143ce500df5d216df87.png)  
The On Abort icon choice is great 👍

---

<div class="post-metadata">

**Author:** ![clifford.ayer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/clifford.ayer/32/78030_2.png) [@clifford.ayer](https://forum.inductiveautomation.com/u/clifford.ayer)\
**Post date:** [April 19, 2023, 3:39am UTC](https://forum.inductiveautomation.com/t/mostly-functioning-sfc-shows-abortcause-java-lang-exception-compilation-error-in-td-tr-table/70193/5 "2023-04-19T03:39:17Z")

</div>

In my case, all of the SFCs' OnAbort events perform some clean up and write to the Logger. However, my issue(s) arose when my SFC ran to completion-- it would Abort _after_ the SFC ended due to the SFC's 'On Stop' call (which I assume is _always_ triggered at the END segment of an SFC). The code snippet below resulted in the Script Error.

```auto
#SFC On Stop
def onStart(chart):
    

```

and this did not:

```auto
#SFC On Stop
def onStart(chart):
    pass

```
