You need to sign in to do that
Don't have an account?
![Ed McCann Ed McCann](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Failure to connect issues via SOAP API
I currently have an SOAP API process to push/update from our DB to Salesforce twice daily - once at 6 AM and again at 9 PM. The 9 PM job does not connect to Salesforce. I need to resolve the error below:
Try to connect to Salesforce via SOAP connection.
Error Message (If applicable)
21:08:47.073 [main] INFO c.p.pinksync.salesforce.impl.BaseSF - LOGGING IN NOW....
21:08:47,344 ERROR (SforcePartnerImpl:105) - Connection Exception occurred while creating ...for compid 687802 and spmid 5543
[UnexpectedErrorFault [ApiFault exceptionCode='UNKNOWN_EXCEPTION'
exceptionMessage='An unexpected error occurred. Please include this ErrorId if you contact support: 471974694-49049 (550841919)'
extendedErrorDetails='{[0]}'
]
]
at sun.reflect.GeneratedConstructorAccessor52.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:438)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:682)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:557)
at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:236)
at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:210)
at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:156)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
at com.sforce.soap.enterprise.EnterpriseConnection.create(EnterpriseConnection.java:432)
at com.pinkotc.pinksync.salesforce.impl.SforcePartnerImpl.createSforcePartner(SforcePartnerImpl.java:90)
at com.pinkotc.pinksync.salesforce.impl.SforcePartnerImpl.updateSforcePartner(SforcePartnerImpl.java:40)
at com.pinkotc.pinksync.cli.PinksyncAdmin.main(PinksyncAdmin.java:222)
21:08:47.344 [main] INFO o.s.c.s.ClassPathXmlApplicationContext - Closing org.springframework.context.support.ClassPathXmlApplicationContext@546a03af: startup date [Mon Oct 21 21:00:02 EDT 2019]; root of context hierarchy
21:08:47.346 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
Try to connect to Salesforce via SOAP connection.
Error Message (If applicable)
21:08:47.073 [main] INFO c.p.pinksync.salesforce.impl.BaseSF - LOGGING IN NOW....
21:08:47,344 ERROR (SforcePartnerImpl:105) - Connection Exception occurred while creating ...for compid 687802 and spmid 5543
[UnexpectedErrorFault [ApiFault exceptionCode='UNKNOWN_EXCEPTION'
exceptionMessage='An unexpected error occurred. Please include this ErrorId if you contact support: 471974694-49049 (550841919)'
extendedErrorDetails='{[0]}'
]
]
at sun.reflect.GeneratedConstructorAccessor52.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:438)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:682)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:557)
at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:236)
at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:210)
at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:156)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
at com.sforce.soap.enterprise.EnterpriseConnection.create(EnterpriseConnection.java:432)
at com.pinkotc.pinksync.salesforce.impl.SforcePartnerImpl.createSforcePartner(SforcePartnerImpl.java:90)
at com.pinkotc.pinksync.salesforce.impl.SforcePartnerImpl.updateSforcePartner(SforcePartnerImpl.java:40)
at com.pinkotc.pinksync.cli.PinksyncAdmin.main(PinksyncAdmin.java:222)
21:08:47.344 [main] INFO o.s.c.s.ClassPathXmlApplicationContext - Closing org.springframework.context.support.ClassPathXmlApplicationContext@546a03af: startup date [Mon Oct 21 21:00:02 EDT 2019]; root of context hierarchy
21:08:47.346 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
Since the connection works fine for 6 AM and fails for 9 PM, its looks like environment issue. Check with your firewall time or try and re-schdule the job.
Thanks!