Left and Mid function in SSRS


  • Hi Members,
    I have a SSRS report which displays a field value based on a expression. The expression uses left function. The expression is =left(UCase(Trim(Fields!xxxx.Value)),30). It displays 30 characters properly on the report viewer on report manager on DEV environment. We have deployed the same report to UAT environment. The same report after deployment on UAT is not working as it supposed to. It doesn't display all the 30 characters. It looks like it's truncating the data. For some records it shows only 17 characters and for some records it shows 14 characters so this behavior is unpredictable. We are using SQL Server 2008 R2 on both the machines. 

    Same thing is happening with another expression =trim(mid(UCase(Trim(Fields!xxxx.Value)),31,60))

    Any pointers are greatly appreciated.

    Thanks for your help in advance!!!!
    Wednesday, May 08, 2013 4:35 PM

All replies