I’ve tried to implement a server side code that runs daily to fetch the current exchange rate and store it into Currency Exchange table. My code looks like this …
It’s a pretty straight forward code, and just trying to get my hands dirty before I start doing larger customizations. But as the code runs, it launches the following error…
Traceback (most recent call last):
File "apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 83, in execute
frappe.get_doc("Server Script", script_name).execute_scheduled_method()
File "apps/frappe/frappe/core/doctype/server_script/server_script.py", line 101, in execute_scheduled_method
safe_exec(self.script)
File "apps/frappe/frappe/utils/safe_exec.py", line 64, in safe_exec
exec(compile_restricted(script), exec_globals, _locals) # pylint: disable=exec-used
File "<unknown>", line 2, in <module>
ImportError: __import__ not found
It’s hard to follow up with this traceback, if anyone can offer some guidance will be greateful!
Wait what?? that’s an amazing feature. But I don’t find it. It doesn’t show up in search nor does it show up In accounting module. Perhaps this is a version 14 feature? I’m working on the latest version on frappe cloud.
I need to navigate the json object and extract the C value located within results (view json response below). My current error is now at line 3 (TypeError: ‘NoneType’ object is not callable). Any suggestions as to how to extract the C value from the below json in a way that pleases client scripting?