IllegalStateException: Cannot get unfetched attribute [login] from detached object

Hi Team,
I’m running the Scheduled task. While editing the task I’m getting an error

Blockquote

IllegalStateException: Cannot get unfetched attribute [login] from detached object com.company.saas.entity.ExtUser-60885987-1b61-4247-94c7-dff348347f93 [detached]

Blockquote

I know this will happen due to the view problem. but I don’t know where we can find the view.xml file for this scheduled task. Could you please help me out to fix the issue.
image

Hi,
Please make sure that “login” attribute is contained in the _minimal view, i.e. it should be in the right part of the NamePattern annotation on the ExtUser entity, like it is in the User entity definition:

@NamePattern("#getCaption|login,name")
2 Likes

Thanks @AlexBudarov