[FIXED] Error when loading form - UnboundLocalError: local variable '_anvil_component'

Hi,

Suddenly all of my apps get an error like this when loading a form:

UnboundLocalError: local variable ‘_anvil_component’ referenced before assignment. Did you initialise all data binding sources before initialising this component?

  • Error bindingtag of ExpenseReport.ExpenseRowtoself.item.date.strftime("%d.%m.%Y"):
    local variable '_anvil_component' referenced before assignment

I think it has something to do with data bindings. I have not changed any of the code and it used to work before.

I am on a dedicated server. Has anyone else had this problem? Is there a quick fix? I have tried to contact support.

We’ve replied to @jorn by email, just confirming for the public – this was specific to his account, and is now fixed!

2 Likes