In the GEL log I see [#document: null]
search cancel

In the GEL log I see [#document: null]

book

Article ID: 193139

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

I am creating a custom GEL process, and in the GEL log I see [#document: null] 

Environment

Release : All Supported Clarity releases

Component : CA PPM XML OPEN GATEWAY (XOG)

Resolution

The custom process throws this document null message in the GEL LOG, and this is not an error, just an incorrect way it was parsed in the script.

It will happen if you're printing the gel log as a class not as text. To see the entry you must serialize or select as text using the GEL select tags, otherwise it's normal that it does not have the expected output.

Example how it can be done wrong: :

<gel:parse var="addResource">

<gel:log category="Test" level="info" message="${addResource}"></gel:log>

The message cannot be printed like this. You must use parsing to string to show the text in the gel:log.

 <gel:parse var="addResource">

<gel:set asString="true" select="$addResource" var="addResourceText"/>

<gel:log category="Test" level="info" message="${addResourceText}"></gel:log>