The below error is shown when running a command in PyFluent, which was generated using the -topy Fluent option:
Error: api-execute-cmd: the object is not active
Error Object: "solution/report-definitions/expression"
Traceback (most recent call last):
File "C:\ansysdev\temp\pyfluent\settings_test\exhaust_manifold_tui_fltg_s1.py", line 40, in
solver.settings.solution.report_definitions.expression["mass-bal"] = {}
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\solver\flobject.py", line 1889, in setitem
self.flproxy.create(self.path, name)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\settings.py", line 124, in _fn
return fn(self, *args, **kwds)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\settings.py", line 215, in create
self._service_impl.create(request)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\settings.py", line 55, in create
return self.stub.Create(request, metadata=self.metadata)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\grpc_interceptor.py", line 216, in call
response, ignored_call = self._with_call(request,
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\grpc_interceptor.py", line 254, in _with_call
call = self._interceptor.intercept_unary_unary(continuation,
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\interceptors.py", line 122, in intercept_unary_unary
return self._intercept_call(continuation, client_call_details, request)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\interceptors.py", line 112, in _intercept_call
raise ex from None
RuntimeError: api-execute-cmd: the object is not active
Error Object: solution/report-definitions/expression
There is no error when the tui journal in run in Fluent
π Steps to reproduce
Run Fluent with command: fluent 3ddp -t4 -gu -topy -i .\exhaust_manifold_tui_fltg_s1.jou
Run generated Python journal in PyFluent with command: v251\commonfiles\CPython\3_10\winx64\Release\python\python.exe exhaust_manifold_tui_fltg_s1.py
π Before submitting the issue
π Description of the bug
The below error is shown when running a command in PyFluent, which was generated using the -topy Fluent option:
Error: api-execute-cmd: the object is not active Error Object: "solution/report-definitions/expression" Traceback (most recent call last): File "C:\ansysdev\temp\pyfluent\settings_test\exhaust_manifold_tui_fltg_s1.py", line 40, in
solver.settings.solution.report_definitions.expression["mass-bal"] = {}
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\solver\flobject.py", line 1889, in setitem
self.flproxy.create(self.path, name)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\settings.py", line 124, in _fn
return fn(self, *args, **kwds)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\settings.py", line 215, in create
self._service_impl.create(request)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\settings.py", line 55, in create
return self.stub.Create(request, metadata=self.metadata)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\grpc_interceptor.py", line 216, in call
response, ignored_call = self._with_call(request,
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\grpc_interceptor.py", line 254, in _with_call
call = self._interceptor.intercept_unary_unary(continuation,
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\interceptors.py", line 122, in intercept_unary_unary
return self._intercept_call(continuation, client_call_details, request)
File "C:\ansysdev\ansys_inc\v251\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\services\interceptors.py", line 112, in _intercept_call
raise ex from None
RuntimeError: api-execute-cmd: the object is not active
Error Object: solution/report-definitions/expression
There is no error when the tui journal in run in Fluent
π Steps to reproduce
fluent 3ddp -t4 -gu -topy -i .\exhaust_manifold_tui_fltg_s1.jou
v251\commonfiles\CPython\3_10\winx64\Release\python\python.exe exhaust_manifold_tui_fltg_s1.py
π» Which operating system are you using?
Windows
π Which ANSYS version are you using?
2025 R1
π Which Python version are you using?
3.10
π¦ Installed packages