# Regression in 5.3.1 - delete/insert gives "Sequence data has been disposed of" error

**URL:** <https://community.stardog.com/t/regression-in-5-3-1-delete-insert-gives-sequence-data-has-been-disposed-of-error/1114>\
**Category:** Bug\
**Created:** [June 28, 2018, 5:22pm UTC](https://community.stardog.com/t/regression-in-5-3-1-delete-insert-gives-sequence-data-has-been-disposed-of-error/1114 "2018-06-28T17:22:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rivettp](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rivettp](https://community.stardog.com/u/rivettp)\
**Post date:** [June 28, 2018, 5:22pm UTC](https://community.stardog.com/t/regression-in-5-3-1-delete-insert-gives-sequence-data-has-been-disposed-of-error/1114/1 "2018-06-28T17:22:36Z")

</div>

The SPARQL is as follows.

WITH repos:fibo  
DELETE {[https://spec.edmcouncil.org/fibo/ontology/BE/Corporations/Corporations/PrivatelyHeldCompany](https://spec.edmcouncil.org/fibo/ontology/BE/Corporations/Corporations/PrivatelyHeldCompany) rdfs:label ?v}  
INSERT {[https://spec.edmcouncil.org/fibo/ontology/BE/Corporations/Corporations/PrivatelyHeldCompany](https://spec.edmcouncil.org/fibo/ontology/BE/Corporations/Corporations/PrivatelyHeldCompany) rdfs:label "person held company"}  
WHERE { OPTIONAL {[https://spec.edmcouncil.org/fibo/ontology/BE/Corporations/Corporations/PrivatelyHeldCompany](https://spec.edmcouncil.org/fibo/ontology/BE/Corporations/Corporations/PrivatelyHeldCompany) rdfs:label ?v} }

This used to work at 5.2.2 but following our upgrade to 5.3.1 produces the following error (from stardog.log). Removing the DELETE or the INSERT works fine: it's the combination that is the problem.

ERROR 2018-06-28 12:57:30,464 [stardog-user-6] com.stardog.http.server.undertow.  
ErrorHandling:writeError(138): Unexpected error on the server  
com.complexible.stardog.plan.eval.operator.OperatorException: Sequence data has  
been disposed of  
at [com.complexible.stardog.plan.eval.operator.impl.ModifyOperatorImpl.co](http://com.complexible.stardog.plan.eval.operator.impl.ModifyOperatorImpl.co)  
mputeNext(ModifyOperatorImpl.java:161) ~[stardog-5.3.1.jar:?]  
at [com.complexible.stardog.plan.eval.operator.impl.ModifyOperatorImpl.co](http://com.complexible.stardog.plan.eval.operator.impl.ModifyOperatorImpl.co)  
mputeNext(ModifyOperatorImpl.java:71) ~[stardog-5.3.1.jar:?]  
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeN  
ext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [June 28, 2018, 5:23pm UTC](https://community.stardog.com/t/regression-in-5-3-1-delete-insert-gives-sequence-data-has-been-disposed-of-error/1114/2 "2018-06-28T17:23:32Z")

</div>

Hi Pete,

This problem was actually reported elsewhere a little while back and the fix should be in the next Stardog release!
