Symptom
You would receive an application error when clicking on feature "Generate and Email document " in document generation
The application error id would be accompanied by Error Message: " a null object loaded from local variable 'resolvedTrRow'"
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
Employee Central - Document Generation
Reproducing the Issue
Step:
- Go to Admin tool then Generate Document
- User
- Click Generate and Email
- Result: user encounters application error
Cause
Issue: Missiconfiguration of Document
1. Go to Admin tool then Manage Document Template
3. Select document
4. Click on source
5. Review source
The issue with resolvedTrRow value is null :
The whole of DocGen framework the variable is used 3 times in one method andthat method is called on if the body has table associated with it .
But we don't find any table associated with the template , and more-ever this template is straight forward. in terms complications in the structure of the template content.
Resolution
Step 1: Create a New Document
- Go to Admin tool then Manage Document Template
- Create a New Document
Example:
Step 2: Refresh the template
- Go to Admin tool then Manage Document Template Mapping
- Select the document and update base object and target field
- Save
Test
Result: No Error Message
Keywords
Document Generate, Generate and Email, while trying to invoke the method java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence) of a null object loaded from local variable 'resolvedTrRow, Table associated with the template, ECT-65346 , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Problem