I’m implementing an automation project where UiPath inserts claims data into an SQLite database (claims.db) using the Devart ODBC SQLite driver. The database tables were successfully created using SQL scripts, and I can insert static values without issues. However, when I attempt to use parameters in the Run Command activity, I consistently get the following error:
Run Command: ERROR [HY000] [Devart][ODBC][SQLite]Incorrect parameter.
This can mean any of the parameters used either doesn’t match its type or its name is spelled differently from how it was configured(check for any case sensitivity there)
@AJ_Ask your code might work but there issue security issue, data formatting issues.
Security issues like SQL injection Risks using concatenations
Data formatting issues like data, numbers and special characters can break the query
So, string concatenation methods are not recommended as its risky.
Instead use parameterize query using : syntax
@mwaimoris I would recommend you to use as mentioned below:
And one more thing check your file access make sure it is not in read only mode and also try to place the file in your local path instead of onedrive or shared location
Hi @sudster, thanks for the warm welcome and for taking the time to review this!
Just to clarify — the SQL command itself is valid and works perfectly when I insert static values directly into the query (e.g., 'Test' for each column). So I’ve confirmed that:
The table and column names are correct.
The schema matches the expected types.
No syntax issues in the raw SQL command.
The problem only arises when using named parameters with UiPath’s Run Command activity
Hi @ sonaliaggarwal47, yes - I agree, that was my initial suspicion too.
I’ve double-checked the parameter names, types, and even the case sensitivity against the table schema — everything aligns correctly.
At this point, I’m assuming the Devart ODBC driver for SQLite might be using a different format or syntax for handling named parameters internally, which could explain why they’re not binding correctly via UiPath’s Run Command activity.
Thanks @Tapas_Kumar_Pattnaik, totally agree with your points on SQL injection and data formatting. Parameterized queries are the way to go, especially when working with user input.
I did try the :ParamName syntax with the Devart ODBC driver as you suggested, but unfortunately, I still get the same error: [HY000] [Devart][ODBC][SQLite]Incorrect parameter.
So far, only static values in the SQL command work without issues. It’s starting to look like Devart might require a specific parameter binding format or syntax that UiPath’s Run Command activity doesn’t fully support out of the box. Still testing different formats to confirm. Will share an update if I crack it.