<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Talend tSalesforceInput problem with number Format in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-tSalesforceInput-problem-with-number-Format/m-p/2257435#M39527</link>
    <description>&lt;P&gt;Hi tott&lt;/P&gt; 
&lt;P&gt;Which version are you using? I found a similar topic,&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.talend.com/t5/Design-and-Development/Salesforce-Metadata-Error-when-saving-the-connection/m-p/89244" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Salesforce-Metadata-Error-when-saving-the-connection/m-p/89244&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;For the function expression, I think you need to open a &lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_self" rel="nofollow noopener noreferrer"&gt;jira issue&lt;/A&gt; to our R&amp;amp;D team, our developers will investigate how to solve it.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Shong&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 03:09:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-22T03:09:56Z</dc:date>
    <item>
      <title>Talend tSalesforceInput problem with number Format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-tSalesforceInput-problem-with-number-Format/m-p/2257434#M39526</link>
      <description>&lt;P&gt;We are using talend to migrate some data from salesforce towards our legacy database.&lt;/P&gt; 
&lt;P&gt;We had nor problems with our first Objects from salesforce. The problems appears, when I try to import a new onject via talend metadata -&amp;gt; retrieve salesforce modules.&lt;/P&gt; 
&lt;P&gt;Now I get the following error message:&lt;/P&gt; 
&lt;P&gt;Save failed!&lt;BR /&gt;org.eclipse.core.runtime.CoreException: Error when saving the connection&lt;BR /&gt;at org.talend.repository.generic.ui.GenericConnWizard$1.run(GenericConnWizard.java:295)&lt;BR /&gt;at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)&lt;BR /&gt;at org.talend.repository.generic.ui.GenericConnWizard.createOrUpdateConnectionItem(GenericConnWizard.java:303)&lt;BR /&gt;at org.talend.repository.generic.ui.GenericConnWizard.performFinish(GenericConnWizard.java:258)&lt;BR /&gt;at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)&lt;BR /&gt;at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)&lt;BR /&gt;at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)&lt;BR /&gt;at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)&lt;BR /&gt;at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)&lt;BR /&gt;at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)&lt;BR /&gt;at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)&lt;BR /&gt;at org.eclipse.jface.window.Window.open(Window.java:808)&lt;BR /&gt;at org.talend.repository.generic.action.GenericAction.doRun(GenericAction.java:71)&lt;BR /&gt;at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:630)&lt;BR /&gt;at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)&lt;BR /&gt;at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)&lt;BR /&gt;at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3420)&lt;BR /&gt;at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2247)&lt;BR /&gt;at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:639)&lt;BR /&gt;at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)&lt;BR /&gt;at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)&lt;BR /&gt;at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)&lt;BR /&gt;at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)&lt;BR /&gt;at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)&lt;BR /&gt;at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)&lt;BR /&gt;at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)&lt;BR /&gt;at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)&lt;BR /&gt;at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)&lt;BR /&gt;at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)&lt;BR /&gt;at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)&lt;BR /&gt;at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)&lt;BR /&gt;at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)&lt;BR /&gt;at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)&lt;BR /&gt;at org.talend.rcp.intro.Application.start(Application.java:265)&lt;BR /&gt;at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)&lt;BR /&gt;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)&lt;BR /&gt;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)&lt;BR /&gt;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)&lt;BR /&gt;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)&lt;BR /&gt;at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)&lt;BR /&gt;at org.eclipse.equinox.launcher.Main.run(Main.java:1465)&lt;BR /&gt;at org.eclipse.equinox.launcher.Main.main(Main.java:1438)&lt;BR /&gt;Caused by: org.talend.daikon.exception.TalendRuntimeException: FAILED_INVOKE_METHOD:{class=org.talend.components.salesforce.SalesforceModuleListProperties, method=afterFormFinishMain}&lt;BR /&gt;at org.talend.daikon.properties.PropertiesDynamicMethodHelper.doInvoke(PropertiesDynamicMethodHelper.java:109)&lt;BR /&gt;at org.talend.daikon.properties.PropertiesDynamicMethodHelper.afterFormFinish(PropertiesDynamicMethodHelper.java:323)&lt;BR /&gt;at org.talend.daikon.properties.service.PropertiesServiceImpl.afterFormFinish(PropertiesServiceImpl.java:135)&lt;BR /&gt;at org.talend.components.api.service.internal.osgi.ComponentServiceOsgi.afterFormFinish(ComponentServiceOsgi.java:178)&lt;BR /&gt;at org.talend.repository.generic.ui.GenericConnWizard$1.run(GenericConnWizard.java:291)&lt;BR /&gt;... 52 more&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.talend.daikon.properties.PropertiesDynamicMethodHelper.doInvoke(PropertiesDynamicMethodHelper.java:105)&lt;BR /&gt;... 56 more&lt;BR /&gt;Caused by: java.lang.NumberFormatException: For input string: "NOW()- (NOW()-1)"&lt;BR /&gt;at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)&lt;BR /&gt;at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)&lt;BR /&gt;at java.lang.Double.parseDouble(Double.java:538)&lt;BR /&gt;at java.lang.Double.valueOf(Double.java:502)&lt;BR /&gt;at org.apache.avro.Schema.parse(Schema.java:1279)&lt;BR /&gt;at org.apache.avro.Schema$Parser.parse(Schema.java:1032)&lt;BR /&gt;at org.apache.avro.Schema$Parser.parse(Schema.java:1020)&lt;BR /&gt;at org.talend.designer.core.generic.utils.SchemaUtils.createSchema(SchemaUtils.java:226)&lt;BR /&gt;at org.talend.repository.generic.persistence.GenericRepository.storeProperties(GenericRepository.java:79)&lt;BR /&gt;at org.talend.repository.generic.persistence.GenericRepository.storeProperties(GenericRepository.java:1)&lt;BR /&gt;at org.talend.components.salesforce.SalesforceModuleListProperties.afterFormFinishMain(SalesforceModuleListProperties.java:119)&lt;BR /&gt;... 61 more&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;After reading through it, I think the problem is, that a numeric field in salesforce has set the defaultvalue to now()-(now()-1)). In Salesforce this just returns 1. But I think this is some salesforce "magic" because documentation states that now() returns a date (&lt;A href="https://help.salesforce.com/articleView?id=formula_using_date_datetime.htm&amp;amp;type=5" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.salesforce.com/articleView?id=formula_using_date_datetime.htm&amp;amp;type=5&lt;/A&gt;). On the other hand documentation states that substracting two dates from each others give back a numeric value of days between the dates:&amp;nbsp;&lt;A href="https://help.salesforce.com/articleView?id=formula_using_date_datetime.htm&amp;amp;type=5&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.salesforce.com/articleView?id=formula_using_date_datetime.htm&amp;amp;type=5&amp;nbsp;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Problem now is that this is a field from a managed app, so I am not able to change the default.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Does anyone have any suggestion how to solve the problem?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;Tobias&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-tSalesforceInput-problem-with-number-Format/m-p/2257434#M39526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Talend tSalesforceInput problem with number Format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-tSalesforceInput-problem-with-number-Format/m-p/2257435#M39527</link>
      <description>&lt;P&gt;Hi tott&lt;/P&gt; 
&lt;P&gt;Which version are you using? I found a similar topic,&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.talend.com/t5/Design-and-Development/Salesforce-Metadata-Error-when-saving-the-connection/m-p/89244" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Salesforce-Metadata-Error-when-saving-the-connection/m-p/89244&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;For the function expression, I think you need to open a &lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_self" rel="nofollow noopener noreferrer"&gt;jira issue&lt;/A&gt; to our R&amp;amp;D team, our developers will investigate how to solve it.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Shong&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 03:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-tSalesforceInput-problem-with-number-Format/m-p/2257435#M39527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-22T03:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Talend tSalesforceInput problem with number Format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-tSalesforceInput-problem-with-number-Format/m-p/2257436#M39528</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;using 7.0.1&lt;/P&gt; 
&lt;P&gt;We tried the same with older versions, too but without success.&lt;/P&gt; 
&lt;P&gt;The other case sounds similar, but I do not know, if it is exaclty the same problem.&lt;/P&gt; 
&lt;P&gt;I think I cannot open a ticket in your jira, at least I do not know credentials.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Tobias&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 14:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-tSalesforceInput-problem-with-number-Format/m-p/2257436#M39528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-22T14:27:46Z</dc:date>
    </item>
  </channel>
</rss>

