FoRcE #1 I will assume you already set up a type skill_def containing a field named id.You need to change s=new skill_def to s:skill_def = new skill_def