用友U8 | 【总账】应收核销明细报错,提示:将截断字符串或二进制数据

问题描述:

查询应收核销明细表时,会报错,无法查询数据

处理方法:

select * into  ar_detail20210728 from ar_detail


select  cDefine9,* from Ar_Detail where  cDefine9='R20190518-C01'


select cDefine9,* from Ar_Detail  where len(cDefine9)>8

update ar_detail set cDefine9='20200428'  where cDefine9='R20200428-B01'
update ar_detail set cDefine9='20181113'  where  cDefine9='R20181113-C01'
update ar_detail set cDefine9='20190401'  where  cDefine9='R20190401-A02'
update ar_detail set cDefine9='20190518'  where  cDefine9='R20190518-C01'

思路:(仅针对我司业务做修改,仅供参考

1、查询应收核销明细表时,报错,先查询一下是哪个时间区间报错,缩短时间区间范围,找到对应的数据;

2、cDefine9系统自定义长度是8,之前由于自己写过存储过程,修改了长度,发现并不起作用;

3、用select语句查询len大于8的数据;

4、更新为8个字段后查询,能正常查询;

5、变更方案,原字段禁止使用,替换一个新的扩展字段来代替。


原文地址:https://www.cnblogs.com/lxhui/p/15103583.html