# Cannot print business data into gxlog\_framework.txt during error handling

**URL:** <https://techcommunity.softwareag.com/t/cannot-print-business-data-into-gxlog-framework-txt-during-error-handling/281127>\
**Category:** Forum\
**Tags:** ApplinX\
**Created:** [July 17, 2023, 6:36pm UTC](https://techcommunity.softwareag.com/t/cannot-print-business-data-into-gxlog-framework-txt-during-error-handling/281127 "2023-07-17T18:36:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonard.solomyak](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/leonard.solomyak/32/18779_2.png) [@leonard.solomyak](https://techcommunity.softwareag.com/u/leonard.solomyak)\
**Post date:** [July 17, 2023, 6:36pm UTC](https://techcommunity.softwareag.com/t/cannot-print-business-data-into-gxlog-framework-txt-during-error-handling/281127/1 "2023-07-17T18:36:09Z")

</div>

#### _ **Product/components** used and **version/fix** level:_

ApplinX 10.11.1033

#### _Detailed explanation of the problem:_

In our setup, ApplinX sessions are initiated by a technical user, followed by business users who sign into the application through our proprietary security framework.

One issue we’ve encountered is our inability to update _gx content_ using business user details, thereby resulting in the business username not being reflected as ‘_Host User Name_’ in the ApplinX Administrator.  
As a workaround, we developed a custom application that logs sign in/out activities into _gxlog\_framework.txt_.  
Although this functions well for sign in/out operations, it encounters issues when the _HttpSession_ (where the data is stored) is invalidated in _gx\_onLoad_ in _error_ class due to an error.  
Such invalidation **also** happens in the _gx\_handleSessionError_ method within the _GXBasicContext_ class. We store the business username in the HTTP session using _gx\_postConnect_ method of _UserFrameworkEvents_ class.

`Is there any way to transmit the collected during the session data to the above mentioned error handling methods` ?

#### _Error messages / **full error** message screenshot / **log** file:_

> Business data are printed as **null**

#### _Question related to a **free trial** , or to a **production (customer)** instance?_

licensed for WEB

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [January 13, 2024, 6:36pm UTC](https://techcommunity.softwareag.com/t/cannot-print-business-data-into-gxlog-framework-txt-during-error-handling/281127/2 "2024-01-13T18:36:20Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
