Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Updating Asset MetaData
LarryL
I'm trying to insert an asset into mediabin and update the metadata for the asset.
I'm using the "InsertAsset" and "ReviseAssetMetadata" methods in the MBPNetModel library to do this.
Both the InsertAsset and "ReviseAssetMetadata" work when executed separately, but when I run them in-line line I receive the the following error when I try to update the metadata
"MBException: The requested asset is unavailable. (0x80040500)"
My Code (VB.NET)
==============
' Define varaiables
Dim mbAssets(mdGroup.mMetadata.Length - 1) As MBMetadata
' Insert Asset
sAssetGUID = m_mbConnection.InsertAsset(p_AssetPath, p_AssetName, p_FolderGUID, mbTask, Nothing, 850, False)
' Populate mbAssets with metadata
m_mbConnection.ReviseAssetMetadata(sAssetGUID, mbAssets)
Any thoughts?
Thanks
Find more posts tagged with
Comments
LarryL
Nevermind. I thought the GUID "InsertAsset" was retuning was the AssetGUID, it's the JobID GUID (It's been a long day)
Thanks
msrinivas
Try creating a place holder asset, add metadata and then insert image.
HTH