Hi guys! Happy New Year and hope you are all well!
We are having an issue with a few assets we are trying to upload. We wondering what the best action was to take as we think the problem we are having is with the core update and the linking / registering of the assets on shotgun with the asset folders on disc.
We have deleted a few old assets on disc and on shotgun with our tools. We have then proceeded to upload new assets again that have the same name and they seem to not be able to be created because of the old registered link with the folder on disc. We can create them and version up past the last deleted assets, though not create them newly starting at v001 as they have this link stored somewhere.
We were just wondering in the shell core command, "unregister folders" was the correct way to go here. If this is the correct way to go then is there an API command for this as we will need to run it in our tools on delete.
# The Error File "z:\shotgun\software\sgtk\studio\install\core\python\tank\folder\operations.py", line 214, in process_filesystem_structurefolders_created = io_receiver.execute_folder_creation() File "z:\shotgun\software\sgtk\studio\install\core\python\tank\folder\folder_io.py", line 172, in execute_folder_creation raise TankError("Folder creation aborted: %s" % e) tank.errors.TankError: Folder creation aborted: The path 'Z:\shotgun\mclaren\p13\pdm_p13\assets\mcl_p13_ext_alloy_wheel_cast_lwff_frt_rhs_a001' cannot be processed because it is already associated with Asset 'mcl_p13_ext_alloy_wheel_cast_lwff_frt_rhs_a001' (id 89551) in Shotgun. You are now trying to associate it with Asset 'mcl_p13_ext_alloy_wheel_cast_lwff_frt_rhs_a001' (id 90151). If you want to unregister your previously created folders, you can run the following command: 'tank Asset mcl_p13_ext_alloy_wheel_cast_lwff_frt_rhs_a001 unregister_folders'
Thanks for your time!
Nick