SAP Knowledge Base Article - Public

1720637 - Report Title and Comments fields are truncated at 120 characters - .NET error "Buffer too small for string or missing null byte"

Symptom

  • Using the Report Title field to identify a report
  • Title fields longer than 120 characters are truncated
  • Comments field is longer than 120 characters
  • This may also result in the error:

Buffer too small for string or "Buffer too small for string or missing null byte"

Environment

  • Crystal Reports XI R2 (11.5.x)
  • Crystal Reports Developer for Visual Studio
  • Crystal Reports 2008

Reproducing the Issue

  1. In the Crystal Reports designer, click on the File menu and select "Summary Info..."
  2. Fill out the Title field with a title longer than 120 characters

 summary.jpg

Cause

This issue has been tracked with ADAPT01587507

Resolution

This issues is fixed in:

  • SAP BusinessObjects Business Intelligence Platform 4.0 Patch 6.10
  • SAP BusinessObjects Business Intelligence Platform 4.0 Patch 8.1
  • SAP BusinessObjects Business Intelligence Platform 4.0 SP09
  • SAP BusinessObjects Business Intelligence Platform 4.1 Patch 2.2
  • SAP BusinessObjects Business Intelligence Platform 4.1 SP03

Upgrade to Crystal Reports 2008 (12.x), Crystal Reports for Visual Studio 2010 (13.x) or Crystal Reports 2011 (14.x)

  • Comments field in the Summary Information now accepts up to 10K bytes
  • All other fields in the Summary Information accept up to 2K bytes

Keywords

summaryinfo, Title, comments, problem length string designer form screen, CRforVS, Buffer too small for string or missing null
byte, report title, comments, truncated, cut off, buffer too small, missing null byte, ADAPT01587507, ADAPT01713819, ADAPT01713054, ADAPT0171935, ADAPT0171934, ADAPT01711933,ADAPT01711932, ADAPT01711506, ADAPT01711505, ADAPT01710705, ADAPT01710704, ADAPT01710703, ADAPT01650219, ADAPT01650208, ADAPT01650207, ADAPT01637205, ADAPT01591000, ADAPT01587508, ADAPT01787507 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem

Product

SAP Crystal Reports XI R2 ; SAP Crystal Reports, developer version for Microsoft Visual Studio ; SAP Crystal Reports, version for Visual Studio .NET 2008