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)
Unable to update metadata using metadata group
rabs
This morning I have been having trouble updating metadata via the following code;
'copy metaData from placeHolder asset
Dim metaData As MBPSCRIPTMODEL2Lib.MBObjectCollection = placeHolderAsset.GroupMetaData(copyMetaDataGroup.Identifier)
'update asset with metaData copied above
asset.ReviseMetaData(metaData)
I am getting the following error exception "The user is not authorized for the action or access to the object" on ReviseMetaData.
This was working until this morning.
I am am however able to add individual metaData to assets.
Find more posts tagged with
Comments
msrinivas
What UID are you using to authenticate? Pro'ly permissions got changed in the folder that this asset resides in. Are you checking for permissions in your code before you do a revise/update metadata?
HTH
rabs
I have resolved this issue now.
msrinivas
Can you please post back how you resolved it?
rabs
the mistake I was making was adding the metaData "Name" to the copyMetaDataGroup group. Apparently one cannot update the Name metadata.
lyman
Let me add a quick explanation of why name isn't actually metadata. When you create a reference to an asset in MediaBin they share the underlying file including all revisions and all metadata (i.e., a change in one affects all the other references just like a unix "hard link" ). References in MediaBin are displayed in a similar manner to Windows shortcuts, but unlike Windows shortcuts (and unix symbolic links) a reference can never be dangling (i.e., deleting the underlying asset removes all references).
Okay, references share all metadata bt they can have different names! Hence names cannot really be metadata.
Cheers,
Lyman Hurd