Hi,

How do I extract and read the column of Operation Execution Log from our SQL database?

It seems to be a hexadecimal-encoded string that contains XML data?

by (2.6k points)

1 Answer

by (310k points)
+1 vote

Hello,

The Operation Execution Log column contains byte arrays. Each of them is a string in UTF-8 encoding. The string contains an XML representation of the execution log. Unfortunately, we do not have a script that extracts and formats the data.

by (2.6k points)
0

Hi,

I was able to convert the data into XML format.

Can you tell me, which values are possible for hresult and type and what they mean?

Right now I see mostly hresult=0 and type=2.

Example of converted data

<?xml version="1.0" encoding="utf-8"?>
<executionLog p1:type="ExecutionLogEntryCollection" ver="1.0" xmlns:p1="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://softerra.com/adaxes">
    <entries>
        <entry id="3051b16e-73ee-4696-bdc1-d27a7cc941b1" hresult="0" type="2">
            <message>startDateString = 2016-02-22</message>
        </entry>
        <entry id="ccc515c5-87f7-4751-a9fe-5de8fa65fee3" hresult="0" type="2">
            <message>startDate = 02/22/2016 00:00:00</message>
        </entry>
        <entry id="4731adca-772a-4914-b2c6-0850f453034c" hresult="0" type="2">
            <message>check = 2/22/2016 12:00:00 AM</message>
        </entry>
        <entry id="92b70a47-0104-4883-8a0e-27c067830a02" hresult="0" type="2">
            <message>check2 = 2016-02-22</message>
        </entry>
    </entries>
</executionLog>
by (310k points)
+1

Hello,

Items you are looking at are execution log entries. Hresult is a coded numerical value representing the COM error code of the operation. For the list of possible values, see https://adaxes.com/sdk/ADM_OPERATIONRESULT_ENUM. Possible entry types are present in the following article: https://adaxes.com/sdk/MessageType.

Related questions

Hello @All, I use external logging in MSSQL and now we have 29GB database size and i want to cleanup the logs older that 6 month. The biggest tables are: a) ... Operations2OperationTypes What can I do to cleanup the entries in the db? Thanks ;) Arne Tiedemann

asked May 24, 2016 by ATiedemann (360 points)
0 votes
1 answer

Hello again, I am planning the upgrade to 2013.2, but I would like to do it to a new server. The documentation is about using the same server (http://www.adaxes.com ... would like to have the current one migrated (SQL Settings). Thank you very much in advance

asked Nov 25, 2013 by Pierre (750 points)
0 votes
1 answer

Hi, can Adaxes support NoSQL as database for logging? Are there any plans to support other types of databases in future?

asked Jul 20 by wintec01 (2.6k points)
0 votes
1 answer

Hi team, Is there any possibility, or a planned feature, for better logging control? I would like to show only relevant, useful information in the execution log visible in the portal, but write more detailed/verbose logging into the database itself.

asked Jul 1 by wintec01 (2.6k points)
0 votes
1 answer

Hi, By chance I noticed a typo in one of the columns used by the logging database (2025.1 v3.17.23904.0). The column is called OpeartionState and I assume it should be OperationState. So the E and R are swapped.

asked Nov 19, 2025 by wintec01 (2.6k points)
0 votes
1 answer