Home
TeamSite
ReviseAssetMetadata - MBException: ERROR: Invalid
Konidala
Hi,
I am trying to edit/add new metadata for an asset.
Dim assetID As String =mMediaBinServer.GetAssetID("abc.doc", Nothing)
Dim metadataArray(0) As MBMetadata
metadataArray(0) = New MBMetadata
metadataArray(0).mName = "Author"
metadataArray(0).mID = "{E94A2180-582A-11D4-8104-0050DA27F4FC}"
metadataArray(0).mValue = "ABC"
MediaBinServer.ReviseAssetMetadata(assetID, metadataArray)
I am getting the following exception "Server was unable to process request. --> MBException: ERROR: Invalid operation. (0x8004045A)"
Any help would be appreciated.
Thanks
Find more posts tagged with
Comments
msnider
That usually indicative of something wrong with the asset in the MediaBin server. Is there anything written in the server logs that may indicate an error?
Konidala
I think it's something wrong with the asset. The code works well with the other assets. I don't see any error written to the server logs. Thanks a lot
lyman
I do not know if it is the case here, but the majority of places where the server generates this error are when an operation is attempted either on a "pending" image (otherwise known as a "ghost", a stand in inserted while a job is queued before the image data has been processed), or when an operation is attempted on an image that has been deleted.
Hope this helps,
Lyman Hurd
MediaBin Server Team
MediaBin Server Team
Interwoven, Inc.
Migrateduser
I believe that you should replace your code:
metadataArray(0) = New MBMetadata
metadataArray(0).mName = "Author"
metadataArray(0).mID = "{E94A2180-582A-11D4-8104-0050DA27F4FC}"
metadataArray(0).mValue = "ABC"
With this
metadataArray(0) = objServer.GetMetadata("{E94A2180-582A-11D4-8104-0050DA27F4FC}")
metadataArray(0) .mValue = "ABC"
Where objServer is your MediaBinServer object
Folco Banfi