Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Too many content provider operations between yield points" when inserting a task with 500+ alarms #186

Closed
rfc2822 opened this issue Nov 22, 2024 · 0 comments · Fixed by #188
Assignees
Labels
bug Something isn't working

Comments

@rfc2822
Copy link
Member

rfc2822 commented Nov 22, 2024

When a tasks.org/OpenTasks task with more than 500 alarms is inserted, it fails with

at.bitfire.ical4android.CalendarStorageException: Couldn't apply batch operation
	at at.bitfire.ical4android.BatchOperation.runBatch(BatchOperation.kt:161)
	at at.bitfire.ical4android.BatchOperation.commit(BatchOperation.kt:122)
	at at.bitfire.ical4android.DmfsTask.add(DmfsTask.kt:44)
…
Caused by: android.content.OperationApplicationException: Too many content provider operations between yield points. The maximum number of operations per yield point is 500
	at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:163)
	at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:637)
	at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:574)
@rfc2822 rfc2822 added the bug Something isn't working label Nov 22, 2024
@rfc2822 rfc2822 self-assigned this Nov 22, 2024
@rfc2822 rfc2822 linked a pull request Nov 22, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in DAVx⁵ Releases Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant