forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
143 lines
22 KiB
HTML
143 lines
22 KiB
HTML
<a name="EN-US_TOPIC_0000001188681008"></a><a name="EN-US_TOPIC_0000001188681008"></a>
|
|
|
|
<h1 class="topictitle1">Handling Import Errors</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_sa16c4c483b7c4a49bfec49cd76f6c990"><h4 class="sectiontitle">Scenarios</h4><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a2502f6262b8b46a580e039a5c22cd149">Handle errors that occurred during data import.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_s75d98cb2135a47728458d03bd9cd7ef4"><h4 class="sectiontitle">Querying Error Information</h4><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a78edb38626c3489abac068226c9ef68d">Errors that occur when data is imported are divided into data format errors and non-data format errors.</p>
|
|
</div>
|
|
<ul id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ub26bef65964b475b9d3a4ce637aabc7c"><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_l8736fbcb6d7e4900b252c1b830cbba31">Data format error<p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a938650dbd3fc422aab384b78340cb50c"><a name="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_l8736fbcb6d7e4900b252c1b830cbba31"></a><a name="en-us_topic_0000001180837459_l8736fbcb6d7e4900b252c1b830cbba31"></a>When creating a foreign table, specify <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b89481633121015">LOG INTO</strong> <em id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_i8243204021016">error_table_name</em>. Data format errors occurring during the data import will be written into the specified table. You can run the following SQL statement to query error details:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_s26c16e0df1664b9ea5fb137a7803a150"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">error_table_name</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<div class="p" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a157e9c70520a4daba52abd3c1fc23b65"><a href="#EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_t22a10c890aac412caaf092734cab45fa">Table 1</a> lists the columns of the <em id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_i1039411741614">error_table_name</em> table.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_t22a10c890aac412caaf092734cab45fa"></a><a name="en-us_topic_0000001180837459_t22a10c890aac412caaf092734cab45fa"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_t22a10c890aac412caaf092734cab45fa" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Columns in the <em id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_i12309124901713">error_table_name</em> table</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r675981fdd0104bf889d9bec75f211d22"><th align="left" class="cellrowborder" valign="top" width="19.23807619238076%" id="mcps1.3.3.1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a16188f59381041e7938e2a302068bb3e">Column</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.706629337066296%" id="mcps1.3.3.1.3.3.2.4.1.2"><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a4804bce172684134aa73c961c6a47219">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.05529447055295%" id="mcps1.3.3.1.3.3.2.4.1.3"><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a2913c0e46f7b47fbb7b19e0cd0ea1cf0">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r1fba5e2ae851444481f5716a4647d8d4"><td class="cellrowborder" valign="top" width="19.23807619238076%" headers="mcps1.3.3.1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a88b5f6dd34a64b6b8b0856e5ade85d3a">nodeid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.706629337066296%" headers="mcps1.3.3.1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ab53e9a3f6f984b38b872d01ac9057262">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.05529447055295%" headers="mcps1.3.3.1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a560e50b017384df6870ccc728c57f9cb">ID of the node where an error is reported</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r42011d3b0d2941468030bf961b83cc2c"><td class="cellrowborder" valign="top" width="19.23807619238076%" headers="mcps1.3.3.1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a56280a84adc24f9ea60f2d83bc3d4263">begintime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.706629337066296%" headers="mcps1.3.3.1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_aa66bb78e497442f6b245d202c24aa479">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.05529447055295%" headers="mcps1.3.3.1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a0ca4a84caaaa4eb388e1bbd03a5cd0af">Time when a data format error is reported</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r6829e97a057e4e90b680fdd48b2f43f7"><td class="cellrowborder" valign="top" width="19.23807619238076%" headers="mcps1.3.3.1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a54ecbfe0c738414b9099b4a1671540ae">filename</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.706629337066296%" headers="mcps1.3.3.1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a737b3b5acd644679a0970537204862c9">character varying</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.05529447055295%" headers="mcps1.3.3.1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a68d48c65eb484bafa59af7acca894036">Name of the source data file where a data format error occurs</p>
|
|
<p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_p483183711115">If you use GDS for importing data, the error information includes the IP address and port number of the GDS server.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_re41d4aa064184ce083f5c13a59e66abb"><td class="cellrowborder" valign="top" width="19.23807619238076%" headers="mcps1.3.3.1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_abe0224fdbfa54c37a6cbc8549b2f29e2">rownum</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.706629337066296%" headers="mcps1.3.3.1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a08b4fdbb89bf417a97fb5a15bfffecec">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.05529447055295%" headers="mcps1.3.3.1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a3c6103c6697d4c41bab6eb1b7ded4624">Number of the row where an error occurs in a source data file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ra90f52bcb4554c5aa82c0332bd4b8f2c"><td class="cellrowborder" valign="top" width="19.23807619238076%" headers="mcps1.3.3.1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a5c0bc8656b9047e9b64203a844961bec">rawrecord</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.706629337066296%" headers="mcps1.3.3.1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a14cacb0e91fd45fd9ce07b1b01fb025d">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.05529447055295%" headers="mcps1.3.3.1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ae237a7e910bd460c9af745ade70d35ae">Raw record of the data format error in the source data file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r1dd61028cafc4debb62a81efc095cdec"><td class="cellrowborder" valign="top" width="19.23807619238076%" headers="mcps1.3.3.1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a9672c5b3588d403e832bd95c1e527e9f">detail</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.706629337066296%" headers="mcps1.3.3.1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_acb09395090cd4dad9b463278e823758e">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.05529447055295%" headers="mcps1.3.3.1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a222c7f6abf2945cd9fbed95a9168a0b7">Error details</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ue1f5e562a7cf4f3985942963cd63a7f9"><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_lf371243ce9ae470f8049716456b0b5ad">Non-data format error<p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ad8a2dd247967447ca7f4c28cd72a1cfb"><a name="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_lf371243ce9ae470f8049716456b0b5ad"></a><a name="en-us_topic_0000001180837459_lf371243ce9ae470f8049716456b0b5ad"></a>A non-data format error leads to the failure of an entire data import task. You can locate and troubleshoot a non-data format error based on the error message displayed during data import.</p>
|
|
</li></ul>
|
|
<div class="section" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_s6e8c9c37e16a41a5852b1124ddcced94"><h4 class="sectiontitle">Handling data import errors</h4><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a129ef4f62654486ab9b4673c0d3cbba1">Troubleshoot data import errors based on obtained error information and the description in the following table.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_t1dfcc19111704665857c25299dfb4648" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Handling data import errors</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r73151a6209e547bf905adbf9de11a3d3"><th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_p211416163551">Error Information</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="38%" id="mcps1.3.5.3.2.4.1.2"><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a9287af903a544b93bb97b5970c910b9b"><strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0100738203_en-us_topic_0087194649_a7594b9c861bd4cdeaf7578acc1b1e4da">Cause</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39%" id="mcps1.3.5.3.2.4.1.3"><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_p144017275544">Solution</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r69673af0e50d4d599414fe4b6e3dc7df"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_af897fd476a014e5e90e15e3dd03599af">missing data for column "r_reason_desc"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38%" headers="mcps1.3.5.3.2.4.1.2 "><ol id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_off0f1713b8b942dfbda0fcf881e0abd6"><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_lb5bfbf2ea09a49bea89fbf1e06e118c0">The number of columns in the source data file is less than that in the foreign table.</li><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_l7dade582cbf84b27832959b1c82fe86d">In a TEXT format source data file, an escape character (for example, \) leads to delimiter or quote mislocation.<p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a56b530c11e7343f5b5af0b60322a2a32"><a name="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_l7dade582cbf84b27832959b1c82fe86d"></a><a name="en-us_topic_0000001180837459_l7dade582cbf84b27832959b1c82fe86d"></a>Example: The target table contains three columns as shown in the following command output. The escape character (\) converts the delimiter (|) into the value of the second column, causing loss of the value of the third column.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_sd242c25b5a5b45cdbcd8f8a8cb6cc249">BE|Belgium\|1</pre>
|
|
</li></ol>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39%" headers="mcps1.3.5.3.2.4.1.3 "><ol id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_o7ac0d131787c4faeafb904e7f7fc63d8"><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_li15980262569">If an error is reported due to missing columns, perform the following operations:<ul id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ufb36920ad3fc432794c788af24d37b14"><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_li73123133568">Add the <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0058967664_b842352706162530">r_reason_desc</strong> column to the source data file.</li><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_lb2436cb9cb61445d80216886c5c23370">When creating a foreign table, set the parameter <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b842352706162549">fill_missing_fields</strong> to <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b842352706162552">on</strong>. In this way, if the last column of a row in the source data file is missing, it is set to <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b842352706184352">NULL</strong> and no error will be reported.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_l960c30a7b02343e583ad058c47b2c37b">Check whether the row where an error occurred contains the escape character (\). If the row contains such a character, you are advised to set the parameter <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b842352706162910">noescaping</strong> to <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b842352706162827">true</strong> when creating a foreign table, indicating that the escape character (\) and the characters following it are not escaped.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r9af3082ff7524993ad0dc4a055326563"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_p121343162551">extra data after last expected column</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a329a75f90baa443d997adb2051f2a21b">The number of columns in the source data file is greater than that in the foreign table.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_u331a981f10e8491fa5dc2f53e3a4ed16"><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_l52ab0e534b2d4045930cc7faa0c28dee">Delete the unnecessary columns from the source data file.</li><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_lf1c7e44cf53645ecaf163c9af865505b">When creating a foreign table, set the parameter <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b1257944502">ignore_extra_data</strong> to <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b1830502077">on</strong>. In this way, if the number of columns in a source data file is greater than that in the foreign table, the extra columns at the end of rows will not be imported.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_rf8157588ed5747ab9cca3b6c1151fac3"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a56192772243549fcb64ab38a1300b1c7">invalid input syntax for type numeric: "a"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a42730d273798428791508534e80015b0">The data type is incorrect.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_p8876141213334">In the source data file, change the data type of the columns to be imported. If this error information is displayed, change the data type to <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b84235270615839">numeric</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r967a27d497d2426a9171256ec5b3b356"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ab3da27319ae9483b994f9b9ad75eeba1">null value in column "staff_id" violates not-null constraint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_p214716161550">The not-null constraint is violated.</p>
|
|
<p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a7d6acb3f64ea4ff9ae02da9951d70f80"></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_p15281911103315">In the source data file, add values to the specified columns. If this error information is displayed, add values to the <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b84235270619217">staff_id</strong> column.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r923c1639ff7f43b09a1ccba609f075fc"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_p191508162559">duplicate key value violates unique constraint "reg_id_pk"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_a4a68179e87944f34ad2526206cbddf1d">The unique constraint is violated.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_ul88724019590"><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_li58834045916">Delete the duplicate rows from the source data file.</li><li id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_en-us_topic_0117407722_li08918403599">Run the <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b148901641153120">SELECT</strong> statement with the <strong id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_b168901041143117">DISTINCT</strong> keyword to ensure that all imported rows are unique.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_sdbe2975c1abb4fc28e6b690e9b54a050"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">INSERT</span><span class="w"> </span><span class="k">INTO</span><span class="w"> </span><span class="n">reasons</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="k">DISTINCT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">foreign_tpcds_reasons</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_r20e65e79d3fd412d9b9ba78b7af4bb2d"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_af3e91275477549a0989fbc3f981b5dc6">value too long for type character varying(16)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_ae646790528444269a255c690af15acf7">The column length exceeds the upper limit.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188681008__en-us_topic_0000001180837459_p1732851553315">In the source data file, change the column length. If this error information is displayed, reduce the column length to no greater than 16 bytes (VARCHAR2).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_gds_index.html">GDS</a></div>
|
|
</div>
|
|
</div>
|
|
|