How can I solve 23 error code (Not allowed in this state)?

I use MIP SDK Mobile Protocols.

request :

<?xml version="1.0" encoding="utf-8"?>
            <Communication

                xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)"

                xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)">

                <ConnectionId>${params.ConnectionId}</ConnectionId>

                <Command SequenceId="97">

                    <Type>Request</Type>

                    <Name>StartInvestigationExport</Name>

                    <InputParams>

                        <Param Name="InvestigationId" Value="${InvestigationId}" />

                        <Param Name="ExportType" Value="Mkv" />                          

                    </InputParams>

                </Command>

            </Communication>

Response :

<?xml version="1.0" encoding="utf-8"?>43826af9-1823-485a-8046-5935aba8e5f1ResponseStartInvestigationExport**Error23**

Why was the error code(23) returned?

I’ll add a login response just in case you need it.

<?xml version="1.0" encoding="utf-8"?>43826af9-1823-485a-8046-5935aba8e5f1ResponseLogInOK

Hi Kim,

According to Login’s response, MKV export is currently disabled. That’s why you’re getting error code 23 (NotAllowedInThisState).

Please open Management Client, navigate to Mobile Server’s settings, Investigation tab and enable MKV exports.

Br,

Nikolay

Thank you Nikolay!

​I activated MKV format follwing your advice.

However, the error code is still 23.

When I checked the Management Client, It was not ready to export to MKV

​What’s the reason ? What should I change?

Hi again,

One other reason for getting error code 23 is that you’re trying to create export before the corresponding investigation was fully done.

Can you please confirm that your investigation is already in Saved state by the time you’re initiating the export?

Br,

Nikolay

Progress (first item) is already saved.

​The status (the second item) is in progress.

​And I confirmed that the investigation I requested was stored in the investigation folder.

I have another question

I updated the Windows server.

The mobile server log file is not saved after the update.

When I clicked the mobile server try con and open log folder,​

The following message was output.

“The mobile server service has not been initialized yet. Please try again later.”

Can you tell me why? ​

Hi Kim,

Please be aware that each forum thread should focus on a single problem, to avoid confusion.

Having said that, I’ll try to answer your second question… but I’m wrong, you’ll have to open another forum thread:

I believe after the upgrade, for some reason or another, Mobile Server (running as windows service) does not have proper rights to access Logs folder (e.g. [C:\ProgramData\Milestone\XProtect Mobile](file:C:/ProgramData/Milestone/XProtect%C2%A0Mobile) Server\Logs) or some of its parent folders. Please check which windows account is used by the Mobile Server and make sure it has proper rights for Logs folder and it’s parent folders.

Just ask one question on one forum. I will keep that in mind .

As you said, It was a matter of account​ rights.

Thank you. ​

Regarding error code 23, can you provide Wireshark capture, so I can see all of your requests and server’s responses?

Do other exports work fine (XProtect and AVI)? Did you managed to create exports from the Web Client?

I solved it by referring to XProtect Web Client !

Thank you for answering :-)​