What I’m trying to do:
Hi everyone. I am trying to automate a data processing function for a client using Anvil. What I’ve tried and what’s not working:
I have been using the server module in Anvil to do so. I have been implementing the below code to write the data to a data table which worked in the past, but now throws this error:
Server code exited unexpectedly: 0997ca13dc
The code at the end of the error changes every time. I have included the lines of code that the error seems to originate from. Thanks in advance!
Code Sample:
for d in df_new.to_dict(orient='records'):
app_tables.my_table.add_row(**d)
Even if d had a fully-descriptive name, its value might disagree! And that disagreement could be the root of the problem.
You should be able to print it by inserting the print call between the two lines you’ve shown.
d might just contain something unexpected, which may be causing the problem. To determine whether that is, indeed the case, printing d, before it is used, is probably your best bet.
My suggestion wasn’t intended to eliminate the error. It was intended to show you how you could print(d), which might illuminate the circumstances of the error.
Yes, I understood the goal, thank you. It just didn’t print anything providing no further detail on why the error occurs. I should have been more clear in my response.
This suggests that the error occurs before the call to print. It might be useful to recheck any assumptions about where the error is occurring.
However, given the nature of the error, it is probably best to email support about it. There is very little that volunteer users like me can do about an internal server error!