I’ve set up a new project on our SG site and a new configuration for SGTK. When I try to create a new file through the File Open dialog (in tk-multi-workfiles2), I get the following error:
TankError: Tried to resolve a path from the template <Sgtk TemplatePath asset_work_area_maya: assets/{sg_asset_type}/{Asset}/work/{Step}/{username}/maya> and a set of input fields '{'username': 'robert-greene', 'Step': 'MDL', 'Asset': 'chr_RobTest'}' but the following required fields were missing from the input: ['sg_asset_type'] //
I can’t see what in my configuration could be the cause of this. Anywhere I can start searching?
It maybe possible that the schema has changed since the folders were registered, or that maybe the asset type value has changed? Can you try unregistering the folders for that Asset and see if that works then?
Failing that feel free to pop a support ticket in and we can dig deeper, and then report back here with the solution.
I just took a look at your site, and can see that a bunch of folders were unregistered and that there appears to have been duplicates in the past from different asset types. Though the FilesystemLocation entities look clean now.
Can you try running the folder creation manually on that one Asset and seeing if that helps?
That was it! Thanks so much Philip. Because the error wasn’t pointing towards anything very specific, I was finding this one hard to track down! Much appreciated!
Yeah I can understand, the error is not clear about where the problem is. The code just knows it wasn’t able to extract the value from the path correctly. So if that happens it generally points to a path cache/schema/templates issue.
Glad it’s sorted!