<?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: Getting NaN on number field</title><link>https://www.infopathdev.com:443/forums/thread/120149.aspx</link><pubDate>Fri, 07 Dec 2018 15:52:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120149</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120149</wfw:commentRss><description>So - I see you found a work around, that&amp;#39;s great. NaN stands for not a number.... Here&amp;#39;s a blog post that may be helpful in the future: http://www.braintrove.com/id/71</description></item><item><title>Getting NaN on number field</title><link>https://www.infopathdev.com:443/forums/thread/120072.aspx</link><pubDate>Thu, 15 Nov 2018 19:25:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120072</guid><dc:creator>benefishall</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120072</wfw:commentRss><description>Hello,

I&amp;#39;m using InfoPath Designer 2013 and calculating a couple of fields to reflect a negative percentage and getting the dreaded NaN upon previewing and uploading to SharePoint.
Using the formula ((field21 - field20) / (field20) * 100), all seems to work exactly how I need it to but when yo go to Submit I get the below error:

&amp;quot;The form cannot be submitted.
One or more fields have invalid values and cannot be submitted to the list.
Invalid number value.

A number field contains invalid data. Please check the value and try again.&amp;quot;

Any help would be greatly appreciated.

Thanks
John

~Update~
I was able to remedy my situation by creating a Rule on each field with Condition of &amp;quot;if Field X contains &amp;quot;NaN&amp;quot; then Set a fields value of blank&amp;quot;. The lousy part is that I had to do that to 50 fields. Hopefully this doesn&amp;#39;t cause issues in the future going forward.</description></item></channel></rss>