Cannot create Salesforce Metadata Connection Talend 6.2

One Star

Cannot create Salesforce Metadata Connection Talend 6.2

Hello everybody.
We are news using this ETL, we have a Talend problem when we created the salesforce connection to sandbox.
We are using the free version 6.0.2.20160510_1709. And de Salesforce URL to login: (test.salesforce.com/services/Soap/u/25.0) 
Internet searching, we found a user who has exactly the same problem jira.talendforge.org/browse/TDI-36279

Could anyone tell us how we can solve the problem? It may be problemas with de libraries? We are using JDK 1.8
Error Detail:
After test successfully the Salesforce connection, we select/add a Schema, just Account for example and when we click the Finish button, appear a popup with an error message:
Save failed!
  org.talend.daikon.exception.TalendRuntimeException: FAILED_INVOKE_METHOD:{method=afterFormFinishMain, class=org.talend.components.salesforce.SalesforceModuleListProperties}
      at org.talend.daikon.properties.PropertiesDynamicMethodHelper.doInvoke(PropertiesDynamicMethodHelper.java:78)
      at org.talend.daikon.properties.PropertiesDynamicMethodHelper.afterFormFinish(PropertiesDynamicMethodHelper.java:117)
      at org.talend.daikon.properties.service.PropertiesServiceImpl.afterFormFinish(PropertiesServiceImpl.java:91)
      at org.talend.components.api.service.internal.osgi.ComponentServiceOsgi.afterFormFinish(ComponentServiceOsgi.java:201)
      at org.talend.components.api.service.internal.osgi.ComponentServiceOsgi.afterFormFinish(ComponentServiceOsgi.java:50)
      at org.talend.repository.generic.ui.GenericConnWizard.performFinish(GenericConnWizard.java:232)
      at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
      at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
      at org.eclipse.jface.window.Window.open(Window.java:808)
      at org.talend.repository.generic.action.CreateGenericConnectionAction.doRun(CreateGenericConnectionAction.java:51)
      at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)
      at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)
      at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)
      at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3236)
      at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2047)
      at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)
      at org.talend.repository.viewer.action.RepoDoubleClickAction.run(RepoDoubleClickAction.java:117)
      at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:229)
      at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
      at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
      at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:853)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
      at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:850)
      at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1142)
      at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
      at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1249)
      at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
      at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
      at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.talend.rcp.intro.Application.start(Application.java:197)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.talend.daikon.properties.PropertiesDynamicMethodHelper.doInvoke(PropertiesDynamicMethodHelper.java:74)
      ... 64 more
  Caused by: java.io.IOException: com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urnSmiley Tongueartner.soap.sforce.com:compactLayoutable' but found 'urnSmiley Tongueartner.soap.sforce.com:createable'
      at org.talend.components.salesforce.runtime.SalesforceSourceOrSink.getSchema(SalesforceSourceOrSink.java:296)
      at org.talend.components.salesforce.runtime.SalesforceSourceOrSink.getSchema(SalesforceSourceOrSink.java:282)
      at org.talend.components.salesforce.SalesforceModuleListProperties.afterFormFinishMain(SalesforceModuleListProperties.java:94)
      ... 69 more
  Caused by: com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urnSmiley Tongueartner.soap.sforce.com:compactLayoutable' but found 'urnSmiley Tongueartner.soap.sforce.com:createable'
      at com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:411)
      at com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:440)
      at com.sforce.soap.partner.DescribeSObjectResult.setCompactLayoutable(DescribeSObjectResult.java:138)
      at com.sforce.soap.partner.DescribeSObjectResult.loadFields(DescribeSObjectResult.java:1062)
      at com.sforce.soap.partner.DescribeSObjectResult.load(DescribeSObjectResult.java:1053)
      at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653)
      at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:553)
      at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:531)
      at com.sforce.soap.partner.DescribeSObjectsResponse_element.setResult(DescribeSObjectsResponse_element.java:39)
      at com.sforce.soap.partner.DescribeSObjectsResponse_element.loadFields(DescribeSObjectsResponse_element.java:70)
      at com.sforce.soap.partner.DescribeSObjectsResponse_element.load(DescribeSObjectsResponse_element.java:64)
      at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653)
      at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529)
      at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:180)
      at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:154)
      at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
      at com.sforce.soap.partner.PartnerConnection.describeSObjects(PartnerConnection.java:1129)
      at org.talend.components.salesforce.runtime.SalesforceSourceOrSink.getSchema(SalesforceSourceOrSink.java:293)
      ... 71 more

I´ll start watching this issue and thanks in advance about some information.
Blanca.
Moderator

Re: Cannot create Salesforce Metadata Connection Talend 6.2

Hi,
Did you follow up document about:TalendHelpCenter:Centralizing Salesforce metadata to centralize salesforce metadata? Does this issue repro on v 6.1 also?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Cannot create Salesforce Metadata Connection Talend 6.2

Hello Xdshi,
We have tested with the version 6.1 and the problem it does not give it. Only it happens with the current version 6.2. 
We will start working with 6.1 then.
Thank you.
Moderator

Re: Cannot create Salesforce Metadata Connection Talend 6.2

Hi bpalaoju,
Thanks for your prompt reply. 
Feel free to add your comments in this jira issue: https://jira.talendforge.org/browse/TDI-36279

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Cannot create Salesforce Metadata Connection Talend 6.2

TOS_DI-win-x86_64.exe  is causing the following error:
com.sforce.ws.connectionException: failed to send request to https //test.salesforce.com/services/soap/u/34.0 
Please suggest a resolution...if not, I will have to revert to a previous version.

One Star

Re: Cannot create Salesforce Metadata Connection Talend 6.2

Hi.
We solved that error with this URL
The salesforece test connection passed but the error gives us to download the salesforce entities/objects that whay we use a previous version.
Blanca
Moderator

Re: Cannot create Salesforce Metadata Connection Talend 6.2

Hi yedr00,
Can you successfully connect to your SFDC https //test.salesforce.com/services/soap/u/34.0 without using talend tool?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Cannot create Salesforce Metadata Connection Talend 6.2

Hi. 
sorry, I dind´t inlcude de url: https //test.salesforce.com/services/Soap/u/25.0