I see that this topic to bind the columns of the DataTable type output of an automation is not working under certain conditions.
The solution as described by @Arvind_Kumar1 in this post UiPath Apps binding datatable issue - missing column - #2 by Arvind_Kumar1
should work but, it does not under the following conditions:
- If I migrate a legacy App to VB Apps, and then add a completely new process after having run that process multiple times from Orchestrator (and assistant), the newly ported VB App does not recognize the fields no matter how many times the Process has been added and removed from the App
- Another factor that I’m not sure fully if it plays a role or not is that my Automation posts the DataTable as in Interim Results update to the App.
I have thus far tried several times to make the migrated App identify the columns of the DataTable output of the process, but to no avail.
I have since added the fields manually, but then if the process is refreshed those manual additions will go away which means that the App will lose binding to the data.
Could this be a bug specific to migrated Apps? At the moment it’s not practical for me to scratch build an entirely new VB App to check if that would fix the problem.
Thanks!
And this is something related and therefore posting it in this thread. I have confirmed this
by making deliberate changes to the process arguments.
Just as I migrated the App, I also migrated its related Automation project to Windows.
After the migration, this is what I noticed in the Main.xaml.json file:
Any argument added or renamed in the migrated solution does not have a Widget type:
And anything that was left untouched after the migration has a valid Widget type:
I’m hoping this is not going to be a problem with project migrations?
Thanks
Hello again,
I’ve confirmed that the App is able to automatically recognize the fields of the Data Table output of a Process if:
- I scratch build a new UiPath VB App and a new Windows Process
- Deploy the process and run it just once
- Going back to the App and adding the Process to it
Brand new Windows Process (run only once from orchestrator):
Brand new UiPath VB App (after adding the process)
For some weird reason, a string data type is set to DateTime? ?? 
I’m able to get the field listings without doing anything else.
If you can reproduce this on your end and confirm that this is the case then I feel this requires some serious attention because migrating legacy Apps could be hampered by this issue.
Manually adding Data table columns in the App is not a workaround for reasons stated in my earlier post above.
thanks