Script Action is not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 06:08 AM
I have invoked an event by business rule and that event is triggering fine. I have checked that in the event log.
The main issue is I have created one script action corresponding to that event but that script action is not working. All I am doing in that script action is creating records.Please check attached snapshot.
Is there any issue with the script action script.?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 09:32 AM
It looks like u_shifts is an invalid record. Could you please check you table name: u_shifts, is that correct?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 09:36 AM
Hi Rahul,
Yes, I have checked the table name it is u_shifts. Have you checked the link I have mentioned in the 2nd post. Any idea about it as per the KB article it seems there is some bug because I am also getting the same logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 09:43 AM
Hi,
Looks like an issue only with the log entries. Your records are getting inserted in the table, right?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 09:49 AM
No, unfortunately that's the main issue, the records are also not getting inserted in shifts table. That is why I made this script action very simple to check why records are not getting inserted. I have checked the event log and it is getting invoked but the Script written in the script action is not working.
Here is the dictionary entries of the Shifts table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 09:56 AM
Did you try the same on any OOB table? If it is not working any case then it is product bug, you have to register a case in HI then.
You can try one more thing, put your code in the script include and call it from the script action. See if that works?