Import validation failed

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
nitin376
Charter Member
Charter Member
Posts: 40
Joined: Tue Apr 11, 2006 9:38 am

Import validation failed

Post by nitin376 »

hi,

The job details as follows:
Source is a sequentail stage , thus extracting flat file and then loading into the transformer to add some rows into the input data .

The issue: Import validation failed error

Error details:

sq_CurrentShipList: Import validation failed

sq_CurrentShipList: At field "Balanced_Qty": When validating import/export function: APT_GFIX_Decimal::validateParameters: Decimal "text" format is variable length and no external length is specified. Possibly you should specify an appropriate "width" property? External format: {text, padchar=32, nofix_zero, precision=10, scale=0, round=trunc_zero, ascii}
At field "Balanced_Qty": Error validating import/export function

please help me to resolve the above issue

thanks,
nitin
thumsup9
Charter Member
Charter Member
Posts: 168
Joined: Fri Feb 18, 2005 11:29 am

Post by thumsup9 »

Check your metadata for Balanced_Qty, did you mention the same scale and precision for the field as it appears in the data.
nitin376
Charter Member
Charter Member
Posts: 40
Joined: Tue Apr 11, 2006 9:38 am

Post by nitin376 »

I did check the metadata for Balanced_Qty, there is no dissimilarity. Both are numeric (10) ...I don't know why its giving the validation failed error ?
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

I think you need to specify the width in you environment variable setting ,APT_GFIX_Decimal.

Sam
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is this a delimited or fixed-width file?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nitin376
Charter Member
Charter Member
Posts: 40
Joined: Tue Apr 11, 2006 9:38 am

Post by nitin376 »

hi ray !

this is fixed width
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Is it a compilation error or runtime or error during import?
Is Balanced_Qty not a decimal field?
BTW: Are you adding up some extra rows or columns in the transformer?
Were you able to view the data from the sequential file?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Read this part of the error message very carefully again.

Decimal "text" format is variable length and no external length is specified. Possibly you should specify an appropriate "width" property?

What property do you think you need to set?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
TonyInFrance
Premium Member
Premium Member
Posts: 288
Joined: Tue May 27, 2008 3:42 am
Location: Luxembourg

Post by TonyInFrance »

us1aslam1us wrote:I think you need to specify the width in you environment variable setting ,APT_GFIX_Decimal.
Is this done by adding an environment variable APT_GFIX_Decimal in the Administrator module? The type would be String I guess. What value should we pit as default?

Thanks
Tony
BI Consultant - Datastage
Post Reply