NotFoundError on addrow of a media object?

What I’m trying to do:
I have this line of code:
lambda: pdf_upload_view.add_row(temp_pdf=pdf_file)

I have seen this error a few times on this line of code.

Here’s the stack trace:

at anvil-services/anvil/tables/v2/_table.py, line 88
called from Main, line 505
called from Globals, line 301
called from Globals, line 301
called from Main, line 504
called from Main, line 504
called from Main, line 504
called from Edit_LCs, line 1405

Here’s the most recent session on which it happened:

  • 2QFTGF675TL52HFYJOSNDIRAZIDVMZ6W

Any ideas? :slight_smile:

Is pdf_file an anvil Media object of some sort?

Also, could you change it from a lambda to a full function for a better, clearer trace?

pdf_file is the element of a fileloader upload.

I need the lambda funciton in order to wrap it in an offline function wrapper that retries if the app is offline. The error here happened 4 times and people with bad internet trying to upload pdfs is happening much more often, so I would rather not switch that out :S