Unable to read sys_id

trinadhgottipat
Kilo Expert

Hello,

I'm having a businddess rule on   Task table,which gets executed when the Script Include which is given in the condition field evaluates to true.

But, in my SCript Include, i'm passing the params from the business rule condition itself.

When the script include is called it is unable to read my record object.sys_id.So its returning an exception

Exception (TypeError: Cannot read property "sys_id" from null (sys_script_include.37f814d06ffa220025c42fceae3ee425.script; line 9)) occured while evaluating'Condition: javascript:new AffectedUtils().hasAffected(current, "task_ci", "task");' in business rule 'Affected ci notifications' on problem:PRB0001391; skipping business rule

How can I overcome this.Any ideas?

TIA,

Trinadh.

6 REPLIES 6

Hi Trinadh,



I don't know about that configuration of BR and script include. There are some execution time issue faced at the time. I thought so upgraded version use latest functionality to overcome this problem.



Thanks,


Kishor


Thanks for the response Kishor.Will check that anyhow.