<?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: [resolved] unparseable date in mysql to salesforce in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222992#M16364</link>
    <description>Thanks for the suggestion. 
&lt;BR /&gt;I tried that and I got the following error in the tMap &amp;gt; Type mismatch: cannot convert from String to Date
&lt;BR /&gt;Both fields are date data types so I'm not sure why it's thinking its a String. Is the output of the function a String?
&lt;BR /&gt;The the thing I don't get also is that when I run the job, I get the original unParasable date error but it still writes to Salesforce. Not sure why that happens either. And like I said in my original post, I am able to write to a date data type field with other objects just fine. It's just this one on the Contact object on Salesforce I am having trouble with.
&lt;BR /&gt;I will also mention that the unParasable error occurs on the tSalesforceBulkExec component.</description>
    <pubDate>Thu, 03 Mar 2011 21:01:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-03-03T21:01:58Z</dc:date>
    <item>
      <title>[resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222987#M16359</link>
      <description>I am going from mysql to salesforce and I am trying to insert records that have a date value in one of the fields. In mysql, the format is "yyyy-mm-dd hh:mm:ss" and I know the format that salesforce accepts in a datetime data type is "yyyy-mm-ddThh:mm:ss.000Z".
&lt;BR /&gt;I am just doing a simple mapping in the tmap without any expressions. I get the following error when I run my job:
&lt;BR /&gt;
&lt;PRE&gt;Exception in component tSalesforceBulkExec_1&lt;BR /&gt;java.lang.RuntimeException: Unparseable date: "2010-10-06T16:53:27.000Z"&lt;BR /&gt;	at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:164)&lt;/PRE&gt;
&lt;BR /&gt;Thanks for the help in advance.</description>
      <pubDate>Sat, 16 Nov 2024 13:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222987#M16359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222988#M16360</link>
      <description>Hi
&lt;BR /&gt;Do you change the date pattern on tMap? please upload a screenshot of tMap.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 02 Mar 2011 08:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222988#M16360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-02T08:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222989#M16361</link>
      <description>I have attached my tmap.&lt;BR /&gt;I will also add that I am able to write successfully to other date data type fields on other objects in my project. Here I am writing to a custom field of type date/time(salesforce) on the Contact object. The other successful writes were on custom objects and custom fields. Don't know why I am getting this error only here. Hopefully this will help debug the issue.&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 03 Mar 2011 19:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222989#M16361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-03T19:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222990#M16362</link>
      <description>Oops. Image was too big. Here it is...</description>
      <pubDate>Thu, 03 Mar 2011 19:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222990#M16362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-03T19:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222991#M16363</link>
      <description>Because you have two different date-formats (left side: yyyy-mm-dd hh:mm:ss / right side: yyyy-MM-dd'T'HH:mm:ss'.000Z'), you have to format the date of the left side to the format of the right side "yyyy-MM-dd'T'HH:mm:ss'.000Z'". 
&lt;BR /&gt;Try to replace on the right side "salesforce_flattened_user.member_since" with "TalendDate.formatDate("yyyy-MM-dd'T'HH:mm:ss'.000Z'", salesforce_flattened_user.member_since)". 
&lt;BR /&gt;For different date related routines you can use the expression builder. In the expression builder are the routines and their usage described.</description>
      <pubDate>Thu, 03 Mar 2011 20:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222991#M16363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-03T20:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222992#M16364</link>
      <description>Thanks for the suggestion. 
&lt;BR /&gt;I tried that and I got the following error in the tMap &amp;gt; Type mismatch: cannot convert from String to Date
&lt;BR /&gt;Both fields are date data types so I'm not sure why it's thinking its a String. Is the output of the function a String?
&lt;BR /&gt;The the thing I don't get also is that when I run the job, I get the original unParasable date error but it still writes to Salesforce. Not sure why that happens either. And like I said in my original post, I am able to write to a date data type field with other objects just fine. It's just this one on the Contact object on Salesforce I am having trouble with.
&lt;BR /&gt;I will also mention that the unParasable error occurs on the tSalesforceBulkExec component.</description>
      <pubDate>Thu, 03 Mar 2011 21:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222992#M16364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-03T21:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222993#M16365</link>
      <description>Hello 
