PowerBuilder · Runtime error

R0016: Maximum string length exceeded

What does R0016: Maximum string length exceeded mean in PowerBuilder?

A string operation produced a value longer than PowerBuilder's 60,000-character limit for a single string variable.

R0016: Maximum string length exceededPowerBuilder Classic · Appeon PowerBuilder

Condition

A string operation produced a value longer than PowerBuilder's 60,000-character limit for a single string variable.

Fix

Check for string concatenation inside a loop that grows unbounded, which is the most common way this limit gets hit in practice, usually while building a large report or export file in memory instead of writing it incrementally.

Pending source verification. Not yet checked against official documentation.

Related runtime error