Question

I am trying to update a component using Tridion Core Services. This is how my method looks like:

public ComponentData Update(ComponentData component)
        {            
            return _session.Client.Update(component, new ReadOptions()) as ComponentData;
        }

However when I run it I get the following error:

It is not possible to check-out a shared item

I tried checking in the component before updating but got the same error again. Can you give me any tips on what I am doing wrong in this case?

Was it helpful?

Solution

You are trying to update a shared item in a child Publication. That is not allowed.

If your intention was to only modify the item in the current Publication and all child Publications in it is, you should call Localize first.

If you instead intended to update the Component everywhere, you should use the version of the Component URI from the parent Publication where the item was created.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top