Exception: Complication record for given index doesn't exist.

So, when I'm updating a complication with updateComplication(), I'm having this error: Exception: Complication record for given index doesn't exist.

And this while the id matches my id in the resources. Any idea what this could be about?