context variable <str> does not reference a segmented string Explanation: You attempted to use a context variable with RDB$VALUE or RDB$LENGTH, and the context variable does not refer to a segmented string field. User Action: Use a context variable defined for a segmented string with RDB$VALUE and RDB$LENGTH.