# IP driver: random Error 27 in threaded procedures

**URL:** <https://forums.softvelocity.com/t/ip-driver-random-error-27-in-threaded-procedures/1288>\
**Category:** Knowledge Base\
**Tags:** unverified, database-drivers\
**Created:** [November 9, 2026, 1:56am UTC](https://forums.softvelocity.com/t/ip-driver-random-error-27-in-threaded-procedures/1288 "2026-11-09T01:56:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 1:56am UTC](https://forums.softvelocity.com/t/ip-driver-random-error-27-in-threaded-procedures/1288/1 "2026-11-09T01:56:51Z")

</div>

**Applies to:** IP Driver 2 era (Clarion 6 / 7, 2008); check the version before applying.

**Problem**

Procedures running on their own thread occasionally fail with error 27 (invalid table definition) through the IP driver. The same code never fails on TPS directly.

**Solution**

The trigger is files being opened and closed rapidly on several threads. Two measures that worked for the posters:

1. Keep the files open: in ABC, clear the global File tab option "Defer opening files until access" (lazy open), so every file opens once at start-up and stays open. Legacy-template applications already behave that way.
2. Open and close in one non-threaded place (the calling window) and let the threaded procedure only read and write.

Upgrading the IP driver removed the error for at least one legacy application.

**Caveats**

The posters held this for a driver defect, reported for two years at the time, and SoftVelocity's view is not in the thread; the two measures reduce the frequency rather than prove the cause.

**Today (2026)**

Era-specific. Verify on the current IP driver before publishing; if the error no longer reproduces this entry becomes a history note.

**Sources:** Meredith (Feb 2008, the question), Paul H., Chuck T., Johan R., Richard R. (Feb 2008) in softvelocity.clarion.databasedrivers.
