Failed to index file when creating a run on an existing thread id

We’re initializing the assistant, uploading the file as json, adding file id to the assistant and then finally creating thread and creating and running runs on that thread. On the first go, the thread and the run is created and executed successfully but on the subsequent creation of runs, it gives the error:

{ "error": { "message": "Failed to index file", "type": "invalid_request_error", "param": null, "code": null } }

Sometimes the subsequent run succeeds but most of the time it gives the above error.

1 Like