I have a requirement to allow the user to export video from the Milestone Mobile SDK (Milestone 2024 R1), But as direct video export function not longer available on the latest SDK I have followed the StartInvestigationExport function by creating an Investigation.
But unfortunately I’m getting the “NotAllowedInThisState” error message once we called the above mention function. I have changed the Investigation state to “Completed” as well but no success.
Is there any reason for that error?
Hello It seems like this could be a few things:
- make sure your management client is a configured correctly and investigations is enabled try to export from a official client Mobile/Web and see if it works if not this is likely the case or a license issue.
- Secondly this could be caused by the session is not established correctly by Connect + Login, or the session itself has expired no LiveMessage to the system.
Here is a similiar case with a sample code on how to do the export via C# code
https://developer.milestonesys.com/s/question/0D7bH000000kRV3SAM/detail?fromEmail=1&s1oid=00D200000008Uid&s1nid=0DB0O000000Kzmh&s1uid=0053X00000CF7yb&s1ext=0&emkind=chatterCommentNotification&emtm=1715771507649
Thanks for the reply and I’ll have enabled the above configuration and it started working, but unfortunately I’m getting that error time to time.
Sometimes on the first attempt it get failed and on second attempt it started to process. Anything that we can do on this.
Is this can be an issue with the Milestone Mobile SDK that we are using.? I’m using the 2023 R2 to connect to the 2024 R1 version.
Hello we would strongly recommend to update to matching SDK version as it’s the only one we support.
but reason for that behaviour you experience could be the following
- The admin plugin in the mos requires 20-30 seconds to load all the configurations
- Session is not yet intialized
- Session expired before the export is intiatied or while it’s exporting try increase the timeout period in the management client and see if the issue persists
I have updated the SDK to match the version and also increase the timeout period in the management client.
After that also the issue was there.
Then I have realized that once the investigation is created it takes bit of time to get it properly saved, so had to check the status Progress of the saving and after it gets save got the export id and it worked fine.
Thanks for the support.