Does the Datatable Preserve the O’s at the Initial Stage, i.e after we read using Read Range Activity ? And only After Filtering Datatable does the 0 values at the beginning disappear ?
@Rahul_Singh_Kamboj , The Reason for this would be that the Data Type of the Columns of the Datatable when read using Read Range Activity would be an Object Type.
When Comparing Numerical values, it might not give you a Proper output due to it.
You can Either Convert the Column to an Integer, i.e create an Integer Column and Populate it with the values, then Perform Comparison
else
We can use the Linq Approach to Filter the values as it has more control over the data that we want to use.
@Rahul_Singh_Kamboj ,
Could you provide us the Expression that you were using to Filter the Values ? We may be able to modify it to get the Output as needed.
The filter we are applying is for different column but when a new sheet is being created by this linq query the data in column with 0 values get removed and what is left is values without 0
@Rahul_Singh_Kamboj , Before Moving Further, Can we confirm that the Datatable right after reading from Excel, will have the Zero’s still prepended to it ?
We can do this using Debug, Add a Break Point after Read Range Activity and Click on Debug.
In the Immediate Panel, Check the Datatable value.