<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118325.aspx</link><pubDate>Fri, 09 Feb 2018 15:41:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118325</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118325</wfw:commentRss><description>Wow - I&amp;#39;m at a loss. You&amp;#39;ve tried this on more than one machine, same results on all? On mine, with my test form, I don&amp;#39;t have the issue at all. Attaching a screenshot w/ version numbers just in case it is helpful.</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118324.aspx</link><pubDate>Fri, 09 Feb 2018 01:09:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118324</guid><dc:creator>mrblah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118324</wfw:commentRss><description>win 10 64bit, with 32bit office/infopath</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118323.aspx</link><pubDate>Fri, 09 Feb 2018 00:50:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118323</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118323</wfw:commentRss><description>Oh, I see - it doesn&amp;#39;t matter what the XSN is, you have the same issue. Silly question, what version of InfoPath / Office are you using? I&amp;#39;ve got 32 bit on my current machine, but my old laptop has 64 bit.... are you using 64?</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118322.aspx</link><pubDate>Thu, 08 Feb 2018 23:24:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118322</guid><dc:creator>mrblah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118322.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118322</wfw:commentRss><description>I get the error launching the infopath com object,  not on the open command</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118321.aspx</link><pubDate>Thu, 08 Feb 2018 22:06:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118321</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118321.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118321</wfw:commentRss><description>Where is the XSN the XMLs used published to?</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118318.aspx</link><pubDate>Thu, 08 Feb 2018 19:15:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118318</guid><dc:creator>mrblah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118318.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118318</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I can manually open forms fine,&amp;nbsp; the script has worked for me for years, this is the first time I&amp;#39;ve tried to run it on windows 10,&amp;nbsp; I&amp;#39;m in popup hell, ohh and they popunder too just to make it more fun.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I do not click OK within 20-30 seconds the code continues and the form it was on will not process at all it&amp;#39;ll move on to the next one and repeat the cycle &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118317.aspx</link><pubDate>Thu, 08 Feb 2018 18:42:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118317</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118317</wfw:commentRss><description>So - just tried this with a simple form I created (it had one field). I opened the form, filled it out, saved the XML. I ran the script, changing it to the folder I&amp;#39;d saved the XML in - no issue at all. If you just manually open one of the XML in c:\temp\xml, does it open w/out issue?</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118316.aspx</link><pubDate>Thu, 08 Feb 2018 16:07:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118316</guid><dc:creator>mrblah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118316</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This one does an open &amp;amp; save, I use it to handle form updates with on load rules that run once.&amp;nbsp; Worked fine in windows 7, in 10 I get the popup error.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Param($Path = &amp;quot;c:\temp\xml\&amp;quot;,[switch]$verbose)&lt;br /&gt;&lt;br /&gt;Write-Host&lt;br /&gt;&lt;br /&gt;function Invoke-FormPrint&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Param($InfoForm)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $shortname = $InfoForm.name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Verbose &amp;quot;&amp;nbsp;&amp;nbsp; – FormPrint: Creating COM Object&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $infopath = New-Object -com InfoPath.Application -verbose:$false&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Verbose &amp;quot;&amp;nbsp;&amp;nbsp; – FormPrint: Calling Open(`$InfoForm.fullname,10)&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $infopath.XDocuments.Open($InfoForm.fullname,10) | out-null&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-verbose &amp;quot;&amp;nbsp;&amp;nbsp; – FormPrint: Calling PrintOut()&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $infopath.XDocuments[0].save()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-verbose &amp;quot;&amp;nbsp;&amp;nbsp; – FormPrint: Calling Quit()&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $infopath.quit()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!$?)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Error printing Form: $shortname&amp;quot; -fore RED&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Successfully printed Form: $shortname&amp;quot; -fore Green&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$erroractionpreference = &amp;quot;silentlycontinue&amp;quot;&lt;br /&gt;&lt;br /&gt;if($verbose){$verbosepreference=&amp;quot;continue&amp;quot;;$erroractionpreference=&amp;quot;continue&amp;quot;}&lt;br /&gt;&lt;br /&gt;Write-Verbose &amp;quot; + Processing all Forms from: $path&amp;quot;&lt;br /&gt;$Forms = dir $path &amp;quot;*.xml&amp;quot;&lt;br /&gt;&lt;br /&gt;Write-Verbose &amp;quot;&amp;nbsp; + $($Forms.count) Forms found&amp;quot;&lt;br /&gt;Write-host &amp;quot; + Processing all $($Forms.count) Forms located at: $path&amp;quot; -fore White&lt;br /&gt;&lt;br /&gt;foreach($Form in $Forms)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;&amp;nbsp; + saving Form: $($Form.Name)&amp;quot; -fore White&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoke-FormPrint $Form&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118313.aspx</link><pubDate>Thu, 08 Feb 2018 15:48:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118313</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118313</wfw:commentRss><description>Can you provide more of your script? I&amp;#39;d be happy to see if the issue repros on my Windows 10 machine &amp;amp; see if I can help you troubleshoot it. :)</description></item><item><title>Powershell com object, infopath.application error "The index is out of bounds."</title><link>https://www.infopathdev.com:443/forums/thread/118303.aspx</link><pubDate>Wed, 07 Feb 2018 19:35:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118303</guid><dc:creator>mrblah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118303</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ve been using powershell to dump our infopath forms to PDF for years.&amp;nbsp;&amp;nbsp; Just updated to windows 10 and now our powershell script is acting up.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m using this command to setup the com object, it&amp;#39;s been working for years.&amp;nbsp;&amp;nbsp; Pasting this into powershell generates the below error on all our machines.&lt;/p&gt;&lt;p&gt;&amp;nbsp;$infopath = New-Object -com InfoPath.Application -verbose:$false &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The popup says &amp;quot;the index is out of bounds. &amp;nbsp; Invalid index.&amp;quot; &amp;nbsp; Clicking ok the script continues fine and dumps the views to pdf like always,&amp;nbsp; but clicking ok 5,000 times, with a 10 second pause per form is getting old quick.. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Anyone have any idea?&amp;nbsp;&amp;nbsp; I&amp;#39;ve not found anything on this error and infopath searching around.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>