SAIL code error

Hi Guys, 

              I'm getting this error on SAIL code. I'm trying to use a gridfield (to load data, and delete a row) and I've a formlayout and inside that form, a sectionlayout (says grid is empty for a condition that rule!APN_isNull(ri!selection)) and another sectionLayout which has the gridfield. But I keep getting this error

 

"The contents field on a column layout may only contain components. Received Rule or Function Reference at index 1." 

 

Is there a nullcheck I need to add to my Gridfield attribute or is there something I need to specifically need to look out for. 

 

Thanks! 

  Discussion posts and replies are publicly visible