Search code examples
crystal-reportsreportingcrystal-reports-2008

Crystal Reports 2008: field shows as blank even when data is returned from the database?


Issue

  • I have a report in CR 2008 that I inherited from someone else
  • A sub-report in the report pulls its data from a database view
  • A field exists, "TRANSCBFLAG" in the view -- it's a string with values of "Y", "N", or "D"
  • The view has these values
  • The report displays every other value, but not this one field.

Attempted Resolutions

  • Suppression attribute? -- No, it's unchecked
  • Field type issue? -- No, it's a string
  • Font and background? -- No, it's black font / white background
  • Suppression / formatting formulas? -- no formulas on display or suppression in subreports or report
  • Space constraints? -- stretched the field out below all other fields -- still shows as blank
  • Check to make sure Crystal can see the data -- right-clicked field, select "Browse Field Data", and it came back with the three potential values. So, it can see them in the DB at least, and potentially even in the fields itself.
  • Just a local Crystal Issue? -- No; I uploaded the report to Business Objects XI for a test and all fields still display except that one.

Question

Where in the process could I be going wrong? It shows when I run the view directly from the database, and every other field shows perfectly in Crystal the first time.


Solution

  • There may be a more correct answer, but in a pinch, removing the view from my report (thus removing all fields), adding the view again, and redoing all fields caused the field to display correctly. Not sure how or why.

    A further explanation would be appreciated, but for now, that's all I've got.