<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Unable to convert supplied value to a Number : Unable to cast value '' to a number data item in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66947#M19552</link>
    <description>&lt;P&gt;Recently - we were into similar issue and got stuck in text and number , were dealing with thousands of records and using oledb,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;finally written a small code for that column and calling that if oledb failed for data type mismatch.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Neeraj Kumar&lt;BR /&gt;Technical Architect&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 20 Feb 2023 15:52:00 GMT</pubDate>
    <dc:creator>Neel1</dc:creator>
    <dc:date>2023-02-20T15:52:00Z</dc:date>
    <item>
      <title>Unable to convert supplied value to a Number : Unable to cast value '' to a number data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66941#M19546</link>
      <description>&lt;P&gt;Hey hi Folks, I'm dealing with excel where i'm facing an error &lt;SPAN style="background-color: rgb(224, 62, 45);"&gt;&lt;SPAN style="text-decoration: underline; background-color: rgb(45, 194, 107);"&gt;&lt;STRONG&gt;Unable to convert supplied value to a Number : Unable to cast value '' to a number data item&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: rgb(255, 255, 255);"&gt;I've to do some calculations using excel data. That's why i'm using data casting with the help of&amp;nbsp;&lt;SPAN style="background-color: rgb(185, 106, 217);"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;ToNumber().&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; But i'm facing above error. Although the value i'm tring to cast is numeric value; But due to excel format i get thoes values as a text. So, &lt;SPAN style="background-color: rgb(241, 196, 15);"&gt;What is the best way to convert text into number?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: rgb(255, 255, 255);"&gt;I tried to save this result into Number data item and aslo in Text data item but still facing same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SANMATI NAVALE&lt;BR /&gt;RPA DEVELOPER&lt;BR /&gt;Pune&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Feb 2023 12:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66941#M19546</guid>
      <dc:creator>SANMATINAVALE</dc:creator>
      <dc:date>2023-02-18T12:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Unable to convert supplied value to a Number : Unable to cast value '' to a number data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66942#M19547</link>
      <description>&lt;P&gt;Hey.. I overcame on this issue.&lt;/P&gt;
&lt;P&gt;The reson behind it, There are null rows into coll/data files.&lt;/P&gt;
&lt;P&gt;Using &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Append Field(Text) action&lt;/STRONG&gt;&lt;/SPAN&gt; (Because data field type was Text)from &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;Utility - Collection Manipulation&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;added "0" value into every row of desired column.&lt;/P&gt;
&lt;P&gt;Afterwards using &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;ToNumber()&lt;/STRONG&gt;&lt;/SPAN&gt; Data casting happend smoothly..&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SANMATI NAVALE&lt;BR /&gt;RPA DEVELOPER&lt;BR /&gt;Pune&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 16:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66942#M19547</guid>
      <dc:creator>SANMATINAVALE</dc:creator>
      <dc:date>2023-02-18T16:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: Unable to convert supplied value to a Number : Unable to cast value '' to a number data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66943#M19548</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2068"&gt;@SANMATINAVALE&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;In order to cast the values to number, did you try casting directly into the excel using a code stage?&lt;/P&gt;
&lt;P&gt;The reason is if you have 1000's of rows then getting the data into collection and then performing "ToNumber()" casting will take a lot of time and might not be the best way to perform the automation.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manpreet Kaur&lt;BR /&gt;Manager&lt;BR /&gt;Deloitte&lt;BR /&gt;*If you find this post helpful mark it as Best Answer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Feb 2023 09:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66943#M19548</guid>
      <dc:creator>ManpreetKaur1</dc:creator>
      <dc:date>2023-02-19T09:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Unable to convert supplied value to a Number : Unable to cast value '' to a number data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66944#M19549</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2068"&gt;@SANMATINAVALE&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If columns are specified, it is best to select the data type as a number when retrieving collection&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have a nice day...&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Özenç Gezgin&lt;BR /&gt;Supervisor&lt;BR /&gt;Türkiye İş Bankası A.Ş.&lt;BR /&gt;Europe/Istanbul&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Feb 2023 13:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66944#M19549</guid>
      <dc:creator>ÖzençGezgin</dc:creator>
      <dc:date>2023-02-19T13:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: Unable to convert supplied value to a Number : Unable to cast value '' to a number data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66945#M19550</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="gmail-user-content-mention" target="_blank"&gt;@Manpreet Kaur,&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;This is just one of the small modules of the project and in SOP documents there are specifically mentioned that calculation data rows should be less than 24 row's.&lt;/P&gt;
&lt;P&gt;Because we generated this data from the other automation and at the end we do some calculations based on this excel generated data.&lt;/P&gt;
&lt;P&gt;That's a reason why we used Conversion functions for casting purposes.&lt;/P&gt;
&lt;P&gt;But, Yes you are right, if there is a case where we've to deal with huge data it's better to go with the code stage for casting.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SANMATI NAVALE&lt;BR /&gt;RPA DEVELOPER&lt;BR /&gt;Pune&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Feb 2023 15:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66945#M19550</guid>
      <dc:creator>SANMATINAVALE</dc:creator>
      <dc:date>2023-02-19T15:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Unable to convert supplied value to a Number : Unable to cast value '' to a number data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66946#M19551</link>
      <description>&lt;P&gt;Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="133f9088-0e50-4526-b106-1485d1996732" data-tag-text="@SANMATI NAVALE" href="https://community.blueprism.com/network/profile?UserKey=133f9088-0e50-4526-b106-1485d1996732" data-itemmentionkey="bb60316f-f332-4ae3-8ce8-7d37557a8016"&gt;@SANMATI NAVALE&lt;/A&gt; ,&lt;/P&gt;
&lt;P&gt;Since you already knew that it will be less than 24 rows, then it's okay to use collection to perform the casting as there won't be any performance issues.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manpreet Kaur&lt;BR /&gt;Manager&lt;BR /&gt;Deloitte&lt;BR /&gt;*If you find this post helpful mark it as Best Answer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Feb 2023 19:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66946#M19551</guid>
      <dc:creator>ManpreetKaur1</dc:creator>
      <dc:date>2023-02-19T19:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Unable to convert supplied value to a Number : Unable to cast value '' to a number data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66947#M19552</link>
      <description>&lt;P&gt;Recently - we were into similar issue and got stuck in text and number , were dealing with thousands of records and using oledb,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;finally written a small code for that column and calling that if oledb failed for data type mismatch.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Neeraj Kumar&lt;BR /&gt;Technical Architect&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Feb 2023 15:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Unable-to-convert-supplied-value-to-a-Number-Unable-to-cast/m-p/66947#M19552</guid>
      <dc:creator>Neel1</dc:creator>
      <dc:date>2023-02-20T15:52:00Z</dc:date>
    </item>
  </channel>
</rss>

