TheSourceUK / tridion-2011-power-tools

Automatically exported from code.google.com/p/tridion-2011-power-tools
0 stars 0 forks source link

Uncaught exception for duplicate items #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run batch image uploader selecting a folder
2. Run batch image uploader again
3. Select a folder with already-loaded items

What is the expected output? What do you see instead?

Behavior could either mimic WebDav or upload multimedia behavior. Up to 
developer discretion.

* WebDav replaces existing multimedia component that has the same-named 
filename.
* Upload Multimedia creates a separate multimedia component and appends a 
number ("[1]") after the component title.

Error :

Name must be unique for items of type: Component within this Folder and its 
BluePrint context. Source or sources  of conflict: tcm:5-151.

Component: Tridion.ContentManager.CoreService
Errorcode: 809
User: NT AUTHORITY\NETWORK SERVICE

StackTrace Information Details:
   at Tridion.ContentManager.ContentManagement.RepositoryLocalObject.AssertNoUniquenessConflicts(IDictionary`2 propertiesToCheck)
   at Tridion.ContentManager.ContentManagement.RepositoryLocalObject.OnSaving(SaveEventArgs eventArgs)
   at Tridion.ContentManager.ContentManagement.VersionedItem.OnSaving(SaveEventArgs eventArgs)
   at Tridion.ContentManager.ContentManagement.Component.OnSaving(SaveEventArgs eventArgs)
   at Tridion.ContentManager.IdentifiableObject.Save(SaveEventArgs eventArgs)
   at Tridion.ContentManager.ContentManagement.VersionedItem.Save(Boolean checkInAfterSave)
   at Tridion.ContentManager.ContentManagement.VersionedItem.Save()
   at Tridion.ContentManager.CoreService.CoreServiceBase.Create(IdentifiableObjectData data, ReadOptions readBackOptions)
   at SyncInvokeCreate(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at Tridion.ContentManager.CoreService.TransactionSupportInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Original issue reported on code.google.com by reyes.al...@gmail.com on 23 Jun 2012 at 5:44

GoogleCodeExporter commented 8 years ago
Fixed this issue. Newly uploaded images with a name/title that already exists 
in the folder get a name/title with a number appended. E.g.: image [1], image 
[2], etc. 

Original comment by s990...@gmail.com on 24 Jun 2012 at 7:42