SObject field not recognized

28 views
Skip to first unread message

Łukasz Kęcik

unread,
Feb 17, 2023, 6:51:54 AM2/17/23
to Illuminated Cloud Q&A
Hi Scott!

I have a situation where one, specific field cannot be recognized
issue.png
- the field is a part of metadata subscription
I tried
- disabling new UI in intelij,
- rebuilding Offline Symbol Table
- removing Offline Symbol Table zip from the disk and generating it again
- rebuilding Caches and Indices
- re-retrieving the object from the ORG

Nothing seems to work. All other fields are recognized correctly, only this one guy is still glowing red.

Do you have any ideas why this could be?

Thanks,
BR, Lukasz

Scott

unread,
Feb 17, 2023, 9:22:57 AM2/17/23
to Illuminated Cloud Q&A, lukasz...@xceed.se
Hi, Lukasz. The most common cause of that would be lack of read access on that field by the user for the IC2 connection. That results in the field (or even SObject) not being included in the Metadata API calls used to build the OST. Check the connection for this project and see if Ensure field read access is enabled. If not, you can enable it and regenerate the OST, but be aware that it's going to add all SObjects/fields to the connection user's profile. That's generally 100% fine in DE orgs and scratch orgs where you're acting as an effective superuser for dev purposes, but in sandboxes and certainly prod orgs, you would likely not want to do that and would need to authorize that field for your user explicitly.

Let me know if that's not it and I'll be happy to dig in further.

Regards,
Scott Wells

Łukasz Kęcik

unread,
Feb 17, 2023, 11:40:55 AM2/17/23
to Illuminated Cloud Q&A, Scott, Łukasz Kęcik
Yes, that worked, thank you !!
Reply all
Reply to author
Forward
0 new messages