<?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: Wrong data types when importing xml structure from xsd files - Date imported as Object in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365494#M129094</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Usually, the defined type in xsd should be parsed correctly with appropriate type when generate schema.&lt;/P&gt;&lt;P&gt;Have you tried to use an XPath (tXMLMap) to test to see if this issue still repro? &lt;/P&gt;&lt;P&gt;Could you please clarify in which Talend version/edition you are?&lt;/P&gt;&lt;P&gt;We met this issue before and it was fixed in &lt;/P&gt;&lt;P&gt;&lt;A href="https://jira.talendforge.org/browse/TDI-26941" alt="https://jira.talendforge.org/browse/TDI-26941" target="_blank"&gt;https://jira.talendforge.org/browse/TDI-26941&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2021 02:59:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-10T02:59:04Z</dc:date>
    <item>
      <title>Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365490#M129090</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I import XML structure from XSD files.&lt;/P&gt;&lt;P&gt;The problem is that datetime elements from XSD's are imported as data type Object. Why?&lt;/P&gt;&lt;P&gt;I have to import many different XML structures into my metadata, so I would like to import them without need for manual editing of the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vlatko&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365490#M129090</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2024-11-15T23:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365491#M129091</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are supposing that you have already referred to this online documentation about: &lt;A href="https://help.talend.com/r/en-US/7.3/studio-user-guide-open-studio-for-esb/uploading-xsd-file" alt="https://help.talend.com/r/en-US/7.3/studio-user-guide-open-studio-for-esb/uploading-xsd-file" target="_blank"&gt;TalendHelpCenter: Uploading an XSD file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is your XSD input file valid?&lt;/P&gt;&lt;P&gt;Could you please give us some sample content of structure and element data types of your XSD input?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 08:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365491#M129091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-09T08:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365492#M129092</link>
      <description>&lt;P&gt;Hello and thanks for your answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have read the documentation for uploading an XSD file (by the way, I have not noticed any difference in the process compared to import of xml structures from XML-files).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some date elements which are dateTime, but imported as Object in Talend:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;				&amp;lt;xs:element name="TidspunktSubmit"&amp;gt;&lt;/P&gt;&lt;P&gt;					&amp;lt;xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;						&amp;lt;xs:union memberTypes="xs:dateTime"&amp;gt;&lt;/P&gt;&lt;P&gt;							&amp;lt;xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;								&amp;lt;xs:restriction base="xs:string"&amp;gt;&lt;/P&gt;&lt;P&gt;									&amp;lt;xs:pattern value=""/&amp;gt;&lt;/P&gt;&lt;P&gt;								&amp;lt;/xs:restriction&amp;gt;&lt;/P&gt;&lt;P&gt;							&amp;lt;/xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;						&amp;lt;/xs:union&amp;gt;&lt;/P&gt;&lt;P&gt;					&amp;lt;/xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;				&amp;lt;/xs:element&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;							&amp;lt;xs:element name="MeldeDato"&amp;gt;&lt;/P&gt;&lt;P&gt;								&amp;lt;xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;									&amp;lt;xs:union memberTypes="xs:date"&amp;gt;&lt;/P&gt;&lt;P&gt;										&amp;lt;xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;											&amp;lt;xs:restriction base="xs:string"&amp;gt;&lt;/P&gt;&lt;P&gt;												&amp;lt;xs:pattern value=""/&amp;gt;&lt;/P&gt;&lt;P&gt;											&amp;lt;/xs:restriction&amp;gt;&lt;/P&gt;&lt;P&gt;										&amp;lt;/xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;									&amp;lt;/xs:union&amp;gt;&lt;/P&gt;&lt;P&gt;								&amp;lt;/xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;							&amp;lt;/xs:element&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;				&amp;lt;xs:element name="DatoMetastaser"&amp;gt;&lt;/P&gt;&lt;P&gt;					&amp;lt;xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;						&amp;lt;xs:union memberTypes="xs:date"&amp;gt;&lt;/P&gt;&lt;P&gt;							&amp;lt;xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;								&amp;lt;xs:restriction base="xs:string"&amp;gt;&lt;/P&gt;&lt;P&gt;									&amp;lt;xs:pattern value=""/&amp;gt;&lt;/P&gt;&lt;P&gt;								&amp;lt;/xs:restriction&amp;gt;&lt;/P&gt;&lt;P&gt;							&amp;lt;/xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;						&amp;lt;/xs:union&amp;gt;&lt;/P&gt;&lt;P&gt;					&amp;lt;/xs:simpleType&amp;gt;&lt;/P&gt;&lt;P&gt;				&amp;lt;/xs:element&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 10:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365492#M129092</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2021-09-09T10:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365493#M129093</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IdS3XAAV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140674i23EB57452F4937E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IdS3XAAV.jpg" alt="0695b00000IdS3XAAV.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 10:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365493#M129093</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2021-09-09T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365494#M129094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Usually, the defined type in xsd should be parsed correctly with appropriate type when generate schema.&lt;/P&gt;&lt;P&gt;Have you tried to use an XPath (tXMLMap) to test to see if this issue still repro? &lt;/P&gt;&lt;P&gt;Could you please clarify in which Talend version/edition you are?&lt;/P&gt;&lt;P&gt;We met this issue before and it was fixed in &lt;/P&gt;&lt;P&gt;&lt;A href="https://jira.talendforge.org/browse/TDI-26941" alt="https://jira.talendforge.org/browse/TDI-26941" target="_blank"&gt;https://jira.talendforge.org/browse/TDI-26941&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 02:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365494#M129094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-10T02:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365495#M129095</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;It's the newest version:&lt;/P&gt;&lt;P&gt;Version: 7.3.1&lt;/P&gt;&lt;P&gt;Build id: 20200219_1130&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both Open Studio and licensed version of Talend Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Jira case you refer to does not seem to be directly related to this problem. It's about the MDM tool, and it's not Object, but String...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how do you think I could use tXMLMap to test?&lt;/P&gt;&lt;P&gt;In my case I have not used tXMLMap. I use tExtractXMLField in order to flatten XML messages.&lt;/P&gt;&lt;P&gt;Anyway, the problem shows already after importing of XSD files into metadata. Metadata shows Object all the places where Date is expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vlatko&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 07:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365495#M129095</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2021-09-10T07:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365496#M129096</link>
      <description>&lt;P&gt;Hello,  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could that be that your XSD element definition is a &amp;lt;xs:union  (&lt;A href="https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ms256202(v=vs.100)" alt="https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ms256202(v=vs.100)" target="_blank"&gt;link&lt;/A&gt;) and not  a simple element like &amp;lt;xs:element&amp;nbsp;name="startdate"&amp;nbsp;type="xs:dateTime"/&amp;gt; (&lt;A href="https://www.w3schools.com/XML/schema_dtypes_date.asp" alt="https://www.w3schools.com/XML/schema_dtypes_date.asp" target="_blank"&gt;link&lt;/A&gt;)? &lt;/P&gt;&lt;P&gt;For union element definitions if Talend map them to and Object I think is ok. You can treat it&amp;nbsp;as an object and parse it to date format in following step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 20:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365496#M129096</guid>
      <dc:creator>tornilleiro</dc:creator>
      <dc:date>2021-09-10T20:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365497#M129097</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;That is really good answer, have you thought of entering our competition?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/blog/aGn5b000000CaZw/getting-smart-about-talend-tip-of-the-day" alt="https://community.talend.com/s/blog/aGn5b000000CaZw/getting-smart-about-talend-tip-of-the-day" target="_blank"&gt;https://community.talend.com/s/blog/aGn5b000000CaZw/getting-smart-about-talend-tip-of-the-day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 03:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365497#M129097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-13T03:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong data types when importing xml structure from xsd files - Date imported as Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365498#M129098</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your answer tornilleiro!&lt;/P&gt;&lt;P&gt;Generally I would agree on your suggestion "For union element definitions if Talend map them to and Object I think is ok".&lt;/P&gt;&lt;P&gt;BUT, in this case it's only union with empty string. So I would definitely expect Talend to understand that datetime elements could be empty also.&lt;/P&gt;&lt;P&gt;That's why I did not try to change the XSD files and check this.  And I don't even will try it, because it would not resolve my problem. In my case, we are talking about very many XSD files, delivered by another big department, it takes weeks for them to produce one. So, it's not comparable amount of work - i.e. it's still much easier for me to edit the xml metadata after importing and change Object to Date...&lt;/P&gt;&lt;P&gt;But of course, it would be nice for me if Talend fixed it itself. As I said to begin with, I would like to import them without need for manual editing of the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vlatko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 06:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Wrong-data-types-when-importing-xml-structure-from-xsd-files/m-p/2365498#M129098</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2021-09-13T06:49:37Z</dc:date>
    </item>
  </channel>
</rss>

