Record a k3 SQLServerException: string or binary data will be truncated

First of all, I was not a developer of Kingdee. In a project, a report of Party A's k3 reported this exception when it was opened, and then caught us, took a lot of money, and did not touch his ERP. Eh~. In fact, it is not untouched, the test environment will read the data of the formal environment.
However, for a person who doesn't understand the code, after using a function that hasn't been a problem for several years, suddenly there will be a problem one day, then someone must have moved their hands and feet. I. . . In fact, it may be a bug that has never been encountered before, and only encountered it today.
Insert picture description hereSQLServerException: Truncating string or binary data is mostly because the size of the variable exceeds the given range of a certain field, but how do I know which field it is. I went to the server for a long time and couldn't find where the log is. It is c# and cs architecture, and I can't tell.
Fortunately, this custom report can see the code. Some are directly a sql, and then enter the parameters. This is similar, input parameters and then call the stored procedure. Hey, the log can't be found, but the database stored procedure is still visible. This problem is solved by simply modifying the field properties.
Hey, poor party B, so angry and funny.

Guess you like

Origin blog.csdn.net/qq_41885819/article/details/109774630