FIELD_INTEGRITY_EXCEPTION when saving LWC in IntelliJ

Issue #1996 resolved
Former user created an issue

Since installing version 2.1.9.3 I am getting FIELD_INTEGRITY_EXCEPTION’s when trying to save an LWC on objects that I haven’t even changed. It works for a while, and then, sometimes without even making a change, I can’t save it anymore. Restarting IntelliJ does not seem to help, restarting the machine, however, does. It fixes it every time, at least for a while….

Comments (4)

  1. Scott Wells repo owner

    Hi, Dirk. Please see the first entry from the release notes about #1589. You can work around this issue by disabling Tooling API-based deployment of LWC, but before you do so, can you please enable debug logging for metadata deployment, reproduce this issue, and either attach or email the resulting idea.log so that I can address the remaining variant that you're encountering. My goal is to have 100% reliable deployment of LWC components with the Tooling API enabled, routing to the Metadata API in known corner-cases as appropriate, but otherwise providing a much faster deployment experience for LWC components than is otherwise possible. Thanks!

  2. Scott Wells repo owner

    Hi, Dirk. Just checking in to see if you might be able to provide a log with this specific FIELD_INTEGRITY_EXCEPTION request/response pair in it. I'd really like to incorporate it into the heuristic employed by IC2 to ensure that you and others no longer see this instance of the same issue when deploying LWC via the Tooling API.

  3. Scott Wells repo owner

    Resolving due to lack of information. Please feel free to reopen if/when providing logs demonstrating the specific instance of this issue.

  4. Log in to comment