Deployment Failed: FIELD_INTEGRITY_EXCEPTION - Invalid reference

881 views
Skip to first unread message

Hari Padmanaban

unread,
Aug 7, 2022, 8:27:15 PM8/7/22
to Illuminated Cloud Q&A
Hi,

I am getting an error in my .js file in LWC, when trying to reference a field in the import statement

import CATEGORY_FIELD from '@salesforce/schema/Car__c.Category__c'

I checked and made sure that the API name is right(intellisense suggested me the name too), and that it has the right permissions. It is a custom object that I created. Not sure why I am getting the error. I have the latest version of illuminatedcloud and webstorm IDE. 

Here are the details of my error.

Deployment Failed: FIELD_INTEGRITY_EXCEPTION - Invalid reference Car__c.Category__c of type sobjectField in file carFilter.js: Source

The object import seems to work fine: import CAR_OBJECT from '@salesforce/schema/Car__c'

Please let me know why this is not working as expected.

Thanks,
Hari 


Message has been deleted

Scott

unread,
Aug 7, 2022, 9:29:07 PM8/7/22
to Illuminated Cloud Q&A, Hari Padmanaban
Hi. Please make sure that you're on the latest version of IC2. If you confirm that the issue still occurs on the latest, please take a look at this issue:


specifically the comment that says "Let's gather some additional diagnostic information..." which contains instructions for how to gather said information and also a workaround for this issue once you've gathered it until I can review what you provide.

Regards,
Scott Wells

Scott

unread,
Aug 8, 2022, 10:44:15 AM8/8/22
to Illuminated Cloud Q&A, Scott, Hari Padmanaban
Also take a look at this where someone else is experiencing the same (or at least a very similar) issue:


Let's use that entry in the issue tracker to collect diagnostic info so that I can corner and address this specific instance.

Regards,
Scott Wells
Reply all
Reply to author
Forward
0 new messages