尝试将二进制文件部署到已经存储了其他二进制文件的位置 [英] Attempting to deploy a binary to a location where a different binary is already stored

查看:135
本文介绍了尝试将二进制文件部署到已经存储了其他二进制文件的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从tridio 2009发布页面时,出现以下错误:

When I am publishing my page from tridio 2009, I am getting the error below:

Destination with name 'FTP=[Host=servername, Location=\RET, Password=******, Port=21, UserName=retftp]' reported the following failure:
A processing error occurred processing a transport package Attempting to deploy a binary [Binary id=tcm:553-974947-16 variantId= sg= path=/Images/image_thumbnail01.jpg] to a location where a different binary is already stored Existing binary: tcd:pub[553]/binarymeta[974950]

下面是我的代码段

Component bigImageComp = th.GetComponentValue("bigimage", imageMetaFields);
string bigImagefileName = string.Empty;
string bigImagePath = string.Empty;
bigImagefileName = bigImageComp.BinaryContent.Filename;
bigImagePath = m_Engine.AddBinary(bigImageComp.Id, TcmUri.UriNull, null, bigImageComp.BinaryContent.GetByteArray(), Path.GetFileName(bigImagefileName));
imageBigNode.InnerText = bigImagePath;

请提出建议

推荐答案

添加二进制文件时,必须确保文件及其元数据是唯一的.如果是其中一个值,例如文件名似乎相同,但其余元数据不匹配,则部署将失败.

When adding binaries you must ensure that the file and it's metadata is unique. If one of the values e.g. the filename appears to be the same but the rest of the metadata does not match, then deployment will fail.

在给定的示例中(如Nuno所指出的),二进制文件910试图在二进制文件703上进行部署.文件名相同,但是二进制文件被标识为不相同(如果ID与同一出版物不同) ).对于此示例,您将需要重命名二进制文件之一(文件本身或更改路径),然后一切都会好起来.

In the given example (as Nuno points out) the binary 910 is trying to deploy over binary 703. The filename is the same but the binary is identified to be not the same (in the case a different ID from the same publication). For this example you will need to rename one of the binaries (either the file itself or change the path) and everything will be fine.

其他情况可能是使用来自两个不同模板的同一图像,并且将模板ID用作变量ID.如果是这种情况,则是同一张图片,但variant ID检查失败,以便避免覆盖同一张图片,而部署程序会使它失败.

Other scenarios can be that the same image is used from two different templates and the template id is used as the varient ID. If this is the case it is the same image BUT the varient ID check fails so to avoid overwriting the same image the deployer fails it.

通常取消发布可以提供帮助,但是,只有在删除所有对图像的引用后,图像才会被删除.因此,如果从多个地方使用它,则会有更多开放引用.

Often unpublishing can help, however, the image is only removed when ALL references to it are removed. So if it is used from more than one place there are more open references.

这是来自部署者的逻辑保护.您不希望使用错误的图像来替换另一个图像,或者破坏布局或可能将内容更改为另一个会议(例如广告横幅).

This is logical protection from the deployer. You would not want the wrong image replacing another and either upsetting the layout or potentially changing the content to another meeting (think advertising banner).

这是上述问题的实际原因和原因(从论坛获得的内容)

This is actual cause and reason for above problem (Something got from forum)

这篇关于尝试将二进制文件部署到已经存储了其他二进制文件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