Cannot get unfetched attribute code

Hi,

I am getting “cannot get unfetched attribute [code] from detached object com.rhinoj.insight.entity.State” When i am trying to export file from entity inspector page.
Please advice?