Deployment Failed via IC but working in Developer Console

Issue #434 resolved
RicardoB created an issue

IntelliJ IDEA: Community, 2016.2.5, #IC-162.2228.15 macOS Sierra 10.12

Hi,

When trying to save an APEX Class I get the following error message: 09:52 Deployment Failed INVALID_FIELD_FOR_INSERT_UPDATE - Dependent class is invalid and needs recompilation: [EDITED]: line 110, column 32: No such column '[EDITED]' on entity 'User'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

If I try the same using Developer Console then it works perfectly.

Relevant Log entries:

2016-10-21 10:05:53,215 [3168036] INFO - der.ForceComToolingApiDeployer - Using the tooling API to create ApexClass [EDITED]. 2016-10-21 10:05:55,273 [3170094] WARN - der.ForceComToolingApiDeployer - Failures when trying to create missing metadata. Aborting deployment.

I tried updating metadata and so on.

Thanks.

Comments (4)

  1. Scott Wells repo owner

    Ricardo, are you sure that Developer Console is in fact saving and not just saying it saved but not reporting an error? The "dependent class is invalid" error is reported by Salesforce and generally does represent a real issue, albeit an indirect one. If you have verified this, could you create a small standalone reproducible test case for me so that I can debug it? Thanks!

  2. Scott Wells repo owner

    Ricardo, is there anything I can do to help with this issue? If not, I'd like to resolve it, but I'm happy to leave it open if there's something I can do to help.

  3. Log in to comment