Oracle Message ORA-24507 - invalid combination of character set ids

ERRORinvalid combination of character set ids
CAUSEAttempts to set one character set id as zero
ACTIONSet both charset and ncharset as zero or non-zero in OCIEnvNlsCreate()