Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
jdope
Contributor III
Contributor III

tMap with 2 tSalesforceInput Components: "Failed to Generate Code" Err

Hello...
I've been banging my head against the wall for two days on this.  I had a very nice flow working, closed my job and when I open it again I get a "Failed to Generate Code" error. 
I've spent some time and got it to the most basic elements for trouleshooting:
--Input from an .xlsx file to a tMap out to an .xlsx file. 
--Two tSalesforceInput components provide lookup tables to the tMap input (see image below). 
If I setup the components and flow, close my job, and open it back up, click on the "Code" tab no code is generated and the below exceptions are being logged. 

If I delete the link from the tSalesforceInputs to the tMap, close my job, open it, code is now generated.  So it seems there is something awry with the tSalesforceInputs.  What am I doing wrong?  Why did this work fine, then break after I closed my job and reopened it??
Talend Open Studio for Data Integration Version: 6.2.0



To see the whole post, download it here
Labels (2)
4 Replies
jdope
Contributor III
Contributor III
Author

Something I've noticed:
Drag the connector from tSalesforceInput to tMap.  Save. Note the connector name "row2(Lookup, Main)".  At this point I can click on the code tab and code is generated.  I can open the tMap to see the settings.
Before


Close the job, then reopen the job:
Note that there is now a Warning: "This component has too much "Row" type inputs." message on the tSalesforceInput.  The connector name has changed to "row2(Lookup)" and I am unable to generate code.  I am also unable to access the tMap settings. (Unhandled event loop exception) .




---------------------------------------------------------------------------
Opening tMap:
Unhandled event loop exception

java.lang.NullPointerException
    at org.talend.core.model.components.IODataComponent.<init>(IODataComponent.java:54)
    at org.talend.designer.core.model.components.ExternalUtilities.getExternalNodeReadyToOpen(ExternalUtilities.java:45)
    at org.talend.designer.core.ui.editor.nodes.NodePart.performRequest(NodePart.java:553)
    at org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:194)
    at org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:137)
    at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:1069)
    at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:527)
    at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:231)
    at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:291)
    at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:518)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:196)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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)
Anonymous
Not applicable

If still possible can you share the job that causes the error?
Anonymous
Not applicable

We reproduced the issue and tracking it now at https://jira.talendforge.org/browse/TDI-36372
Thomas
jdope
Contributor III
Contributor III
Author

Thank you!