Ice.Common.EpicorServerException: String or binary data would be truncated. The statement has been terminated. —> System.Data.SqlClient.SqlException: String or binary data would be truncated. The statement has been terminated.
I suspect a data size issue
What I need to find is the actual SQL so I can find the data that is causing rhe issue
I have tried turning on app server trace, but dont see any SQL.
Can this be done.?? May be a ‘hidden’ debug option??
I have also tried to trawl through a SQL profiler log, but so far havent found the needle in that particular haystack
There is <add uri="profile://system/db/epiprovider/sqltext" /> to dump EF statements
and <add uri="profile://ice/fw/DynamicQuery/BaqStatement" /> to dump BAQ statements
I have tracked down the errant data directive and and the piece of code where someone is trying to write to a string field with a value that is too long!