Skip to main content
vigneshkumarr0001
Known Participant
August 27, 2026
Question

Excel Tools Plugin (v2.8.2): Handling "Error executing SQL" due to unexpected trailing whitespace in CSV import

  • August 27, 2026
  • 3 replies
  • 37 views

Hi everyone,

I am currently using the Excel Tools Plugin (v2.8.2) and encountering unpredictable loading issues caused by the length of incoming excel cell values.

Our Setup & Scenario:

  • Data Volume: 140 columns and approximately 10,000 rows.
  • Database: Staging table columns are already configured with large text lengths.
  • Process Flow:
    1. Convert Excel to CSV using the "Excel to CSV" smart service (Processes successfully).
    2. Import CSV to Database using the "Import CSV to Database" smart service.

The Issue:
During step 2, the process fails with the error message: "Error executing SQL". Upon investigation, we found the root cause is hidden trailing whitespace. For example, some cells contain a short text value followed by up to 5,000 trailing spaces, causing the total string length to exceed the database column limits.

My Questions:

  1. Does the "Import CSV to Database" smart service have a built-in configuration to automatically trim trailing/leading whitespaces from cell values during processing?
  2. Are there alternative AppMarket smart services or best practices you recommend to clean this data before database insertion?
  3. If you have faced this specific plugin limitation, what approach did you take to resolve it efficiently at this data volume?

Appreciate any insights or workarounds the community can share!

3 replies

mikes0011
Brainy
August 27, 2026

I usually just build a custom parser in an Appian interface as an ad-hoc tool.  This allows you to read in pages of data at a time (at least while testing and scaling up), and do bespoke data cleansing tasks on a column-by-column basis as you see fit, without relying on the (sometimes unreliable) black-box mechanics of the fully-automatic plugin importer.

The Expression Guru
vigneshkumarr0001
Known Participant
September 7, 2026

Yes I thought the same but loading this much data in interface consume more memory and cleaning data via loop was hard right eg: 10k records with 140 columns from excel per user could affect memory breakout issue?

mikes0011
Brainy
September 8, 2026

that’s why i suggested the method in which you read and process pages of data instead of all at once.

The Expression Guru