You are not authorized to do export for one or more of the provided devices

I have a favor to ask

bool isStarted = false;

_cameraItem = new Item();

_cameraItem.Name = m_strCameraName;

List audioSources = new List();

mExporter = new VideoOS.Platform.Data.MKVExporter() { Filename = “fffffffffffff” };

mExporter.Init();

mExporter.Path = Path.Combine( m_strSaveFolder);

mExporter.CameraList = new List() { _cameraItem };

mExporter.AudioList = audioSources;

DateTime dateStart = DateTime.Parse(m_strStartTime);

DateTime dateEnd = DateTime.Parse(m_strEndTime);

isStarted = mExporter.StartExport(dateStart, dateEnd);

mExporter.StartExport In this code

A VideoOS.Platform.NotAuthorizedMIPException occurs.

Additional Information : You are not authorized to do export for one or more of the provided devices. the message came out.

All camera information connected to the MIP can be imported

Problems When Running Export

Is there a problem with the above code?

Is this standalone or plugin integration?

Does the Export Sample work for you or give the same issue?

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.

metaAfter 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