<?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: Flat File Validation at a Structure Level in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Flat-File-Validation-at-a-Structure-Level/m-p/2351271#M117950</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What does your expected output look like? The hierarchy is degenerate and can be represented by a single flat file.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 08:00:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-01T08:00:09Z</dc:date>
    <item>
      <title>Flat File Validation at a Structure Level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flat-File-Validation-at-a-Structure-Level/m-p/2351270#M117949</link>
      <description>&lt;P&gt;Is it possible to perform validation on a flat file from a structure level, and if so, how do you go about doing it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have tried reading in the file using a tFileInputPositional and then using a tSchemaComplianceCheck component to validate the columns but when it comes time to use the data mapper, the tHMap component expects a flow with a single column for incoming data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like some elements in the structure to be mandatory.&amp;nbsp; If there is no value for that element (i.e. an empty space for the length of the element), I want to throw an exception.&lt;/P&gt; 
&lt;P&gt;See the example below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="No_DataB.PNG" style="width: 308px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M58X.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138168iDBBA089BA205BB92/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M58X.png" alt="0683p000009M58X.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;DataB does not contain a value but is mandatory element.&amp;nbsp; It should therefore fail.&amp;nbsp; I understand that regardless of whether DataB has a value or not, Talend will see a value for that element ('dataBBB' if there is a value or 7 spaces if there is not a value).&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have tried making use of the several functions in the Validate tab on the structure but I am unable to get the desired result.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your assistance.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 14:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flat-File-Validation-at-a-Structure-Level/m-p/2351270#M117949</guid>
      <dc:creator>steynie8</dc:creator>
      <dc:date>2019-06-04T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Flat File Validation at a Structure Level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Flat-File-Validation-at-a-Structure-Level/m-p/2351271#M117950</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What does your expected output look like? The hierarchy is degenerate and can be represented by a single flat file.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 08:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Flat-File-Validation-at-a-Structure-Level/m-p/2351271#M117950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-01T08:00:09Z</dc:date>
    </item>
  </channel>
</rss>

