Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

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

@rfc2822

Description

@rfc2822

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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions