<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.biztalkgurus.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>BizTalk 2006 R2</title><link>http://www.biztalkgurus.com/forums/13.aspx</link><description>Questions on Biztalk Server 2006 R2</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Debug Build: 40407.4157)</generator><item><title>Re: Pipeline error with Flat File Disassembler and Optional XSD attributes</title><link>http://www.biztalkgurus.com/forums/thread/24707.aspx</link><pubDate>Mon, 22 Jun 2009 14:09:28 GMT</pubDate><guid isPermaLink="false">c4dd2918-4541-4a95-8338-be99430f076e:24707</guid><dc:creator>Massimo Lisignoli</dc:creator><slash:comments>0</slash:comments><comments>http://www.biztalkgurus.com/forums/thread/24707.aspx</comments><wfw:commentRss>http://www.biztalkgurus.com/forums/commentrss.aspx?SectionID=13&amp;PostID=24707</wfw:commentRss><description>&lt;p&gt;I found a solution adding the Optional attribute, set the Use Requirement property to Optional, then at the schema level I set this properties:&lt;/p&gt;
&lt;p&gt;Allow Early Termination = yes&lt;/p&gt;
&lt;p&gt;Early Terminate Option Field = yes&lt;/p&gt;
&lt;p&gt;Parser Optimization = Complexity&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here the article where I found the solution: http://blog.solidsoft.com/blogs/russells_blog/archive/2006/06/15/39.aspx&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Pipeline error with Flat File Disassembler and Optional XSD attributes</title><link>http://www.biztalkgurus.com/forums/thread/24705.aspx</link><pubDate>Mon, 22 Jun 2009 09:05:55 GMT</pubDate><guid isPermaLink="false">c4dd2918-4541-4a95-8338-be99430f076e:24705</guid><dc:creator>Massimo Lisignoli</dc:creator><slash:comments>0</slash:comments><comments>http://www.biztalkgurus.com/forums/thread/24705.aspx</comments><wfw:commentRss>http://www.biztalkgurus.com/forums/commentrss.aspx?SectionID=13&amp;PostID=24705</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I have created an xsd shema with Flat File Schema Wizard, starting from a flat file.&lt;/p&gt;
&lt;p&gt;This flat files comes from a BackOffice styem and I have noticed a change in the flat file structure:&lt;/p&gt;
&lt;p&gt;from specs, there is a header line, some lines containing data and a trailer line. The header lenght is 23, but it is possible that a flalt file can be created with some other chars at the end of the header line, so the lenght is not 23, but could be more and I can&amp;#39;t know the size.&lt;/p&gt;
&lt;p&gt;So I added an attribute, called Optional with pos_lenght set to 50 and added the &amp;quot;use&amp;quot; attibute set to &amp;quot;Optional&amp;quot;.&lt;/p&gt;
&lt;p&gt;I send the flat file with the &amp;quot;alternative schema&amp;quot; but the pipeline gives me an error, despite the attribute is optional.&lt;/p&gt;
&lt;p&gt;Error before adding Optional attribute:&lt;/p&gt;
&lt;p&gt;Exception - There was a failure executing pipeline &amp;quot;pipeline_name&amp;quot;. Error details: &amp;quot;Unexpected data found while looking for:&lt;br /&gt;&amp;#39;\r\n&amp;#39;&lt;br /&gt;The current definition being parsed is Header. The stream offset where the error occured is 23. The line number where the error occured is 1. The column where the error occured is 23.&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error with Optional attribute:&lt;/p&gt;
&lt;p&gt;Exception - There was a failure executing pipeline &amp;quot;pipeline_name&amp;quot;. Error details: &amp;quot;Unexpected data found while looking for:&lt;br /&gt;&amp;#39;\r\n&amp;#39;&lt;br /&gt;The current definition being parsed is Header. The stream offset where the error occured is 73. The line number where the error occured is 2. The column where the error occured is 42.&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Someone have an idea in order to support this scenario?&lt;/p&gt;
&lt;p&gt;Thanks in advice.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Massimo&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>