Getting Wrapped Conversion Error:The undefined value has no properties error when trying to create a catalog task through workflow

Gowtham Kodali
Tera Contributor

Hi,

 

When i am tring to create a  catalog task through workflow getting an error 

Create a Task: org.mozilla.javascript.Wrapped ConversionError:The undefined value has no properties 

 

Any solutiion for this

1 ACCEPTED SOLUTION

@Gowtham Kodali 

Did you check the property name is proper?

I could see spaces in between

Is it group _ name or group_name

Also does it contain group sys_id or group name

If sys_id then this is fine

task.assignment_group = gs.getProperty('group_name');

If group name then this should work

task.assignment_group.setDisplayValue(gs.getProperty('group_name'));

Regards
Ankur

View solution in original post

12 REPLIES 12

Ankur Bawiskar
Tera Patron

Hi Gowtham,

please share screenshot of catalog task activity or script you used

Regards
Ankur

task.short_description = "Please fulfill the Request for  :" +current.variables.v1.getDisplayValue();

var l = current.variables.v2.name;

 

if(l == 'x' || l=='y'){

task.assignment_group = gs.getProperty('group _ name');

}

@Gowtham Kodali 

Did you check the property name is proper?

I could see spaces in between

Is it group _ name or group_name

Also does it contain group sys_id or group name

If sys_id then this is fine

task.assignment_group = gs.getProperty('group_name');

If group name then this should work

task.assignment_group.setDisplayValue(gs.getProperty('group_name'));

Regards
Ankur

@Gowtham Kodali 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur