Hi,
I am getting below error
Field "BEHAVIOUR_ID" has import error and no default value; data: {0d}, at offset: 8
to load the entire data changed data type to number to varchar with unicode
I tried below 2 functions to load -1, it is not working
If Read_1.BEHAVIOUR_ID="" Then -1 Else (BEHAVIOUR_ID)
If IsNull(Read_1.BEHAVIOUR_ID) Then -1 Else Read_1.BEHAVIOUR_ID
please help me how to insert -1. I am using datastage 8.1 and oracle 10g
Thanks and Regards
Srini.Y
Field "BEHAVIOUR_ID" has import error and no defau
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 63
- Joined: Mon Oct 20, 2008 12:01 am
- Location: Malaysia
-
- Participant
- Posts: 9
- Joined: Sun Jun 27, 2010 11:52 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Look at the "bad" data. {0d} is a carriage return. I'd guess that you are reading a file that has DOS-style line terminators but have specified UNIX-style line terminators in the format properties of your Sequential File stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 63
- Joined: Mon Oct 20, 2008 12:01 am
- Location: Malaysia