我正在使用Sitecore 8.0 rev 150621,我在日志中收到以下错误消息。
MessageTaskRunner worker thread 9 05:07:03错误EmailCampaign:无法发送'订阅通知' to' xdb:14c0c3e8-afd6-4344-98ab-5b86dcb4dd30'。
在新鲜的日志中,我也偶然发现了这个错误。我认为Sitecore尝试向订阅者发送订阅电子邮件:14c0c3e8-afd6-4344-98ab-5b86dcb4dd30
。
有没有人知道如何在Sitecore xDB上找到这个用户? 我尝试使用以下查询在Analytics mongoDB数据库中找到它:
db.Contacts.find({'_id' : '14c0c3e8-afd6-4344-98ab-5b86dcb4dd30'})
但我无法找到任何结果。 我做得对吗?或者我在查看错误的数据库表或字段?
请就此向我提出建议。
感谢。
更新
详细错误:
MessageTaskRunner worker thread 3 12:45:46 ERROR EmailCampaign: Failed to send 'Subscription Notification' to 'xdb:14c0c3e8-afd6-4344-98ab-5b86dcb4dd30'.
MessageTaskRunner worker thread 3 12:45:46 ERROR EmailCampaign: Message sending error: System.InvalidOperationException: Custom Data does not contain specified key.
at Sitecore.Analytics.Automation.Data.AutomationStateContext.UpdateCustomData(String keyName, Object value)
at Sitecore.Modules.EmailCampaign.Core.Gateways.DefaultAnalyticsGateway.EnrollOrUpdateContact(Contact contact, Guid planId, Guid stateId, EcmCustomValues customValues, String[] validStates)
at Sitecore.Modules.EmailCampaign.Core.Gateways.DefaultAnalyticsGateway.EnrollOrUpdateContact(Guid contactId, Guid planId, Guid automationStateId, EcmCustomValues customValues, String[] validStates)
at Sitecore.Modules.EmailCampaign.Core.Analytics.AutomationStatesManager.EnrollOrUpdateContact(Guid contactId, Guid planId, String stateName, EcmCustomValues customValues, String[] validStates)
at Sitecore.Modules.EmailCampaign.Core.Dispatch.DispatchManager.EnrollOrUpdateContact(Guid contactId, DispatchQueueItem dispatchQueueItem, Guid planId, String stateName, EcmCustomValues customValues)
at Sitecore.Modules.EmailCampaign.Core.Dispatch.DispatchTask.OnSendToNextRecipient()
答案 0 :(得分:1)
您不能将<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<div class="row">
<div class="col-sm-6">
<div class="panel-group" id="LHS">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a id="L1" class="collapsed collapse-link-1" data-toggle="collapse" data-parent="#" href="#collapseOne_L">
LHS1
</a>
</h4>
</div><!--/.panel-heading -->
<div id="collapseOne_L" class="panel-collapse collapseOne collapse">
<div class="panel-body">
Welcome LHS1
</div><!--/.panel-body -->
</div><!--/.panel-collapse -->
</div><!-- /.panel -->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a id="L2" class="collapsed collapse-link-2" data-toggle="collapse" data-parent="#" href="#collapseTwo_L">
LHS2
</a>
</h4>
</div><!--/.panel-heading -->
<div id="collapseTwo_L" class="panel-collapse collapseTwo collapse">
<div class="panel-body">
Welcome LHS2
</div><!--/.panel-body -->
</div><!--/.panel-collapse -->
</div><!-- /.panel -->
</div>
</div>
<div class="col-sm-6">
<div class="panel-group" id="RHS">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a id="L1" class="collapsed collapse-link-1" data-toggle="collapse" data-parent="#" href="#collapseOne_R">
RHS1
</a>
</h4>
</div><!--/.panel-heading -->
<div id="collapseOne_R" class="panel-collapse collapseOne collapse">
<div class="panel-body">
Welcome RHS1
</div><!--/.panel-body -->
</div><!--/.panel-collapse -->
</div><!-- /.panel -->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a id="L2" class="collapsed collapse-link-2" data-toggle="collapse" data-parent="#" href="#collapseTwo_R">
RHS2
</a>
</h4>
</div><!--/.panel-heading -->
<div id="collapseTwo_R" class="panel-collapse collapseTwo collapse">
<div class="panel-body">
Welcome RHS2
</div><!--/.panel-body -->
</div><!--/.panel-collapse -->
</div><!-- /.panel -->
</div>
</div>
作为字符串进行查询,因为它们以特殊的二进制格式存储。转换由C#驱动程序处理。有几种方法可以从mongo shell查询GUID。请看一下这些StackOverflow答案:
关于您收到的错误, 是一个异常,记录了实际发生的更多详细信息。
答案 1 :(得分:0)
请检查您的联系人列表,我认为必须有一些不正确的信息。您是否通过csv文件导入了联系人列表?检查数据的正确性。同样的问题发生在我身上,我花了很长时间才弄清楚我的联系人列表的问题。