Hi
For automation using Fluent, I used journal recording in Workbench. However, the mesh cannot be updated and passed into FLUENT:

The main part of the code reads:
mesh1.Edit()
mesh1.SendCommand(Language = "Python", Command = """
Model.UpdateGeometryFromSource()
mesh_14 = Model.Mesh
mesh_14.GenerateMesh()
""")
mesh1.Update(AllDependencies=True)
When I omit the last line, everything works fine. But when it is included, it causes this error:

Why is it that the "update" should be attributed and the WB-recorded script cannot do this? What should I do?
Any help would be greatly appreciated.
Best