&lt;BR /&gt;The return result of the function is a string, however the data type is Date on schema, that's why you get cannot convert from String to Date. Don't use this method to convert a date to string. What's the date pattern defined in your contact object? As you said, the data are inserted into SalesForce even there is unParasable error occurs on the tSalesforceBulkExec, try to change the date pattern in right side to yyyy-mm-dd hh:mm:ss
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 04 Mar 2011 02:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222993#M16365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-04T02:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222994#M16366</link>
      <description>Hi &lt;BR /&gt;In Java I am fetching datetime value from mysql and want to insert it in salesforce database.But due to datetime format is different it's not getting inserted properly in salesforce.I can not use simpledateformat also for conversion. I need a help for this.I am sharing code part also.&lt;BR /&gt;ResultSet? tradesResultSet = statement.executeQuery("SELECT FROM mt4_trades limit 10"); // Fetch records from MYSQL &lt;BR /&gt;while (tradesResultSet.next()) {&lt;BR /&gt;java.sql.Timestamp mysqlTimestamp = tradesResultSet.getTimestamp("Open_Time?"); // Get MYSQL time java.util.Date dbSqlDateConverted = new java.util.Date(mysqlTimestamp.getTime()); // conver to JAVA date hm.put("Open_Time?", dbSqlDateConverted); // Put in map &lt;BR /&gt;java.util.Date d = (java.util.Date) hm.get("Open_Time?"); // get date&lt;BR /&gt;SObj.setField("Open_Time?c",d); // set in Salesforce field.&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks, Prasad.</description>
      <pubDate>Tue, 06 Sep 2011 07:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222994#M16366</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-09-06T07:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222995#M16367</link>
      <description>Hi,&lt;BR /&gt;I am using date format as "yyyy-MM-dd'T'HH:mm:ss" and i am still getting parsing error on selecting parallel execution.&lt;BR /&gt;Could anyone let me know the resolution.&lt;BR /&gt;Thanks,&lt;BR /&gt;Sanket</description>
      <pubDate>Mon, 09 Mar 2015 12:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222995#M16367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T12:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222996#M16368</link>
      <description>If you share your input string then we can suggest you 
&lt;A href="http://dwetl.com/2015/01/16/convert-string-to-date/" target="_blank" rel="nofollow noopener noreferrer"&gt;date Format to parse&lt;/A&gt;. but still you can see more formats and example on same link.&amp;nbsp;</description>
      <pubDate>Mon, 09 Mar 2015 12:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222996#M16368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T12:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222997#M16369</link>
      <description>Hi,&lt;BR /&gt;I am using TalendDate.getCurrentDate() mapped to a variable as input string and on the right side i am setting the format as "yyyy-MM-dd'T'HH:mm:ss" which fails with parsing error on selecting parallel execution.&lt;BR /&gt;But the same gets executed if parallel execution is not selected.&lt;BR /&gt;Thanks,&lt;BR /&gt;Sanket</description>
      <pubDate>Tue, 10 Mar 2015 03:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222997#M16369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-10T03:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222998#M16370</link>
      <description>Hi,&lt;BR /&gt;I also found out a case where the input is a date column from a table.&lt;BR /&gt;The values in the date column are not in sync..i.e few values are with timestamp and few values are without timestamp(just the date part) and hence it throws parsing error on selection of parallel execution.&lt;BR /&gt;On de selecting parallel execution the job executes without any error.&lt;BR /&gt;Any way by which such cases can be handled using parallel execution ?&lt;BR /&gt;Thanks,&lt;BR /&gt;Sanket</description>
      <pubDate>Tue, 10 Mar 2015 08:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222998#M16370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-10T08:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222999#M16371</link>
      <description>Hi Sanket
&lt;BR /&gt;This error is not caused by parallel execution, but the different date formats in the column, you need to check the length of the string which need to be parsed to a date, and use different date pattern to parse it.&amp;nbsp;
&lt;BR /&gt;BR
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 11 Mar 2015 12:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2222999#M16371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-11T12:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2223000#M16372</link>
      <description>Hi,
&lt;BR /&gt;Thanks for your reply.
&lt;BR /&gt;Yes, the issue was due to different date formats.
&lt;BR /&gt;I changed it to single common date format for all the date columns and hence it worked.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Sanket</description>
      <pubDate>Wed, 25 Mar 2015 06:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2223000#M16372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-25T06:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unparseable date in mysql to salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2223001#M16373</link>
      <description>great, thanks for your feedback.&amp;nbsp;
&lt;BR /&gt;BR
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 25 Mar 2015 07:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unparseable-date-in-mysql-to-salesforce/m-p/2223001#M16373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-25T07:37:13Z</dc:date>
    </item>
  </channel>
</rss>

