Conversion of complex ufl.algebra to fem.function

We would need a code that reproduces the error, as the error message is quite general and hard to debug without a minimal example.
I would suggest start having a look at: Interpolate expression with complex litteral - #4 by dokken