Getting the following error on export of the video from a camera inspite of Admin user "You are not authorized to do export for one or more of the provided devices"

We have a component integration wherein we ask the user to login into the milestone server and we export the video using the MKVExporter or AVIExporter for a time range.

Out of the 4 cameras, for 1 i get the video feed, but for others i get the error: You are not authorized to do export for one or more of the provided devices

The installation is at the clients location, so i don’t have the direct access to the system, but we logged the camera properties and authorisation configuration for the cameras for which we were not able to export: In all the cases i see that the AVIExport, ExportDatabase, ExportJpeg properties are set to “Yes” . The logged in user is an Admin, so have full access to the system.

The user is able to export the video from Smart Client with the same login.

Can someone please help me what am i missing here?

Is it a basic user or a Windows/AD user that fails for you?

Can you please try the unmodified export sample and see if the unmodified sample works?

It’s a Windows/AD user. It’s at the client location, so will be difficult to ask them to install another application and try the export. Will try.

I have experienced the same issue and have managed to find out why this exception was thrown. I was having the error with both my code and the Export Sample when trying to export the camera’s audio.

“One or more of the provided devices**”** turned out to be a microphone associated to a camera and not a camera itself.

To get around the issue, I had to disable the “Metadata” device associated to the Hardware in the XProtect Management Client.

meta

After disabling this device, both my code and the Export Sample stopped throwing this exception. Notice that running the Export Sample without checking “export camera audio” will not throw the exception.

Hope this helps anyone stumbling upon the same issue!

Daniel,

Maestrovision