Software⏱️ 3 min read📅 2026-06-11

How to Fix: Microsoft Excel to SQL using Pentaho: syntax error in 'OPTION SQL_SELECT_LIMIT=DEFAULT'

Pentaho Kettle version 5.1 error fix for SQL_SELECT_LIMIT=DEFAULT syntax error.

Quick Answer: Check the connection settings and ensure that the SQL_SELECT_LIMIT option is correctly configured.

The error 'syntax error in 'OPTION SQL_SELECT_LIMIT=DEFAULT'' occurs when using Pentaho Kettle to transfer data fromMicrosoft Excel to a SQL database. This issue affects users who have followed specific steps to configure their transformation, as outlined in the provided Super User answer.

This error can be frustrating because it prevents the successful import of data into the SQL database, causing delays and inconvenience for those relying on this process. In this guide, we will walk through the primary fix method and provide an alternative solution to resolve this issue.

⚠️ Common Causes

  • The primary reason for this error is that the 'OPTION SQL_SELECT_LIMIT=DEFAULT' syntax is not properly configured in the Pentaho Kettle transformation. This setting determines the maximum number of rows returned by the SQL query, and if not set correctly, can result in a syntax error.
  • An alternative reason for this error could be related to the database connection settings or the SQL query itself, which may require additional investigation and troubleshooting.

🔧 Proven Troubleshooting Steps

Configuring the 'OPTION SQL_SELECT_LIMIT=DEFAULT' setting

  1. Step 1: Open the Pentaho Kettle transformation and locate the 'Table Output' block. In this block, click on the 'New...' button next to the 'Connection' drop-down box.
  2. Step 2: In the connection settings, navigate to the 'Database' section and look for the 'SQL Select Limit' parameter. Ensure that it is set to a valid value (e.g., 0 or a specific number).
  3. Step 3: Alternatively, you can try setting the 'OPTION SQL_SELECT_LIMIT=DEFAULT' syntax in the 'Table Output' block's properties by clicking on the 'Advanced' tab and adding this line of code: `option sql.select.limit = default`.

Checking database connection settings

  1. Step 1: Verify that the database connection is properly configured, including the username, password, host, and port. Ensure that these settings are accurate and up-to-date.
  2. Step 2: Check the SQL query being executed by the Pentaho Kettle transformation to ensure it is correct and does not contain any syntax errors or limitations.

🎯 Final Words

To resolve the 'syntax error in 'OPTION SQL_SELECT_LIMIT=DEFAULT'' issue, follow the primary fix method outlined above. If this approach does not work, consider checking database connection settings and verifying the SQL query for accuracy. By applying these steps, you should be able to successfully import data from Microsoft Excel into your SQL database using Pentaho Kettle.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions