Hi guys,
I am not sure how to fix the issue with SG File Open - Create a New File.
From the warning window after clicked on New File from File Open SG:
Failed to complete 'New File' action:
Context changed failed, see log for details.
The error:
// Error: SG tk-multi-workfiles2: Tried to resolve a path from the template <Sgtk TemplatePath shot_work_area_maya: shots/{Sequence}/{Shot}/{Step}/work/{user}/maya> and a set of input fields '{'Shot': 'Elephant', 'Step': 'anim', 'user': 'lukasb'}' but the following required fields were missing from the input: ['Sequence']
Traceback (most recent call last):
File "/media/vis/sg/tk/ramp/install/app_store/tk-multi-workfiles2/v0.13.0/python/tk_multi_workfiles/actions/file_action.py", line 144, in change_context
sgtk.platform.change_context(ctx)
File "/media/vis/sg/tk/ramp/install/core/python/tank/platform/util.py", line 114, in change_context
engine.change_context(new_context)
File "/media/vis/sg/tk/ramp/install/core/python/tank/platform/engine.py", line 843, in change_context
self.post_context_change(old_context, new_context)
File "/media/vis/sg/tk/ramp/install/app_store/tk-maya/v0.11.1/engine.py", line 548, in post_context_change
self._set_project()
File "/media/vis/sg/tk/ramp/install/app_store/tk-maya/v0.11.1/engine.py", line 844, in _set_project
proj_path = tmpl.apply_fields(fields)
File "/media/vis/sg/tk/ramp/install/core/python/tank/template.py", line 260, in apply_fields
return self._apply_fields(fields, platform=platform)
File "/media/vis/sg/tk/ramp/install/core/python/tank/template.py", line 604, in _apply_fields
fields, ignore_types, platform, skip_defaults=skip_defaults
File "/media/vis/sg/tk/ramp/install/core/python/tank/template.py", line 308, in _apply_fields
"from the input: %s" % (self, fields, missing_keys)
tank.errors.TankError: Tried to resolve a path from the template <Sgtk TemplatePath shot_work_area_maya: shots/{Sequence}/{Shot}/{Step}/work/{user}/maya> and a set of input fields '{'Shot': 'Elephant', 'Step': 'anim', 'user': 'lukasb'}' but the following required fields were missing from the input: ['Sequence'] //
// Warning: file: /usr/autodesk/maya2022/scripts/others/supportRenderers.mel line 67: The renderer "arnold" used by this scene, is not currently available. The "mayaSoftware" renderer will be used instead. To prevent this message from being displayed in the future, set the environment variable: MAYA_NO_WARNING_FOR_MISSING_DEFAULT_RENDERER=1 //
// Error: SG tk-multi-workfiles2: Failed to complete 'New File' action
Traceback (most recent call last):
File "/media/vis/sg/tk/ramp/install/app_store/tk-multi-workfiles2/v0.13.0/python/tk_multi_workfiles/actions/file_action.py", line 144, in change_context
sgtk.platform.change_context(ctx)
File "/media/vis/sg/tk/ramp/install/core/python/tank/platform/util.py", line 114, in change_context
engine.change_context(new_context)
File "/media/vis/sg/tk/ramp/install/core/python/tank/platform/engine.py", line 843, in change_context
self.post_context_change(old_context, new_context)
File "/media/vis/sg/tk/ramp/install/app_store/tk-maya/v0.11.1/engine.py", line 548, in post_context_change
self._set_project()
File "/media/vis/sg/tk/ramp/install/app_store/tk-maya/v0.11.1/engine.py", line 844, in _set_project
proj_path = tmpl.apply_fields(fields)
File "/media/vis/sg/tk/ramp/install/core/python/tank/template.py", line 260, in apply_fields
return self._apply_fields(fields, platform=platform)
File "/media/vis/sg/tk/ramp/install/core/python/tank/template.py", line 604, in _apply_fields
fields, ignore_types, platform, skip_defaults=skip_defaults
File "/media/vis/sg/tk/ramp/install/core/python/tank/template.py", line 308, in _apply_fields
"from the input: %s" % (self, fields, missing_keys)
tank.errors.TankError: Tried to resolve a path from the template <Sgtk TemplatePath shot_work_area_maya: shots/{Sequence}/{Shot}/{Step}/work/{user}/maya> and a set of input fields '{'Shot': 'Elephant', 'Step': 'anim', 'user': 'lukasb'}' but the following required fields were missing from the input: ['Sequence']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/vis/sg/tk/ramp/install/app_store/tk-multi-workfiles2/v0.13.0/python/tk_multi_workfiles/actions/new_file_action.py", line 120, in execute
FileAction.change_context(self._environment.context)
File "/media/vis/sg/tk/ramp/install/app_store/tk-multi-workfiles2/v0.13.0/python/tk_multi_workfiles/actions/file_action.py", line 148, in change_context
raise TankError("Context changed failed, see log for details.")
tank.errors.TankError: Context changed failed, see log for details. //
I have this issue only at one project, so the others are OK.
Also I tried to get sequence from engine (sgtk.platform.current_engine()
) but it seems, that it does not print it at all or I could do something wrong.
Has anyone had this issue before with the Sequence
or do you know how to debug this issue?
Thanks