
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 11:42 AM
Hello.
A script in one of my workflows is not creating Tasks, so I pasted it into a Fix Script to test it out. It doesn't work there either, and I am utterly baffled as to why, it is the simplest possible insert:
Fix Script:
var gr = new GlideRecord('task');
gr.initialize();
gr.short_description = 'do it';
gr.insert();
Generates the following error:
I've never had any problem like this with GlideRecord before.
Thank you for any help.
-John
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 01:08 PM
Works for me. Is it possible you have a default value script (or script include reference) on a field on Task that is trying to set a value? Where might the "getValue" be coming from? Seems specific to your instance unfortunately.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2017 01:08 PM
Works for me. Is it possible you have a default value script (or script include reference) on a field on Task that is trying to set a value? Where might the "getValue" be coming from? Seems specific to your instance unfortunately.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2017 09:50 AM
Erik - thank you, that is exactly what it was, a default value in one of the Task fields had a malformed script.