Greetings,
I am trying to revise an existing asset using the following code:
Set oAsset = mbSession.GetAsset(sMBID)
Set oTask = mbSession.GetTask("{1ECCFAEA-5582-412A-A826-763AAF1E0A3F}")
Set oRunTask = oTask.CreateRunTask
sJobID = oAsset.ReviseFile(sUNCFileName, oRunTask)
where sMBID is a valid asset identifier and sUNCFileName is a valid UNC path to the file I want to revise the asset with.
I am getting the following error:
MBPScriptModel.MBSession error '80040431'
The attempted operation is not allowed on this item.
/replacePhoto.asp, line 111
where 111 is the oAsset.ReviseFile line.
Any suggestions are greatly appreciated.
War-N