<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Code Eater (Wael A. Kabli) : The Selected file was not found</title><link>http://blogs.msdn.com/wael/archive/tags/The+Selected+file+was+not+found/default.aspx</link><description>Tags: The Selected file was not found</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Attachments in InfoPath Form that is a Task Workflow</title><link>http://blogs.msdn.com/wael/archive/2007/12/26/attachments-in-infopath-form-that-is-a-task-workflow.aspx</link><pubDate>Wed, 26 Dec 2007 11:49:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6867949</guid><dc:creator>Wael A. Kabli</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/wael/comments/6867949.aspx</comments><wfw:commentRss>http://blogs.msdn.com/wael/commentrss.aspx?PostID=6867949</wfw:commentRss><wfw:comment>http://blogs.msdn.com/wael/rsscomments.aspx?PostID=6867949</wfw:comment><description>&lt;p&gt;Woho, here is a nice one :), one of the small things that gets you sometimes bang your head for long long time till you find out what's the problem...&lt;/p&gt; &lt;h2&gt;Symptoms:&lt;/h2&gt; &lt;p&gt;So if you are having a workflow that uses InfoPath forms for tasks and you have attachment controls in it, then you probably faced this error: "The Selected file was not found"!!&lt;/p&gt; &lt;h2&gt;Solution or Workaround:&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Locate the ASPX page that your workflow form opens up in the _layouts directory on your server.&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;e.g., %Program Files%Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\ &lt;p&gt;most probably you want WrkTaskIP.aspx --&amp;gt; this page is the one that loads your InfoPath form to be as a task form.&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;in this aspx page, locate the reference to MasterPageFile. This will look something like &lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;MasterPageFile="~/_layouts/application.master"&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;Go to the masterPage file you found&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;In this case go to the application.master in the folder "%Program Files%Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\"&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;Look for the Form Tag &lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;&amp;lt;form runat="server" onsubmit="return _spFormOnSubmitWrapper();"&amp;gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;Add the attribute enctype="multipart/form-data" &amp;nbsp;to this tag and save.&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;&amp;lt;form runat="server" onsubmit="return _spFormOnSubmitWrapper();" enctype="multipart/form-data"&amp;gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;iisreset and try your workflow with file attachment again.&lt;/li&gt;&lt;/ul&gt; &lt;h2&gt;Few things to Note:&lt;/h2&gt; &lt;p&gt;as you can see, this is a product issue and hopefully it might be fixed in the SP1. But don't get frustrated, that's why we are blogging so you can find such information.&lt;/p&gt; &lt;p&gt;Have fun,,, :)&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6867949" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/wael/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.msdn.com/wael/archive/tags/InfoPath/default.aspx">InfoPath</category><category domain="http://blogs.msdn.com/wael/archive/tags/workflow/default.aspx">workflow</category><category domain="http://blogs.msdn.com/wael/archive/tags/workarounds/default.aspx">workarounds</category><category domain="http://blogs.msdn.com/wael/archive/tags/sharepoint/default.aspx">sharepoint</category><category domain="http://blogs.msdn.com/wael/archive/tags/product+issue/default.aspx">product issue</category><category domain="http://blogs.msdn.com/wael/archive/tags/Task+form/default.aspx">Task form</category><category domain="http://blogs.msdn.com/wael/archive/tags/The+Selected+file+was+not+found/default.aspx">The Selected file was not found</category></item></channel></rss>