# Click to Graph

**URL:** <https://forum.inductiveautomation.com/t/click-to-graph/811>\
**Category:** Archived Topics\
**Created:** [September 12, 2008, 8:28pm UTC](https://forum.inductiveautomation.com/t/click-to-graph/811 "2008-09-12T20:28:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenicabecklund](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@jenicabecklund](https://forum.inductiveautomation.com/u/jenicabecklund)\
**Post date:** [September 12, 2008, 8:28pm UTC](https://forum.inductiveautomation.com/t/click-to-graph/811/1 "2008-09-12T20:28:34Z")

</div>

I am brand new to FactoryPMI and wanted to setup the Click to Graph, after following instructions I tried to test it by right clicking the multistate indicator and I get this error:

Traceback (innermost last):  
File “event:mousePressed”, line 2, in ?  
File “module:ctg”, line 27, in showPopup  
ValueError: Connection Error: Datasource “CTGDB” does not exist in this Gateway.

So it seems to me that tables did not txfer correctly? I even deleted everything and reinstalled. Not sure what I did wrong please help!

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [September 12, 2008, 9:23pm UTC](https://forum.inductiveautomation.com/t/click-to-graph/811/2 "2008-09-12T21:23:30Z")

</div>

> [@](#):
>
> Connection Error: Datasource "CTGDB" does not exist in this Gateway.

I just quickly looked over the Click to Graph instructions, and it looks like there's one small point left out. Apparently the click to graph code is looking for a datasource with that name on the gateway, which understandably you don't have.

Go to the gateway, and go to the configuration section. Under "Datasources"\>"Connections", add a new connection named "CTGDB". Point it to the database where you installed the SQL script that came with the click to graph module. You should now be good to go.

Regards,
