Server-side auto-increment fails although IsIdentity is set: PROP:ServerAutoInc missing on a source procedure

Applies to: a Clarion version with the SQL templates and a server-side identity column; no version is named in the thread.

Problem

A poster got an error on a server-side auto-increment column and asked whether anyone had seen it. The error text is not in the archived message, so the exact symptom is unknown.

Solution

  1. In the dictionary, identify the column as an existing server-side identity column by adding the user option IsIdentity = TRUE. The template then generates FileLabel{PROP:ServerAutoInc, FieldNumber} = 1 (SoftVelocity's reply, offered as an educated guess).
  2. Also suggested: External Name as TagNumber | READONLY.
  3. Also suggested: the table's user option EmulateAutoNumKey with a value of True, and Auto Number unchecked for the key on the identity column.
  4. What the poster found: the options were already set, and the template did not insert TableName{PROP:ServerAutoInc,FieldNumber} = 1 on his source procedures as it does in other templates. Check the generated code of each procedure that inserts.

Caveats

  • The thread does not show the poster's fix; he thanked the replies and did not say what he added to the source procedures.
  • Which template or Clarion version omits the line was not stated.
  • Steps 2 and 3 were suggestions; the poster said step 2 had been done and did not comment on step 3.

Today (2026)

The options are likely still the way to mark a server identity column; not re-tested. Check the generated source of a source procedure for the PROP:ServerAutoInc line.

Sources: Loren L. (Feb 2010, the question), Bob F. (SoftVelocity), Shankar, Tim P. (Feb 2010) in softvelocity.clarion.databasedrivers.