Results 1 to 5 of 5

Thread: Error insertion - Invalid Number (ORA-01722)

  1. #1
    Grégory is offline Junior Member
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    0

    Default Error insertion - Invalid Number (ORA-01722)

    Version attunity : 1.1
    SQLServeur 2008 R2
    Oracle 11g R2 (machine : exadata)

    Hello,
    I encounter a problem with the Attunity Oracle SSIS Connector when I try to load my data into an Oracle DB by using the Oracle Destination to Attunity composant.
    The destination table contains a field of type NUMBER(19,4) (the equivalent of SQLServeur Money datatype). The execution of package fails with this error message :
    [Oracle Destination 1 [337]] Error: Fast Load error encountered during PostLoad or Termination phase. Class: Logical
    Status: 0 Code: 0
    Note:
    At: ORAOPRdrpthEngine.c:1128
    Text: Conversion error on column '"CHAMP1"'. ORA-01722: Nombre non valide [In english : Invalid Number]
    It turns out that the deployment of the package is carried out smoothly but the execution fallsinto error.
    We tried with a float in the destination table and the problem remains.
    I suspect that the issue could be due to a problem of numeric separator. The NLC_LANG is French and use a “,” separator and not a “.”.

    Do some one ever encounter such a problem ? Is there any work around ?

    More detail about the test package:
    Box Source :
    Oledb Source (SQLServeur)
    Table source : MyTableSource
    Script table source : CREATE TABLE MyTableSource (MyCHAMP MONEY)
    Data access mode : SQL Command :
    SELECT MyCHAMP FROM MyTableSource
    Lié à
    Box Data Transformation :
    MyCHAMP convertie en numeric [DT_NUMERIC] avec pour précision : 19 et échelle : 4, le champ en sortie se nomme : MyChampCopy
    Lié à
    Oracle Destination Attunity :
    Data access mode : Table Name – Fast Load (Using Direct Path) avec les options : Parrel load et No Logging d’activées
    Script table destination :
    CREATE TABLE MyTableDestOracle ("CHAMP1" NUMBER(19,4) NOT NULL ENABLE)
    Mapping : MyChampCopy -> CHAMP1

  2. #2
    Costi Zaboura is offline World Wide Support Manager
    Join Date
    Aug 2006
    Posts
    297
    Rep Power
    6

    Default

    Hi

    pls have a look at the following user forum article that looks similar to what you are experiencing.

    http://www.attunity.com/forums/micro...elds-1305.html (KNOWN LIMITATION-Number fields)


    thx
    Costi
    To Find Out more About Attunity Technology:
    Attunity
    or:
    Contact Us

  3. #3
    Grégory is offline Junior Member
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    0

    Unhappy

    Hey Costi. Thank you for you answer.

    We do encounter the same error message "ERROR ORA-01722" but we are using the 1.1 version and in the post it is said that "The Microsoft Connector Version 1.1 for Oracle by Attunity (...) solves this issue". Could the limitation still be present in the 1.1 version ?

    Moreover, we tried to change the DB setting to set the nls_lang setting to American but only the Database and Instance setting were affected, the Session parameters and so the SSIS Attunity component were still in French. The only way we found was an Alter Session (ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '. '; ) but we didn't manage to execute it inside the SSIS Attunity Componotent.

    It's really anoing because we discovered this bug during the beginning of the production stage.

    Thank you for your help!

  4. #4
    Gadi.Farhat is offline Development Team Leader
    Join Date
    Mar 2009
    Posts
    162
    Rep Power
    4

    Default

    Hi Gregory,

    You need to change the NLS_LANG on the client and not on the database. This can be done in the registry for the specific client key.

    To make sure you use the specific client, where you changed the NLS_LANG, you can use the oracle home property of the connection manager.

    Regards,

    Gadi
    To Find Out more About Attunity Technology:
    Attunity
    or:
    Contact Us

  5. #5
    Grégory is offline Junior Member
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    0

    Default

    Hey Gady, thank you very much for you're answer, it did correct the problem. So it seams that the numeric seperator bug which make decimal numbers loading fail is still present in the 1.1 version.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243