- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2015 03:46 PM
Hi! I'm on Fuji, trying to access data from a custom table to use in a scheduled job, and I keep getting the following in my system log:
org.mozilla.javascript.EcmaError: "user_credentials" is not defined.
Caused by error in <refname> at line 6
3: function pollNetScaler() {
4: gs.log('Start poll');
5: var user_credentials = new GlideRecord('u_custom_credentials');
==> 6: user_credentials.query();
I replaced my custom table with a vanilla system table- sys_user- but got the same result. I'm running the scheduled job a myself (and I have the admin role). What might I be missing here? How can I access table data?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2015 11:04 AM
I do see them, yes! And that line gives me the object type of netscale_use- which I see was from a previous iteration of this script, and I see that I DID make a typo in my variables previously, which leads to this. Auuugh! I'm a fool.
Thanks, everyone, for your responses! It helped me look at this in a bunch of different, helpful ways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2015 06:16 AM
Wait, I don't know if you are on Fuji but isn't there a setting on custom tables that allows or denies access to the table via GlideRecords?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2015 06:37 AM
Kenneth Pruitt, yep. As I mentioned, I'm using Fuji. Can you tell me more about this setting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2015 06:42 AM
Ha, my apologies, i clearly didn't re-read your initial post. But 'twas a false alarm anyway. The setting I was thinking of was "Allow access to this table via web services" setting on the table record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2015 07:23 AM
When you created the new table, did it automatically create ACL(s) for that table? Maybe you need to inactivate those and try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2015 08:29 AM