SAP Knowledge Base Article - Public

2428079 - Document Generate: Generate and Email Error Message: " a null object loaded from local variable 'resolvedTrRow'"


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. 


Employee Central - Document Generation

Reproducing the Issue


  1. Go to Admin tool then Generate Document 
  2. User 
  3. Click Generate and Email
  4. Result: user encounters application error





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.



Step 1: Create a New Document

  1. Go to Admin tool then Manage Document Template
  2. Create a New Document



Step 2: Refresh the template

  1.  Go to Admin tool then Manage Document Template Mapping 
  2.  Select the document and update base object and target field 
  3.  Save



 Result: No Error Message




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


SAP SuccessFactors HCM Core 1611 ; SAP SuccessFactors HCM suite all versions