积极答复者
CRM邮件问题

问题
-
小弟遇到两个问题,请教一下高手:
1.crm邮件在公司内部发送时正常,但是如果外发(如:163,136)时,主题是中文的话,发出去是“?”,邮件内容正文是中文显示正常
2.在新建工作流中如果有发送邮件的操作时,总是发布不了,提示:“创建工作流程时出错,请尝试从新保存工作流程”trace如下:
at CrmExceptionHandler.Handle(Stream to, Stream from, Exception exception)
at CompositeSoapExtensionExceptionHandler.Handle(Stream to, Stream from, Exception exception)
at CrmAuthenticationSoapExtensionBase.ProcessMessage(SoapMessage message)
at SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException)
at SoapServerProtocol.WriteException(Exception e, Stream outputStream)
at WebServiceHandler.WriteException(Exception e)
at WebServiceHandler.Invoke()
at WebServiceHandler.CoreProcessRequest()
at SyncSessionlessHandler.ProcessRequest(HttpContext context)
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at ApplicationStepManager.ResumeSteps(Exception error)
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>CrmSoapExtension detected CrmException:
System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> Microsoft.Crm.CrmException: The specified user is either disabled or is not a member of any business unit.
在 Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckDisabledStatus(IUser user, IOrganizationContext context)
在 Microsoft.Crm.BusinessEntities.SecurityLibrary.VerifyUser(Guid user, ExecutionContext context)
在 Microsoft.Crm.BusinessEntities.ExecutionContext.SetCaller(Guid callerId, Boolean setCallerLanguage)
在 Microsoft.Crm.BusinessEntities.ExecutionContext.OnBeginRequest(Guid userId, Boolean startTransaction, IsolationLevel isolationLevel, String methodName, ServiceMethodType methodType, OperationContext operationContext, String crmMethodName, CallerOriginToken originToken)
在 Microsoft.Crm.BusinessEntities.ExecutionContext.OnBeginRequest(Guid userId, Boolean startTransaction, IsolationLevel isolationLevel, SoapContext soapContext, OperationContext operationContext, CallerOriginToken originToken)
在 Microsoft.Crm.BusinessEntities.ExecutionContext.OnBeginRequest(Guid userId, Boolean startTransaction, SoapContext soapContext, OperationContext operationContext, CallerOriginToken originToken)
在 Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
在 Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
在 Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
在 Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
在 Microsoft.Crm.Sdk.Crm2007.CrmService.Execute(Request request)
--- 内部异常堆栈跟踪的结尾 ---
at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
at CrmException..ctor(Int32 errorCode, Object[] arguments)
at SecurityLibrary.CheckDisabledStatus(IUser user, IOrganizationContext context)
at SecurityLibrary.VerifyUser(Guid user, ExecutionContext context)
at ExecutionContext.SetCaller(Guid callerId, Boolean setCallerLanguage)
at ExecutionContext.OnBeginRequest(Guid userId, Boolean startTransaction, IsolationLevel isolationLevel, String methodName, ServiceMethodType methodType, OperationContext operationContext, String crmMethodName, CallerOriginToken originToken)
at ExecutionContext.OnBeginRequest(Guid userId, Boolean startTransaction, IsolationLevel isolationLevel, SoapContext soapContext, OperationContext operationContext, CallerOriginToken originToken)
at ExecutionContext.OnBeginRequest(Guid userId, Boolean startTransaction, SoapContext soapContext, OperationContext operationContext, CallerOriginToken originToken)
at ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at CrmService.Execute(Request request)
at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at LogicalMethodInfo.Invoke(Object target, Object[] values)
at WebServiceHandler.Invoke()
at WebServiceHandler.CoreProcessRequest()
at SyncSessionlessHandler.ProcessRequest(HttpContext context)
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at ApplicationStepManager.ResumeSteps(Exception error)
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Crm Exception: Message: The specified user is either disabled or is not a member of any business unit., ErrorCode: -2147220955
我是用管理员的用户发布的。
答案
-
看了你的问题,建议你做如下的测试,并把结果反馈回来!
1、用打开CRM的那个IE,打开exchane的OWA,试发送与上面相同内容的邮件,查看163与126收到的邮件是否存在同样的乱码问题。
2、是否所有的工作流都无法创建和发布?你可以测试一下做一个简单的工作流,看发送给管理员的邮件是否能正常发布?
==您的问题描述得更详细,我们的答复将更及时。==- 已标记为答案 darrenliuMicrosoft employee, Moderator 2009年6月3日 19:38
-
你查看下 此用户 是否在 UserGroup 这个组里面 (在你的域中)
- 已标记为答案 darrenliuMicrosoft employee, Moderator 2009年6月3日 19:38
-
你第二个问题, 你使用工作流发 Email 的那个 Contact 是不是 disabled 了。
"The specified user is either disabled or is not a member of any business unit." 这个错误的提示可能也有错误了。 有时侯所指的是那个被发 Email 的 Contact 或 Account Record。
Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com- 已标记为答案 darrenliuMicrosoft employee, Moderator 2009年6月3日 19:38
全部回复
-
看了你的问题,建议你做如下的测试,并把结果反馈回来!
1、用打开CRM的那个IE,打开exchane的OWA,试发送与上面相同内容的邮件,查看163与126收到的邮件是否存在同样的乱码问题。
2、是否所有的工作流都无法创建和发布?你可以测试一下做一个简单的工作流,看发送给管理员的邮件是否能正常发布?
==您的问题描述得更详细,我们的答复将更及时。==- 已标记为答案 darrenliuMicrosoft employee, Moderator 2009年6月3日 19:38
-
你查看下 此用户 是否在 UserGroup 这个组里面 (在你的域中)
- 已标记为答案 darrenliuMicrosoft employee, Moderator 2009年6月3日 19:38
-
你第二个问题, 你使用工作流发 Email 的那个 Contact 是不是 disabled 了。
"The specified user is either disabled or is not a member of any business unit." 这个错误的提示可能也有错误了。 有时侯所指的是那个被发 Email 的 Contact 或 Account Record。
Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com- 已标记为答案 darrenliuMicrosoft employee, Moderator 2009年6月3日 19:38