VERIFIED SOLUTION i

Resolve Doc1 Generate error: GEN0331A Error writing record with length of ### bytes to output file

Products affected:  Doc1 Designer, Doc1 Generate
 
To avoid this error:
1) Make sure that the output device "Limit record length" was set higher than the byte limitation reported in the error.
2) Make sure there are no disk quotas causing this problem.
3) Make sure "Memory Handling" settings while publishing or in the Override Production Settings (OPS) were adequate. 
4) If it is not possible to avoid the error with the above setting, the OPS file can be modified to change the location of the output temp file to another drive.   For example:

output1=%archout%.AFP,H:\temp.afp

UPDATED:  April 20, 2017