How to instantiate a Table in IntelliJ when building your own package

  • 28 September 2022
  • 4 replies

I am building a package which accept a Table as input. Package is working great now but took me a while to make it run properly mainly due to the fact that I could not figure out how to instantiate a Table within IntelliJ. SO had to build and install package in our control room, do some testing and go back to IntelliJ until successful. Not the best approach.

Is there an example or documentation on what would be needed to instantiate an AA Table within IntelliJ. I figured out that Table is also making use of a schema instance which appears to be the column definition including type.

Any help would be appreciated. Thanks

4 replies

Userlevel 4
Badge +7

Hi @Rock Morin​ ,


Could you give this a try?

I found it on the Automation Anywhere GitHub page.


TableValue tableValue= new TableValue(); //AA table variable

Table table = new Table(); //normal table


//Add items to column schema

List<Schema> schemas = new ArrayList<Schema>();

for (Iteratoriterator = arrayWithColumnNames.getValues().iterator(); iterator.hasNext();)


StringValueheader = (StringValue);

Schema schema = new Schema();







Kind Regards,

Ashwin A.K


Getting closer. I am getting an error instantiating the schema. The code compile but error is at runtime on this line:

Schema schema = new Schema();


I do have the following import:



The error I get is as follow:

Caused by: java.lang.ClassNotFoundException: com.automationanywhere.botcore.api.dto.AttributeType

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(

at java.base/java.lang.ClassLoader.loadClass(


This happens both in my test class and the bot action class


Getting same error as @Rock 9762 when trying to create a Schema object. Has anyone figured this one out?


Figured this one out. It appears you need to use newer AA360 SDK to create a Schema object, since the class was not provided in the earlier versions (i.e. 2.5.0). With 2.9.0 it works fine.