Focal Point
Zero loaded instead of integer values

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/2397084526

October 24, 2012, 10:39 PM
Chiranjeevi
Zero loaded instead of integer values
Hi All,

I am loading data from Table A to Table B, both the table structure and datatype as same.

All the columns are loaded properly but one column is loaded as zero instead of Table A data.

Value 0 is loaded for all the rows for that particular column remaining column data are fine.

Could anyone please help me on this?


Webfocus 7702, Windows server 2008
October 24, 2012, 10:50 PM
Waz
Can you post the code ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 24, 2012, 11:05 PM
Chiranjeevi
Hi Waz,

It is a direct pass through and mentioned query below generated by DMC.

SELECT DISTINCT
T1.ORGANIZATION_ID ,
T1.INVENTORY_ITEM_ID ,
T1.CATEGORY_SET_ID ,
T1.CATEGORY_ID ,
T1.LAST_UPDATE_DATE ,
T1.LAST_UPDATED_BY ,
T1.CREATION_DATE ,
T1.CREATED_BY ,
T1.LAST_UPDATE_LOGIN ,
T1.REQUEST_ID ,
T1.PROGRAM_APPLICATION_ID ,
T1.PROGRAM_ID ,
T1.PROGRAM_UPDATE_DATE ,
T1.WH_UPDATE_DATE
FROM
mtl_item_categories T1

In the above query all the columns are loaded fine except T1.INVENTORY_ITEM_ID column.

Please help me on this?


Webfocus 7702, Windows server 2008
October 24, 2012, 11:13 PM
Waz
I'm not an Iway person, but is there any transforms or function on the investory item field ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 24, 2012, 11:21 PM
Chiranjeevi
Hi Waz,

Thanks for your response.

Haven't used any transformation , its a direct pull from source to target.


Webfocus 7702, Windows server 2008
October 24, 2012, 11:42 PM
Waz
Just a silly question.

Is source INVENTORY_ITEM_ID associated with the destinations INVENTORY_ITEM_ID ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 30, 2012, 03:43 PM
Clif
It looks like you are using DataMigrator. What release are you using?

Just to be clear you are not using what we call Direct Pass Through which refers to database specific SQL dialect that is passed through to the underlying relational database as is. While the DMC never generates such you can write it in a DBMS SQL Flow.

Is the target a New or Existing table?

If New the transformations from source to target are implied, you don't need to specify them.

For existing you do need what we call a transformation for each column you want loaded (we call them that even if they are just doing a simple assignment).

So I would phrase Waz's last question, is there a transformation for INVENTORY_ITEM_ID?

If not, and the column is NOT NULL (MISSING is not checked in the synonym editor for the field) then you would indeed get zero's loaded.

This message has been edited. Last edited by: Clif,


N/A