Hello,
something strange is happening. I added a png profile to the tank write node, but when I publish it fails during the upload_version.py step.
here is the error that happens during the png publish:
Traceback (most recent call last):
  File "\\fs1\Tools\Pipeline\flow_toolkit_config_staging\install\app_store\tk-multi-publish2\v2.10.4\python\tk_multi_publish2\api\plugins\publish_plugin_instance.py", line 306, in _handle_plugin_error
    yield
  File "\\fs1\Tools\Pipeline\flow_toolkit_config_staging\install\app_store\tk-multi-publish2\v2.10.4\python\tk_multi_publish2\api\plugins\publish_plugin_instance.py", line 199, in run_publish
    self._hook_instance.publish(settings, item)
  File "\\fs1\Tools\Pipeline\flow_toolkit_config_staging\config\hooks\tk-multi-publish2\tk-nuke\basic\upload_version.py", line 316, in publish
    self.parent.shotgun.upload(
  File "\\fs1\Tools\Pipeline\flow_toolkit_config_staging\install\core\python\tank_vendor\shotgun_api3\shotgun.py", line 2630, in upload
    raise ShotgunError("Path must be a valid file, got '%s'" % path)
tank_vendor.shotgun_api3.shotgun.ShotgunError: Path must be a valid file, got '\path\to\filesequence\that\definitely\exists_v204.%04d.png'
my tk-nuke-writenode.yml file:
# shot
settings.tk-nuke-writenode.shot:
  template_script_work: nuke_shot_work
  show_convert_actions: True
  write_nodes:
  - file_type: exr
    name: Flow Mono Exr, 16 bit
    promote_write_knobs: [ ]
    proxy_publish_template:
    proxy_render_template:
    publish_template: nuke_shot_render_pub_mono_exr
    render_template: nuke_shot_render_mono_exr
    settings:
      datatype: 16 bit half
    tank_type: Rendered Image
    tile_color: [ ]
  - file_type: exr
    name: Flow Mono Exr, 32 bit
    promote_write_knobs: [ ]
    proxy_publish_template:
    proxy_render_template:
    publish_template: nuke_shot_render_pub_mono_exr
    render_template: nuke_shot_render_mono_exr
    settings:
      datatype: 32 bit float
    tank_type: Rendered Image
    tile_color: [ ]
  - file_type: exr
    name: Flow Stereo Exr, 32 bit
    proxy_publish_template:
    proxy_render_template:
    publish_template: nuke_shot_render_pub_stereo
    render_template: nuke_shot_render_stereo
    settings:
      datatype: 32 bit float
    tank_type: Rendered Image
    tile_color: []
    promote_write_knobs: []
  - file_type: exr
    name: Flow Stereo Exr, 16 bit
    promote_write_knobs: []
    proxy_publish_template:
    proxy_render_template:
    publish_template: nuke_shot_render_pub_stereo
    render_template: nuke_shot_render_stereo
    settings:
      datatype: 16 bit half
    tank_type: Rendered Image
    tile_color: []
  - file_type: png
    name: Flow Png, 8 bit
    promote_write_knobs: [ ]
    proxy_publish_template:
    proxy_render_template:
    publish_template: nuke_shot_render_pub_mono_png
    render_template: nuke_shot_render_mono_png
    settings:
      datatype: 8 bit
    tank_type: Image
    tile_color: [ ]
  location: "@apps.tk-nuke-writenode.location"
my templates, the added png ones are at the end:
# write node outputs
nuke_shot_render_mono_exr:
    definition: '@shot_root/work/images/v{version}/{Shot}_{Step}_{nuke.cds_tag}_{nuke.output}_v{version}.{SEQ}.exr'
    root_name: 'renders'
nuke_shot_render_pub_mono_exr:
    definition: '@shot_root/publish/elements/v{version}/{Shot}_{Step}_{nuke.cds_tag}_{nuke.output}_v{version}.{SEQ}.exr'
    root_name: 'renders'
nuke_shot_render_stereo:
    definition: '@shot_root/work/images/v{version}/{Shot}_{Step}_{nuke.cds_tag}_{nuke.output}_{eye}_v{version}.{SEQ}.exr'
    root_name: 'renders'
nuke_shot_render_pub_stereo:
    definition: '@shot_root/publish/elements/v{version}/{Shot}_{Step}_{nuke.cds_tag}_{nuke.output}_{eye}_v{version}.{SEQ}.exr'
    root_name: 'renders'
nuke_shot_render_mono_png:
    definition: '@shot_root/work/images/v{version}/{Shot}_{Step}_{nuke.cds_tag}_{nuke.output}_v{version}.{SEQ}.png'
    root_name: 'renders'
nuke_shot_render_pub_mono_png:
    definition: '@shot_root/publish/elements/v{version}/{Shot}_{Step}_{nuke.cds_tag}_{nuke.output}_v{version}.{SEQ}.png'
    root_name: 'renders'
here’s also some relevant screenshots.
the publish window when publishing an exr file:
vs when publishing a png file. note the “Upload for Review” step that’s not there in the EXR screenshot (its the step that fails):


