Skip to main content
Question

Need help about inserting a row in a datatable?

  • December 11, 2025
  • 5 replies
  • 27 views

Forum|alt.badge.img+12

I have a datatable as 1*10, but i make the first row as header, then it becomes 0*10. I did this just to specify the column names of dataTable.

Also i need to add empty row in this datatable. So I created a record variable that has same column names

This is 0*10, 0 row, 10 columns, 0.indexed row will be header actually, i just made a screenshot of previous action before making it header.
tAttachmentComment variable:

this is the record variable which i make empty values:

rNoValues variable

When i try to insert row in datatable as here:

 

it throws error:

The schema of the row to be inserted is different from the table into which the row is to be inserted. Please check whether the schema is same. If the problem persists, please contact your System Administrator.

What should I do? The column names are same, and both has 10 columns. So i wasnt expecting an errpr

5 replies

Forum|alt.badge.img+12
  • Author
  • Pathfinder Advocate | Tier 6
  • December 11, 2025

even though columns are same, i still have that error


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • December 12, 2025

Hi ​@Semih 3318,

 

If the column count and names are the same, the error usually comes from data types or hidden schema differences. Automation Anywhere treats schema as a combination of:

  • Column names
  • Column order
  • Column data types

Even if names and count match, if one column is a string in the Data Table and a number in the Record, it will fail.

 

What you can try here is:

 

1. Check data types: In Data Table → Edit schema, confirm all 10 columns are the same type (e.g., String).

2. Match Record schema exactly: In the Record variable, click Set schema and ensure the same 10 columns with the same types and order.

3. Clear default row: Use Data Table → Clear content before inserting.

4. Insert row: Use Insert row action with the Record.

 

If you want a quick workaround, make all columns String in both Data Table and Record. This avoids type mismatch issues.


Forum|alt.badge.img+12
  • Author
  • Pathfinder Advocate | Tier 6
  • December 12, 2025

H, ​@Padmakumar 

ive already checked the data types, they are all same data type, and same string. I still couldnt find to get rid of the error


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • December 12, 2025

H, ​@Padmakumar 

ive already checked the data types, they are all same data type, and same string. I still couldnt find to get rid of the error

Try the following and see if it helps or not

  1. Data Table → Clear content
  2. Record → Set schema: fields 09 (String)
  3. Record → Update value: set values (or "") for each field
  4. Data Table → Insert row (last position, Row record = your Record)

Forum|alt.badge.img+12
  • Author
  • Pathfinder Advocate | Tier 6
  • December 12, 2025

@Padmakumar  same error.

Whats the problem with this, i didnt understand