I am trying to publish multimedia component in multiple structure groups using
engine.AddBinary(
engine.LocalizeUri(component.Id),
engine.LocalizeUri(template.Id),
engine.LocalizeUri(sg),
ms.ToArray(),
fileName
);
I have 2 multimedia components in one component. I want to publish those 2 multimedia components in different structure groups. 2 multimedia components has same image\css\pdf But its getting following error.
Phase:Deployment processing phase failed,Binary variant[Binary id=tcm:200-26587-16] variantId=tcm:200-26678-32 sg=tcm:200-17849-4 path="" is published into multiple structure groups(tcm:200-17890-4),which is not allowed,Binary variant[Binary id=tcm:200-26587-16] variantId=tcm:200-26678-32 sg=tcm:200-17849-4 path="" is published into multiple structure groups(tcm:200-17890-4), which is not allowed
Note:Multimedia components in my case include images, css, js, pdf etc