function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ed McCannEd McCann 

Cannot get Salesforce account ID

I get the following error when trying to update a record in Salesforce using SOAP API, however I'm seeing the record being updated in Salesforce. The compid is our interal identifier that is linked to the Salesforce AccountID.

06:01:35.081 [main] ERROR c.p.pinksync.salesforce.impl.BaseSF - Exception occurred while logging in :

com.sforce.soap.enterprise.fault.UnexpectedErrorFault: null
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_25]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_25]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_25]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[na:1.8.0_25]
        at java.lang.Class.newInstance(Class.java:438) ~[na:1.8.0_25]
        at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:682) ~[force-wsc-36.2.0.jar:na]
        at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:557) ~[force-wsc-36.2.0.jar:na]
        at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:236) ~[force-wsc-36.2.0.jar:na]
        at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:210) ~[force-wsc-36.2.0.jar:na]
        at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:156) ~[force-wsc-36.2.0.jar:na]
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99) ~[force-wsc-36.2.0.jar:na]
        at com.sforce.soap.enterprise.EnterpriseConnection.login(EnterpriseConnection.java:1216) ~[enterprise-36.2.0.jar:na]
        at com.sforce.soap.enterprise.EnterpriseConnection.<init>(EnterpriseConnection.java:386) ~[enterprise-36.2.0.jar:na]
        at com.sforce.soap.enterprise.Connector.newConnection(Connector.java:27) ~[enterprise-36.2.0.jar:na]
        at com.pinkotc.pinksync.salesforce.impl.BaseSF.login(BaseSF.java:33) ~[pinksync-1.43.0.1.jar:na]
        at com.pinkotc.pinksync.salesforce.impl.SforceCompanyImpl.getAccountId(SforceCompanyImpl.java:366) [pinksync-1.43.0.1.jar:na]
        at com.pinkotc.pinksync.salesforce.impl.SforceSecurityImpl.updateSforceSecurity(SforceSecurityImpl.java:50) [pinksync-1.43.0.1.jar:na]
        at com.pinkotc.pinksync.cli.PinksyncAdmin.main(PinksyncAdmin.java:240) [pinksync-1.43.0.1.jar:na]
06:01:35,081  INFO (SforceSecurityImpl:58) - Could not get Salesforce account ID for compid 665036