<?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 Convert string to Date , throws unparseable error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258275#M40123</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement to convert a string of type "20190101" getting in a file which has to be converted to date of format "2019-01-01" (YYYY-MM-DD). I tried using&amp;nbsp; TalendDate. Parsedate("YYYY-MM-DD","row1.col1") ,&amp;nbsp;TalendDate.ParsedateLocale("YYYY-MM-DD","row1.col1","EN") but nothing works for me, getting compilation error during test and got unparseable date error during execution. I have attached the screenshot for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody help me on this, Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:06:01 GMT</pubDate>
    <dc:creator>ManojKD</dc:creator>
    <dc:date>2024-11-16T04:06:01Z</dc:date>
    <item>
      <title>Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258275#M40123</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement to convert a string of type "20190101" getting in a file which has to be converted to date of format "2019-01-01" (YYYY-MM-DD). I tried using&amp;nbsp; TalendDate. Parsedate("YYYY-MM-DD","row1.col1") ,&amp;nbsp;TalendDate.ParsedateLocale("YYYY-MM-DD","row1.col1","EN") but nothing works for me, getting compilation error during test and got unparseable date error during execution. I have attached the screenshot for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody help me on this, Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258275#M40123</guid>
      <dc:creator>ManojKD</dc:creator>
      <dc:date>2024-11-16T04:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258276#M40124</link>
      <description>Hi 
&lt;BR /&gt;If the input data is "20190101", try this to convert the string data to a Date 
&lt;BR /&gt;TalendDate.parseDate("yyyyMMdd", row.col1) 
&lt;BR /&gt;If you want to change it to a string with another format, use this expression: 
&lt;BR /&gt;TalendDate.formatDate("yyyy-MM-dd", TalendDate.parseDate("yyyyMMdd", row.col1)) 
&lt;BR /&gt; 
&lt;BR /&gt;Hope it helps! 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 18 Nov 2019 07:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258276#M40124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-18T07:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258277#M40125</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQYIAA4"&gt;@ManojKD&lt;/A&gt;&amp;nbsp;, You can try the below way.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8b2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156651i9369F13DDF17E750/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8b2.png" alt="0683p000009M8b2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8b7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140983iC44DFCBC04F40D53/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8b7.png" alt="0683p000009M8b7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 07:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258277#M40125</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-11-18T07:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258278#M40126</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your quick support, I have tried with your methodology, but still getting error message as "cannot convert string to date".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Talend error.PNG" style="width: 805px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8VZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136832iA8366F018C73982C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8VZ.png" alt="0683p000009M8VZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Is&amp;nbsp;this related&amp;nbsp;to JVM compatibility? If yes please help me to resolve this.&amp;nbsp;I have mentioned the log details below, .&lt;/P&gt; 
&lt;P&gt;org.talend.designer.runprocess.ProcessorException: Job compile errors&lt;BR /&gt;At least job "AD_BK" has a compile errors, please fix and export again.&lt;BR /&gt;Error Line: 1148&lt;BR /&gt;Detail Message: Type mismatch: cannot convert from String to Date&lt;BR /&gt;There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:326)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:380)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:292)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:634)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:523)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1413)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.RunProcessContext$1.run(RunProcessContext.java:576)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:527)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:284)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1190)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:531)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1450)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:691)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.runprocess.ui.actions.RunProcessAction.run(RunProcessAction.java:58)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.designer.core.debug.JobLaunchConfigurationDelegate$1.run(JobLaunchConfigurationDelegate.java:84)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.talend.rcp.intro.Application.start(Application.java:255)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at java.lang.reflect.Method.invoke(Unknown Source)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;at org.eclipse.equinox.launcher.Main.run(Main.java:1465)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 08:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258278#M40126</guid>
      <dc:creator>ManojKD</dc:creator>
      <dc:date>2019-11-18T08:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258279#M40127</link>
      <description>&lt;P&gt;Hi Manohar,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you so much&amp;nbsp;, Its working!!. I tried converting an invalid date &amp;nbsp;"20200231"&amp;nbsp; expectation is to get an error message as invalid date, but Talend converts into&amp;nbsp;"2020-02-31". &amp;nbsp;Can you please look into this and guide me with your inputs.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result.PNG" style="width: 739px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7kg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130521i8445248B705D600A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7kg.png" alt="0683p000009M7kg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 08:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258279#M40127</guid>
      <dc:creator>ManojKD</dc:creator>
      <dc:date>2019-11-18T08:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258280#M40128</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQYIAA4"&gt;@ManojKD&lt;/A&gt;&amp;nbsp;, are you sure about your data ? are you getting data like&amp;nbsp;&lt;SPAN&gt;20190101 ,if yes below expression&amp;nbsp;and my other solution should work.&amp;nbsp; if you still see an error then should be null or space or some other format may be you have in your data, you need to check the data.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;you need to add below way for &lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&amp;nbsp;solution.&lt;/P&gt; 
&lt;P&gt;TalendDate.parseDate("yyyy-MM-DD",TalendDate.formatDate("yyyy-MM-DD",TalendDate.parseDate("yyyyMMdd",row6.sting_date)))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 08:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258280#M40128</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-11-18T08:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258281#M40129</link>
      <description>Hi Manohar, 
&lt;BR /&gt; 
&lt;BR /&gt;Your previous solution worked for me after making a small change in the target schema , I have modified the date format from "YYYY-MM-DD" to "yyyy-mm-dd".</description>
      <pubDate>Mon, 18 Nov 2019 09:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258281#M40129</guid>
      <dc:creator>ManojKD</dc:creator>
      <dc:date>2019-11-18T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to Date , throws unparseable error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258282#M40130</link>
      <description>&lt;P&gt;great&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQYIAA4"&gt;@ManojKD&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 09:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-string-to-Date-throws-unparseable-error/m-p/2258282#M40130</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-11-18T09:35:24Z</dc:date>
    </item>
  </channel>
</rss>

