0

ソースからの入力文字列の下にあり、mssql データベースを使用してデータをテーブルにロードしていますが、テーブルから以下のエラーが発生しています。

Error from Component 'LOADP51file.Output_Table_1__table_.load', Partition 0 [U103,DB00156,DB16000,DB00250] ABINITIO(DB00156):  Put row failed for db statement ABINITIO(DB16000):  ODBC Error ABINITIO(DB16000):  SQLCODE: 0 ABINITIO(DB16000):  SQLSTATE: 22001 ABINITIO(DB16000):  MESSAGE: [Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation ABINITIO(DB00250):  Rejected record value: ABINITIO(DB00250):   [record   id                "140426924"   check_valt        "0"   description         "IT IND UTP 33  £1 3D Multi ST"   style_code        "000000" 

上記のエラーは、列「説明」が原因でのみ発生することがわかりました。ソースからの£1のせいですか?

Input data   140426924|0|IT IND UTP 33  £1 3D Multi ST|000000
     Input dml:   string(9) id;   string(1) check_valt ;   string(30) description ;   string(6) style_code ;


 Output table DML:   record   string("\x01",charset="windows-1252", maximum_length=9) id

/*VARCHAR(9) NOT NULL*/;   string("\x01",charset="windows-1252", maximum_length=1) check_valt = NULL("") /*CHAR(1)*/;   string("\x01",charset="windows-1252", maximum_length=30) description = NULL("") /*VARCHAR(30)*/;   string("\x01",charset="windows-1252", maximum_length=6) style_code = NULL("") /*VARCHAR(6)*/;   end;
4

3 に答える 3

1

これを試して:

out.description :: string_convert_explicit(in.description,"windows-1252","");

また、切り捨てが問題の場合:

out.description :: string_substring(string_convert_explicit(in.description,"windows-1252",""),1,30);
于 2016-03-25T14:23:04.917 に答える
0

文字セットを utf8 のままにしてください。

それが機能するかどうかお知らせください。

ありがとうアリジット

于 2016-03-16T11:32:42.513 に答える