# isDBConnectionAvailable not working

**URL:** <https://forum.inductiveautomation.com/t/isdbconnectionavailable-not-working/35789>\
**Category:** Ignition\
**Created:** [June 18, 2020, 8:26am UTC](https://forum.inductiveautomation.com/t/isdbconnectionavailable-not-working/35789 "2020-06-18T08:26:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario.colombo91](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mario.colombo91/32/14148_2.png) [@mario.colombo91](https://forum.inductiveautomation.com/u/mario.colombo91)\
**Post date:** [June 18, 2020, 8:26am UTC](https://forum.inductiveautomation.com/t/isdbconnectionavailable-not-working/35789/1 "2020-06-18T08:26:23Z")

</div>

Greetings,

we found an issue on an expression tag whenupgrading from Ignition 7.9 to 8.0.12: our tag check the connection on a linked DB using the expression isDBConnectionAvailable, this formula was working in 7.9 but not in 8.0.

The Diagnostic of the tag says “Unknown function: isDBConnectionAvailable”, even if we try to retrieve the DB name by Tag, with apex or putting the DB name in parenthesis. To avoid syntax errors, i tried to copy the function using the tooltip, but that didn’t work too

I’m attaching screenshots of the error and of our configuration, the tag  
is “STATO\_LINEA”.

Thanks a lot for every reply

 ![DBConnected](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/531ce43b4c548e14c404cdc965768a0165cb2b45.png) ![DBName](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/62e9a6bfcbde47849160945f46f90e092ae9cc15.png) ![Error](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/49de5ca2053fb465e646354b412e9b3dd881451d.png) ![FromDataType](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/49ffa0ffc0551029f4eb9ce0c6423d0a856231f6.png) ![WithoutApex](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/113b7a99bf19be88820258723ed70c1ca06b010f.png)

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [June 18, 2020, 12:07pm UTC](https://forum.inductiveautomation.com/t/isdbconnectionavailable-not-working/35789/2 "2020-06-18T12:07:48Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1e57a5e7d864a1e1cd7888a06e14252a3027e39c.png)

How about using the system tag instead ?

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [June 18, 2020, 12:13pm UTC](https://forum.inductiveautomation.com/t/isdbconnectionavailable-not-working/35789/3 "2020-06-18T12:13:14Z")

</div>

Also, that may be because it does not exists in 8.0  
This is 8.X user manual,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/066f51fdcb74ca0edeadfc4f4da1f8c15282e729.png)

This is 7.9 -

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6eb3396336918cc05f5ac4122e8fe3f3a80bad01.png)

---

<div class="post-metadata">

**Author:** ![mario.colombo91](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mario.colombo91/32/14148_2.png) [@mario.colombo91](https://forum.inductiveautomation.com/u/mario.colombo91)\
**Post date:** [June 22, 2020, 8:37am UTC](https://forum.inductiveautomation.com/t/isdbconnectionavailable-not-working/35789/4 "2020-06-22T08:37:24Z")

</div>

Thanks Kaushik, that worked! 😃

the thing that really upsets me was that i could see the function available in the function menu, but then he says “unknown funcion”.

With this workaround we can check the connection, thanks!
