Files
doc-exports/docs/dataartsstudio/umn/dataartsstudio_03_0109.html
chenxiaoxiong f9e2808b7c DataArts UMN 20250810 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
2025-09-02 10:44:13 +00:00

17 lines
2.2 KiB
HTML

<a name="dataartsstudio_03_0109"></a><a name="dataartsstudio_03_0109"></a>
<h1 class="topictitle1">What Should I Do If an Error Is Reported Because the Field Type Mapping Does Not Match During Data Migration Using CDM?</h1>
<div id="body8662426"><div class="section" id="dataartsstudio_03_0109__en-us_topic_0000001163136565_section1223581555114"><h4 class="sectiontitle">Symptom</h4><p id="dataartsstudio_03_0109__en-us_topic_0000001163136565_p11859836155115">When you use CDM to migrate data to DWS, the migration job fails and the error message "value too long for type character varying" is displayed in the execution log.</p>
</div>
<div class="section" id="dataartsstudio_03_0109__en-us_topic_0000001163136565_section272691115518"><h4 class="sectiontitle">Possible Cause</h4><p id="dataartsstudio_03_0109__en-us_topic_0000001163136565_p18643192120443">The possible cause is that the type of the source table does not match that of the target table. For example, the <strong id="dataartsstudio_03_0109__en-us_topic_0000001163136565_b0142125015546">dli</strong> field of the source is of the string type, and the <strong id="dataartsstudio_03_0109__en-us_topic_0000001163136565_b714295075420">dws</strong> field of the destination is of the varchar(50) type. As a result, the precision is default and the error message "value too long for type character varying" is reported. This issue also occurs for conversion from string to bigint and from bigint to int.</p>
</div>
<div class="section" id="dataartsstudio_03_0109__en-us_topic_0000001163136565_section829514578315"><h4 class="sectiontitle">Solution</h4><ul id="dataartsstudio_03_0109__en-us_topic_0000001163136565_ul27231034112317"><li id="dataartsstudio_03_0109__en-us_topic_0000001163136565_li3723163482310">Locate the field that is incorrectly mapped based on the error information and contact the DBA to modify the table structure.</li><li id="dataartsstudio_03_0109__en-us_topic_0000001163136565_li177236345238">If this issue occurs only for a small amount of data, you can configure the dirty data policy to solve the issue.</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_03_0027.html">DataArts Migration (CDM Jobs)</a></div>
</div>
</div>