Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/System setup and customization/Vault configuration and customization/M-Files Compliance Kit

M-Files Compliance Kit Log Exporter Maximum Data Size Error

Last updated on 30 December 2024

Admin
Event Log Exporter (Compliance Kit)

Overview

You may notice that your Log Exporter module may not be exporting logs and instead the following error is returned in your Server Event Log:

----

System.Runtime.InteropServices.COMException (0x80040001): Your event log request exceeds the maximum data size.

To get event log data, specify a smaller range of events.

 

CoVaultEventLogOperations.cpp, 457, Your event log request exceeds the maximum data size.

To get event log data, specify a smaller range of events. (0x8004097F)

CoRPCOverCOM.cpp, 3419, Your event log request exceeds the maximum data size.

To get event log data, specify a smaller range of events. (0x8004097F)

RPCEventsAdmin.cpp, 502, Your event log request exceeds the maximum data size.

To get event log data, specify a smaller range of events. (0x8004097F)

RPCEventsHelper.cpp, 6507, Your event log request exceeds the maximum data size.

To get event log data, specify a smaller range of events. (0x8004097F)

(M-Files <version> <timestamp>)

----

Solution

The error denotes that the event log request is too large, and thus the best way to ensure the logs are generated successfully is by reducing the "MaxToExportAtOnce" value in the Log Exporter configuration until the export process works. Alternatively, you may also try reducing the "MaxPerFolder" until the export process works.

Example

{

    "this-Comment": "M-Files Compliance Kit: Default empty configuration for Log Exporter",

    "Enabled": true,

    "EventCountToKeep": 6000000,

    "EventAgeToKeep": 525600,

    "ExportProviders": [

        {

            "ProviderType": "LocalFileExport",

            "LocalFileExport": {

                "LogPath": "E:\\log export",

                "MaxPerFolder": 100000 -> 50000

            },

            "arrayElementGuid": "3b0aa895-c89b-464d-86cc-81a838dd6621",

            "Enabled": true

        }

    ],

    "IntervalSeconds": 600,

    "IsMsmCompatible": true,

    "ConfigVersion": "2.0",

    "FailureMailUserGroup": "{8B320F0E-2981-4C7F-9407-11BA908DB753}",

    "MaxToClearAtOnce": 1500,

    "MaxToExportAtOnce": 1500, -> 750

    "MinCountToClear": 1500

}

 

Above, we have reduced the default values by half. You can try in different increments until the logs export without exceeding the limit.

Still need help?

On this page