System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_InvalidExaminedPosition()

Hey Guys,

I have a Grid with a ChildGrid on one of my Pages.
When I add more than 3 Elements to the child grid and want to hit the save button, I'll get an error:
"System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_InvalidExaminedPosition()"

I don't even get the call to the controller, so maybe the problem is in a Syncfusion element?

Do you guys know something about this error?


Thanks for your help!

Best Regards :-)


3 Replies

SK Sujith Kumar Rajkumar Syncfusion Team January 5, 2022 11:55 AM UTC

Hi Christoph, 
 
Greetings from Syncfusion support. 
 
Before proceeding with the query please confirm us the following information to identify your exact problem case, 
 
  • Please confirm if you are using batch edit or any other edit mode in the Grid.
  • From the provided details we could understand that you have bound remote data to the child Grid. So please let us know which adaptor you have used for binding data to the child Grid.
  • Share us entire error message thrown on performing the mentioned action.
  • Syncfusion package version used.
 
Regards, 
Sujith R 



CH Chris January 6, 2022 11:29 AM UTC

Hello,

We are using the Syncfusion version 19.2.0.57.

Then we use the single edit mode with the Dialog edit

The adaptor is the default one.


Exact Error message:


System.InvalidOperationException: The examined position cannot be less than the previously examined position.

   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_InvalidExaminedPosition()

   at System.IO.Pipelines.Pipe.AdvanceReader(BufferSegment consumedSegment, Int32 consumedIndex, BufferSegment examinedSegment, Int32 examinedIndex)

   at System.IO.Pipelines.Pipe.AdvanceReader(SequencePosition& consumed, SequencePosition& examined)

   at System.IO.Pipelines.Pipe.DefaultPipeReader.AdvanceTo(SequencePosition consumed, SequencePosition examined)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2MessageBody.AdvanceTo(SequencePosition consumed, SequencePosition examined)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2MessageBody.AdvanceTo(SequencePosition consumed)

   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestPipeReader.AdvanceTo(SequencePosition consumed)

   at Microsoft.AspNetCore.WebUtilities.FormPipeReader.ReadFormAsync(CancellationToken cancellationToken)

   at Microsoft.AspNetCore.Http.Features.FormFeature.InnerReadFormAsync(CancellationToken cancellationToken)

   at Microsoft.AspNetCore.Mvc.ModelBinding.FormValueProviderFactory.AddValueProviderAsync(ValueProviderFactoryContext context)

   at Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider.CreateAsync(ActionContext actionContext, IList`1 factories)

   at Microsoft.AspNetCore.Mvc.ModelBinding.CompositeValueProvider.TryCreateAsync(ActionContext actionContext, IList`1 factories)

   at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)

   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)

   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)

   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)

   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)

   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)


I hope this information will help.

Thanks a lot.


Best Regards!



SK Sujith Kumar Rajkumar Syncfusion Team January 7, 2022 10:13 AM UTC

Hi Christoph,

Thanks for sharing the details.

By default adaptor we suspect that you are using local data binding for Grid. So we checked this case by preparing a similar Hierarchical Grid sample from our end but could not reproduce the problem as the data was added properly to the child grid. You can check the below sample for reference,


From the shared error message we suspect that this might be an application level problem and on checking further found the following general links where similar problem was discussed,


So we suggest you to check the above links and see if the problem is reproduced in other/new Core applications also. And if problem still persists with the new application, then please share us the following information to validate further,

  • Share us the Grid code file.
  • Let us know how you have referenced the script file for the EJ2 controls in your application.
  • If possible share us a simple sample to replication the problem or try reproducing it in the above shared sample. This would be helpful to identify your exact problem case and validate further based on that.

Regards,
Sujith R



Loader.
Up arrow icon