Last I checked, Anvil code is Python code .
Forum volunteers will need to know more, about your specific situation, before they can begin to guess where the problem lies.
Check out the “how to ask a good question” post for tips on how to help us help you.