You are viewing limited content. For full access, please sign in.

Question

Question

LFF9904-AuditTrailUnableToRecordEvent

asked on October 8

I have seen this in other systems before, and I am now seeing it in my own system. When trying to access Forms I am taken to an error page. When looking in the Event Viewer in the Admin log for Forms I am seeing the following 2 errors:

Log Name:      Laserfiche-Forms-App/Admin
Source:        Laserfiche-Forms-App
Date:          10/8/2025 7:00:52 AM
Event ID:      10502
Task Category: UnexpectedErrorErrorAdmin
Level:         Error
Keywords:      Session0,Session1,Session2,Session3
User:          XXXX
Computer:      XXXX
Description:
An unexpected error has occurred. [LFF502-UnexpectedError]

Details:
URL: 
Error: UnexpectedError
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: XXXX
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Business Process Name: 

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]


Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
   at E_Forms.MvcApplication.WSFederationAuthenticationModule_SignedIn(Object sender, EventArgs e)


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Laserfiche-Forms-App" Guid="{98141CA4-660B-51C6-66B4-EC37F5B2FD87}" />
    <EventID>10502</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>55032</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000f00000000000</Keywords>
    <TimeCreated SystemTime="2025-10-08T14:00:52.326090300Z" />
    <EventRecordID>46588</EventRecordID>
    <Correlation />
    <Execution ProcessID="4592" ThreadID="5336" />
    <Channel>Laserfiche-Forms-App/Admin</Channel>
    <Computer>XXXX</Computer>
    <Security UserID="XXXX" />
  </System>
  <EventData>
    <Data Name="message">An unexpected error has occurred. [LFF502-UnexpectedError]

Details:
URL: 
Error: UnexpectedError
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: 10.96.8.10
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Business Process Name: 

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]


Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
   at E_Forms.MvcApplication.WSFederationAuthenticationModule_SignedIn(Object sender, EventArgs e)

</Data>
  </EventData>
</Event>

AND...
 

Log Name:      Laserfiche-Forms-App/Admin
Source:        Laserfiche-Forms-App
Date:          10/8/2025 7:00:52 AM
Event ID:      19904
Task Category: AuditTrailUnableToRecordEventErrorAdmin
Level:         Error
Keywords:      Session0,Session1,Session2,Session3
User:          XXXX
Computer:      XXXX
Description:
The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]

Details:
URL: 
Error: AuditTrailUnableToRecordEvent
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: XXXX
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]


Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
   at Forms.Auditing.Model.AuditEventType.IsEventRecordEnabled(FormsAuditEvent auditEvent, AuditEventSettings eventTypeSettings)
   at Forms.Auditing.Service.FormsAuditingService.RecordFailure[T](T auditEvent, FormsErrorCode errorCode)


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Laserfiche-Forms-App" Guid="{98141CA4-660B-51C6-66B4-EC37F5B2FD87}" />
    <EventID>19904</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>45630</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000f00000000000</Keywords>
    <TimeCreated SystemTime="2025-10-08T14:00:52.327218500Z" />
    <EventRecordID>46589</EventRecordID>
    <Correlation />
    <Execution ProcessID="4592" ThreadID="5336" />
    <Channel>Laserfiche-Forms-App/Admin</Channel>
    <Computer>XXXX</Computer>
    <Security UserID="XXXX" />
  </System>
  <EventData>
    <Data Name="message">The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]

Details:
URL: 
Error: AuditTrailUnableToRecordEvent
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: XXXX
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]


Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
   at Forms.Auditing.Model.AuditEventType.IsEventRecordEnabled(FormsAuditEvent auditEvent, AuditEventSettings eventTypeSettings)
   at Forms.Auditing.Service.FormsAuditingService.RecordFailure[T](T auditEvent, FormsErrorCode errorCode)

</Data>
  </EventData>
</Event>

Any idea what causes this error? I have tried to disable auditing in Forms, restart services, etc.

0 0

Replies

replied two days ago

Are you using LFDS authentication for login? It seems that the auditing service is unable to connect to the database. You might try recycling the Forms app pool in IIS.

0 0
replied two days ago

Yes, we are using LFDS authentication for login. The only way I've been able to get past it is to relicense Forms and restart IIS and the Routing service.

0 0
replied one day ago

A bug (#580021) has already been reported for this issue. Sorry for the inconvenience.

replied one day ago

A bug (#580021) has already been reported for this issue, and we will consider fixing it in a future release. Sorry for the inconvenience.

0 0
replied one day ago

Can you give any detail to what the bug is exactly?

0 0
replied one day ago

The database might have gone offline at some point (all active connections droped). Currently FormsAuditingService only build once on application start. So if the service could not connect to database on application start, it would never do it again. And this issue only occurs when using LFDS authentication 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.