# 'suppress\_callback\_exceptions' not working

**URL:** <https://community.plotly.com/t/suppress-callback-exceptions-not-working/71486>\
**Category:** Dash Python\
**Created:** [January 10, 2023, 2:21pm UTC](https://community.plotly.com/t/suppress-callback-exceptions-not-working/71486 "2023-01-10T14:21:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JordyS](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@JordyS](https://community.plotly.com/u/JordyS)\
**Post date:** [January 10, 2023, 2:21pm UTC](https://community.plotly.com/t/suppress-callback-exceptions-not-working/71486/1 "2023-01-10T14:21:16Z")

</div>

Hi all,

So I have been working on this dashboard for quite a while now and it is getting more complicated over time. I now want to make a callback that switches tabs depending on different inputs. As I can only have one callback for this output ‘active-tab’, I have to put all the inputs in this callback as well. Problem is that most of these inputs aren’t generated yet, [as described here](https://dash.plotly.com/callback-gotchas).

The problem is that suppress\_callback\_exceptions hasn’t been working for me for a while now. Up to now it just generated annoying errors, but everything was working fine. But now I really need to suppress this in order to make the callback working.  
When searching for this error, I found various topics on Stackoverflow and on this forum, but I haven’t seen (m)any answers. Is it more known why this sometimes happens and what can be done about it?

The whole app is too much to share here, but I have tried all the obvious ways [like here](https://stackoverflow.com/questions/70688585/suppress-callback-exceptions-true-not-working-dash). But it keeps throwing the error ‘A nonexistent object was used in an `Input` of a Dash callback.’ at me.

Any ideas are much appreciated!

Edit: ok so while creating this topic I came across [this solution](https://community.plotly.com/t/a-nonexistent-object-was-used-in-an-input-of-a-dash-callback-an-multipage-app/52007/6) which uses pattern matching indexes. I’m still working on it, but it seems to work better that way, although I’m not sure why this works.

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [January 10, 2023, 2:54pm UTC](https://community.plotly.com/t/suppress-callback-exceptions-not-working/71486/2 "2023-01-10T14:54:38Z")

</div>

Hello @JordyS,

Yes, I would have suggested pattern-matching to help you, especially with the same exact functionality across the inputs.

Pattern-Matching works as a wildcard, so that you dont need to have the input available (because it can be 100 or 0 that are in the layout)
