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

SAP Knowledge Base Article - Public

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

Symptom

 

On Generate and Email document, user encounters application error:

Example: An application error occurred. Please try again later, or notify support (with the error information of errorID=900481b5-eeef-45de-9f2e-72a77c8a4382, timestamp=2017-02-13T11:29:06.311+0100, and the version information from the current screen) if the issue keeps occurring.

Environment

Employee Central

Reproducing the Issue

Step:

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

An application error occurred. Please try again later, or notify support (with the error information of errorID=65457f3b-384f-42b2-925d-a683903b2b33, timestamp=2017-02-13T14:49:28.484+0100, and the version information from the current screen) if the issue keeps occurring.

 

1generate.png

 

 

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.

2generate.png

Resolution

 

Step 1: Create a New Document

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

Example:

3generate.png

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

4generate.png

Test

 Result: No Error Message

5generate.png

 

Keywords

  Document Generate Generate and Email  Splunk Result: 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

Product

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