Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

Invoke c# code. Error: Object doesn't contain definition of toString

$
0
0

@Slavich wrote:

Hi Guys,
I faced the issue while using invoke C# code.
I receive an Error:

while trying to invoke this code:
for (int i = 20; i < inputDt.Rows.Count; i++)
{
for (int j = 1; j < inputDt.Columns.Count; j++)
{
if (!String.IsNullOrEmpty(inputDt.Rows[i][j].toString()) && inputDt.Rows[i][j] != “0”)
{
System.Data.DataRow dr = null;
dr = outputDt.NewRow();
dr[0] = inputDt.Rows[0][j];
dr[1] = inputDt.Rows[1][j];
dr[2] = inputDt.Rows[i][0];
dr[5] = inputDt.Rows[i][j];

                    outputDt.Rows.Add(dr);
                }
            }
        }

The list of arguments is:

Any idea why it causes and how can be resolved?
Thanks

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>