Skip to main content
Solved

Returning DataTable from DLL

  • February 27, 2025
  • 2 replies
  • 51 views

Forum|alt.badge.img+1

I am calling a DLL package written in C#, the return of this method is a DataTable. When i run the DLL configured output variable as table. it is throwing an exception. 

What is the best way to return a datatable.

 

Thanks,

Sarath.

Best answer by Marc Mueller

Hi ​@sarathbabuk,

Have you already checked this ?

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-run-dll.html

 

 

Cheers

Marc

2 replies

Marc Mueller
Most Valuable Pathfinder
Forum|alt.badge.img+17
  • Most Valuable Pathfinder
  • Answer
  • February 27, 2025

Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • February 27, 2025

yes, i checked it. DataTable will be returned in a string array. What i did is returned a dictionary with a json string. datatable converted to json.

Thanks,

Sarath.