while running masking in DB2 linux using FDM for BLOB column data we are getting error
search cancel

while running masking in DB2 linux using FDM for BLOB column data we are getting error

book

Article ID: 129940

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

I have followed below steps and masking functions.

1.    Created connection Profile to connect to DB.
2.    Tried masking functions( FORMATENCRYPT, RANDOMBLOB, FORMATHASH) to mask BLOB column data.

While running the masking, received below error:
Illegal conversion: can not convert from "java.lang.String" to "java.sql.Blob" ERRORCODE=-4474, SQLSTATE=null

Environment

Data source connection: DB2
OS: Linux
FDM
Fast data Masker
TDM
Test Data Manager

Cause

If there is a string data in BLOB column, it will throw an error during conversation from String to BLOB.

Resolution

Since there is string data in the BLOB column, you are getting a type casting error as "Illegal conversion: can not convert from "java.lang.String" to "java.sql.Blob" ERRORCODE=-4474, SQLSTATE=null ".
Please insert some image files or text files in BLOB column and apply the masking using the RANDOMBLOB function.