<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: NaN When submitting form in Filename. Lookup from Sharepoint Library.</title><link>https://www.infopathdev.com:443/forums/thread/103123.aspx</link><pubDate>Mon, 06 Jul 2015 18:52:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103123</guid><dc:creator>GregHimself</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103123.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=103123</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It is ok, I fixed this problem. I added a rule that Changed the fields value to 001 if NaN was returned.&lt;/p&gt;</description></item><item><title>NaN When submitting form in Filename. Lookup from Sharepoint Library.</title><link>https://www.infopathdev.com:443/forums/thread/103120.aspx</link><pubDate>Mon, 06 Jul 2015 18:06:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103120</guid><dc:creator>GregHimself</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=103120</wfw:commentRss><description>&lt;p&gt;So I am having an issue with an auto file name and field&amp;nbsp;when submitting a form.&lt;/p&gt;&lt;p&gt;The form created is for a process called a Request for information. I want to auto generate the next number in sequence for the filename/RFI Number. This works as long as there is an initial form already created:&lt;/p&gt;&lt;p&gt;max(RFI_x0020_Number[Originator_x0020_Company = OriginatorCompany]) + 1&lt;/p&gt;&lt;p&gt;I am pulling the RFI number from a column in a form library on sharepoint (RFI_x0020_Number)&amp;nbsp;and filtering it based off the company that originated the request(Originator_x0020_Company). It pulls the next number in sequence using the max function and adds one. The issue is for the first form that is submitted by a contractor there is no data to pull the max&amp;nbsp;RFI number (because no RFI form exists yet from that company) and I get an NaN. Is there a way to default it to 1 on a NaN to start the numbering sequence automatically?&lt;/p&gt;&lt;p&gt;I have attached the form for reference, the Field is the RFINum field.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for any help you are able to provide!&lt;/p&gt;</description></item></channel></rss>