Informix Error -3757: A conversion error has occurred for the field tag-name.
Cause and resolution
A conversion error has occurred for the field tag-name.
The data type of the value that is passed to pf_putval() could not be converted into the data type of the screen field tag-name. Review the value and the valtype flag versus the data type of the field in the form definition.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-3757 fires when the C function pf_putval() passes a value whose data type can't be
converted into the target screen field's data type — per the official guidance, this requires
reviewing the value and its valtype flag against the field's actual data type.
- A
pf_putval()value/valtypemismatch against the target field's actual data type, per the official guidance — the direct, only cause.
Solutions / Resolution
- Review the value and the
valtypeflag versus the data type of the field in the form definition, per the official guidance.
Examples
A valtype mismatch
pf_putval(fname, "cust_name", "123", CINTTYPE);
/* fails with -3757 if cust_name is a CHAR field, not INTEGER */
Diagnostic Checks
- Check the
valtypeflag passed topf_putval()against the target field's actual data type in the form definition.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -3757 in this set yet.
pf_putval()'s value couldn't convert to the target field's data type — check the value and
valtype flag against the field's actual type.