[QODBC-Online] - SUBSTRING Function Returns Full Column Value Instead of Extracted Substring
Problem Description:
In the QODBC Online version 24.0.0.360-Beta (and later beta builds prior to v362 RC), the SQL SUBSTRING function does not correctly extract a portion of a text field. Instead, it returns the entire contents of the source column - effectively ignoring the start position and length parameters.
Affected products: QODBC Online v24.0.0.360-Beta (including B01836) Expected outcome: The SUBSTRING function returns exactly the specified portion of the source text, matching standard SQL behavior.
Symptoms:
- An UPDATE or SELECT query uses the
{fn SUBSTRING(column, start, length)} syntax (ODBC escape sequence).
- The target column receives the full contents of the source column instead of the extracted substring.
- Example:
UPDATE INVOICE SET CUSTOMFIELDSALESREP = {fn SUBSTRING(customermemo, 13, 30)} WHERE ... sets CUSTOMFIELDSALESREP to the entire CUSTOMERMEMO value (all 255 characters) instead of only characters 13–42.
- The issue occurs in QODBC Online v24.0.0.360-Beta and later beta builds, but works correctly in QODBC Online v24.0.0.359 (stable release).
- The problem affects any query using SUBSTRING on a QuickBooks field - not just INVOICE or CUSTOMERMEMO.
Cause:
A regression bug in the QODBC Online v24.0.0.360-Beta release causes the driver to ignore the SUBSTRING start/length parameters and pass through the entire source field value. This is tracked as bug B01871 on the QODBC internal bug list.
Environment:
| Product | Version / Detail |
| QODBC Online |
v24.0.0.360-Beta (affected); v24.0.0.359 (unaffected); v24.0.0.362 RC (fixed) |
| QuickBooks Online |
All plans |
| OS |
Windows 10, Windows 11 (all editions) |
Solution:
- Download and install the beta B01871.
Download link: QODBC Online B01871 beta installer
- Back up your connection key. Before uninstalling, export the connection key so it can be restored:
Navigate to: Start → All Programs → QODBC Driver for QuickBooks Online → QODBC Online Setup Screen → General tab → "Export Connection key"
Refer to Knowledgebase article: Import / Export connection key.
- Close all applications and QODBC connections. Close QuickBooks, Excel, MS Access, your application, QRemoteServer, and any other software using QODBC.
Also kill SocketReceiver.exe from Task Manager → Details → End Task.
- Uninstall the current beta version. Remove the current QODBC Online via Control Panel → Programs and Features.
- Install B01871 beta (or v359 as an interim workaround).
- Skip the CD key step during installation.
- Restart Windows if prompted.
- Rebuild the Optimizer file and verify the SUBSTRING function works correctly.
- If you cannot connect after reinstalling, import the backed-up connection key via: QODBC Online Setup Screen → General tab → "Import Connection key".
Interim Workaround (if you cannot upgrade beta B01871)
If you are unable to install the beta, revert to QODBC Online v359 where SUBSTRING works correctly:
- Download QODBC Online v359: QODBC Online v359 Installer
- Follow steps 2–8 above to uninstall the beta and install v359.
SQL Examples:
Affected query (returns full CUSTOMERMEMO instead of substring in v360-Beta):
UPDATE INVOICE SET CUSTOMFIELDSALESREP = {fn SUBSTRING(customermemo, 13, 30)} WHERE TXNDATE = {d'2026-06-21'} AND CUSTOMERMEMO > '' AND CUSTOMFIELDSALESREP IS NULL
In the affected version, CUSTOMFIELDSALESREP receives the entire CUSTOMERMEMO content. After upgrading to v362 RC (or downgrading to v359), it correctly receives only characters 13–42.
Verify the fix with a test query:
SELECT CustomerRefListID, CUSTOMERMEMO, {fn SUBSTRING(CUSTOMERMEMO, 1, 10)} AS MemoPreview FROM Invoice WHERE CUSTOMERMEMO > ''
The MemoPreview column should show only the first 10 characters of each CUSTOMERMEMO value.
Example Scenarios:
Scenario 1 - Sales Rep field extraction from customer memo:
A business stores sales representative codes within the CustomerMemo field (characters 13–42) for tracking purposes. After upgrading to QODBC Online v360-Beta, an automated process that populated a custom field (CUSTOMFIELDSALESREP) using SUBSTRING began writing the entire memo into the code rep column. Downgrading to v359 or upgrading to v362 RC restored correct behavior.
Scenario 2 - Testing SUBSTRING before production deployment:
Before deploying any application changes that rely on SUBSTRING, verify your QODBC Online version. Run a SELECT query with {fn SUBSTRING(column, start, length)} and confirm the output matches expectations. Do not proceed until confirmed working.
Additional Notes:
- This bug affects all fields, not just CUSTOMERMEMO. Any query using SUBSTRING on any QuickBooks table (Customer, Invoice, SalesReceipt, etc.) will exhibit this behavior in the affected versions.
- v359 is stable for SUBSTRING: If you cannot upgrade to v362 RC, downgrading to v359 is the proven workaround.
- Connection key replacement: When uninstalling QODBC Online, exporting and re-importing the connection key is required - it does not survive uninstalls. Always back up before removing.
- SocketReceiver.exe: After uninstalling, ensure
SocketReceiver.exe is killed from Task Manager before installing the new version to prevent stale connections.
- Release Candidate status: RC versions may still contain issues. If you encounter any other bugs after upgrading to v362 RC, monitor QODBC release notes for subsequent fixes.
Related Articles:
QODBC Online Excel Sync Fails After Activation Known Bugs in QODBC v24.0.0.359 and QODBC Online Connection Key Migration How to Activate QODBC Online License How to Deactivate QODBC Online License Slow Query Performance After Upgrading QODBC
Keywords:
Bug B01871 SUBSTRING v24.0.0.360 Beta Wrong Result Full Column Value ODBC Escape QODBC Online Downgrade to v359 v362 RC UPDATE Query CUSTOMFIELDSALESREP QuickBooks Online Connection Key SocketReceiver.exe
Support Tickets: RUG-395-59752
|