Left 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!!!!

  • Try to do this in your underlying query and see if works there.

  • We have take a different route to do this. With the new change, all we do is pick the data from sql server. No more expressions on ssrs side. Thanks for your reply...

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply