javascript - 客户关系管理 : Show all notes on the form instead of lazy-loading

标签 javascript dynamics-crm lazy-loading crm dynamics-crm-2016

默认情况下,Dynamics CRM 365 在实体表单的注释 block 上仅显示有限数量的注释。在我的例子中是 10 个音符。当用户向下滚动笔记时,其余笔记应该是“延迟加载”的。不知何故,这个功能被破坏了,笔记没有被加载。

enter image description here

控制台和服务器的事件日志中都没有有趣的内容。这完全是怪胎。

是否有任何选项可以同时加载所有笔记,就像在旧 CRM 2011 中一样?

或者也许任何人都可以建议如何调查这个问题?


更新: 刚刚在“警告”级别使用跟踪工具检查了这个问题,这是我尝试加载笔记时显示的内容:

[2017-07-06 08:39:43.344] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   39 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 055f8ace-5e77-4c01-b980-0e97088ed4aa |ActivityId: 055f8ace-5e77-4c01-b980-0e97088ed4aa | CrmHttpException..ctor  ilOffset = 0x22
    at CrmHttpException..ctor(HttpStatusCode statusCode, String message, Object[] args)  ilOffset = 0x22
    at CrmODataOptimisticConcurrencyHelper.HandleGetMatchETags(CrmODataExecutionContext context, Entity entity)  ilOffset = 0x129
    at CrmODataServiceDataProvider.RetrieveEntityWithRelatedRecords(CrmODataExecutionContext context, EntityReference primaryEntityReference, QueryExpression qe, RelationshipQueryCollection relatedEntitiesQuery)  ilOffset = 0x19
    at CrmODataServiceDataProvider.RetrieveEdmEntity(CrmODataExecutionContext context, String edmEntityName, String entityKeyValue, ODataQueryOptions queryOptions)  ilOffset = 0x2D
    at EntityController.GetEntity(String entityName, String key)  ilOffset = 0x32
    at   ilOffset = 0xFFFFFFFF
    at <>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)  ilOffset = 0x0
    at ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)  ilOffset = 0x34
    at <InvokeActionAsyncCore>d__0.MoveNext()  ilOffset = 0x52
    at AsyncTaskMethodBuilder`1.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken)  ilOffset = 0x35
    at ApiControllerActionInvoker.InvokeActionAsync(HttpActionContext actionContext, CancellationToken cancellationToken)  ilOffset = 0x3
    at <ExecuteAsync>d__2.MoveNext()  ilOffset = 0xD9
    at AsyncTaskMethodBuilder`1.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken)  ilOffset = 0x35
    at ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)  ilOffset = 0x138
    at <SendAsync>d__1.MoveNext()  ilOffset = 0x123
    at AsyncTaskMethodBuilder`1.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x3D
    at HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x3C
    at HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0xBF
    at DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x19
    at <SendAsync>d__0.MoveNext()  ilOffset = 0x17D
    at AsyncTaskMethodBuilder`1.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at CorsMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x3D
    at DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x19
    at <SendAsync>d__0.MoveNext()  ilOffset = 0x50
    at AsyncTaskMethodBuilder`1.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at CrmETagMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x3D
    at DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x19
    at <SendAsync>d__0.MoveNext()  ilOffset = 0xF
    at AsyncTaskMethodBuilder`1.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at CrmDelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x3D
    at DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x19
    at <SendAsync>d__0.MoveNext()  ilOffset = 0x11D
    at AsyncTaskMethodBuilder`1.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at HttpServer.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x3D
    at HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)  ilOffset = 0x3C
    at <ProcessRequestAsyncCore>d__0.MoveNext()  ilOffset = 0x96
    at AsyncTaskMethodBuilder.Start(TStateMachine& stateMachine)  ilOffset = 0x2C
    at HttpControllerHandler.ProcessRequestAsyncCore(HttpContextBase contextBase)  ilOffset = 0x2C
    at TaskAsyncHelper.BeginTask(Func`1 taskFunc, AsyncCallback callback, Object state)  ilOffset = 0xD
    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0xE6
    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x3C
    at PipelineStepManager.ResumeSteps(Exception error)  ilOffset = 0x27A
    at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)  ilOffset = 0x31
    at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)  ilOffset = 0xB0
    at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x131
    at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0
    at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF
    at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF
    at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x1E7
    at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0
>Crm Exception: Message: The requested record matches a specified If-None-Match version., ErrorCode: -2147088246
[2017-07-06 08:39:43.344] Process: w3wp |Organization:3eb43172-29f4-dd11-80b4-0015178dc928 |Thread:   39 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 055f8ace-5e77-4c01-b980-0e97088ed4aa |ActivityId: 055f8ace-5e77-4c01-b980-0e97088ed4aa | CrmODataUtilities.Trace  ilOffset = 0x24
>{"Error":{"InnerError":null,"Message":"CrmHttpException: The requested record matches a specified If-None-Match version."}}

最佳答案

@Dot_NETPro,问题解决了。

根在 Activity Feeds 系统 renderOlderPosts 函数中,因为我们在之前的更新包中禁用了它,因为它一直在页面上为所有用户引发空引用异常(由于 MS 错误) .该功能似乎还没有被 CRM 使用,但在下一个更新包中它开始呈现评论。此外,空引用异常现在已在最新的更新包中修复。

关于javascript - 客户关系管理 : Show all notes on the form instead of lazy-loading,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44911854/

相关文章:

javascript - 如何在不刷新的情况下编辑和删除MySQL数据库的记录?

javascript - 使用 google calendar api 连接到非用户日历

javascript - 在 phantomjs 中访问 iframe 的 contentDocument

java - 使用 Hibernate 延迟获取单列(类属性)

php - 缓慢的 WordPress 用户查询超过 7000 名用户

javascript - 如果是 Internet Explorer - 添加脚本

java - Android Microsoft dynamics CRM adal4j 登录问题

javascript - 如何将选项列表添加到自定义实体的案例表单中(注意 : replace the normal lookup field)?

azure - 在 Azure AD 中注册应用程序以访问 CDS Web API

jsf - 当实现延迟加载时,行选择在 primefaces (5.3) 数据表中不起作用,但在没有延迟加载的情况下也可以工作