# Script library not showing list of def / procedures

**URL:** <https://forum.inductiveautomation.com/t/script-library-not-showing-list-of-def-procedures/106975>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [June 3, 2025, 6:59pm UTC](https://forum.inductiveautomation.com/t/script-library-not-showing-list-of-def-procedures/106975 "2025-06-03T18:59:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff.ryan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jeff.ryan/32/25543_2.png) [@jeff.ryan](https://forum.inductiveautomation.com/u/jeff.ryan)\
**Post date:** [June 3, 2025, 6:59pm UTC](https://forum.inductiveautomation.com/t/script-library-not-showing-list-of-def-procedures/106975/1 "2025-06-03T18:59:52Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/7/17f818e7884d2352f81d378ea6b65ed480adc338.png)  
Just an annoyance I can't find , I thought someone here might know.  
In a new script library I created I have lots of def procedures, and only 3 are showing in the pane to the right where you can click on to navigate to. I can't find the difference from those that are showing. I have a few other script libraries and all of those def procedures always show.  
What is it that makes them available and show there, what might be wrong here? (Ignition 8.1.47). Thanks.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [June 3, 2025, 7:04pm UTC](https://forum.inductiveautomation.com/t/script-library-not-showing-list-of-def-procedures/106975/2 "2025-06-03T19:04:02Z")

</div>

Syntax error somewhere, or mixed tabs/spaces. You should be able to toggle the display of whitespace characters in the editor.

Side note, your current method of creating a SQL query is leaving you open to SQL injection. Prep queries are normally constructed using `?` as a value placeholder, and provided a list of values when calling `runPrepUpdate/runPrepQuery` that are used to fill in the `?` in the order they appear in the query.

---

<div class="post-metadata">

**Author:** ![jeff.ryan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jeff.ryan/32/25543_2.png) [@jeff.ryan](https://forum.inductiveautomation.com/u/jeff.ryan)\
**Post date:** [June 3, 2025, 7:23pm UTC](https://forum.inductiveautomation.com/t/script-library-not-showing-list-of-def-procedures/106975/3 "2025-06-03T19:23:16Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/7/874d2878658d9ef52c8c4b831a5a4576ec681c84.png)  
Yes, that was it, tab after the def (my copying and pasting, sigh). Thank you.

(And thanks for the sql advice)

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 3, 2025, 10:19pm UTC](https://forum.inductiveautomation.com/t/script-library-not-showing-list-of-def-procedures/106975/4 "2025-06-03T22:19:37Z")

</div>

> [@ryan.white](#):
>
> Side note, your current method of creating a SQL query is leaving you open to SQL injection

Not to mention being a pain in the butt to construct with so many concatenations! Using the query params also handle type conversions
