Edit Fields Node - Field expression preview correct, but no output

HI !

Pretty basic flow as I’m new to n8n. I have n8n connected to ComfyUI to generate images. This all works. After ComfyUI is complete (http://server/history → status.complete=True, I need to get the binary file image (png).

THE ISSUE – I’m using an Edit Fields Node to search through the JSON tree looking for a specific key-value pair. The Edit Fields Node picks up the value correctly in the preview, but does not output anything when tested.
THANKS !!

Information on your n8n setup


Here’s the JSON I’m trying to parse looking for “filename”.

I have a temp link (expires June 2025) to jsonformatter.orgComfyUI

Edit Fields Expression:
{{
$(‘Get ComfyUI Status’).first().json.values()[0].outputs.values()[0].images[0].filename
}}


Here is the raw json:

[  {  "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae": {  "prompt": [  0,  "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  {  "6": {  "inputs": {  "text": "technology event with sponsors and vendors.  everyone has a badge ID around their neck.\n\n\nUse the color #d51619 as the base color. Create six color bars representing its complementary colors and incorporate them into the image. These complementary colors should be used for background objects and accents on the main subject, ensuring a visually harmonious contrast. ",  "clip": [  "11",  0  ]  },  "class_type": "CLIPTextEncode",  "_meta": {  "title": "CLIP Text Encode (Positive Prompt)"  }  },  "8": {  "inputs": {  "samples": [  "13",  0  ],  "vae": [  "10",  0  ]  },  "class_type": "VAEDecode",  "_meta": {  "title": "VAE Decode"  }  },  "9": {  "inputs": {  "filename_prefix": "ComfyUI",  "images": [  "39",  0  ]  },  "class_type": "SaveImage",  "_meta": {  "title": "Save Image"  }  },  "10": {  "inputs": {  "vae_name": "ae.safetensors"  },  "class_type": "VAELoader",  "_meta": {  "title": "Load VAE"  }  },  "11": {  "inputs": {  "clip_name1": "t5xxl_fp16.safetensors",  "clip_name2": "clip_l.safetensors",  "type": "flux",  "device": "default"  },  "class_type": "DualCLIPLoader",  "_meta": {  "title": "DualCLIPLoader"  }  },  "12": {  "inputs": {  "unet_name": "flux1-dev-fp8-e5m2.safetensors",  "weight_dtype": "fp8_e4m3fn"  },  "class_type": "UNETLoader",  "_meta": {  "title": "Load Diffusion Model"  }  },  "13": {  "inputs": {  "noise": [  "25",  0  ],  "guider": [  "22",  0  ],  "sampler": [  "16",  0  ],  "sigmas": [  "17",  0  ],  "latent_image": [  "27",  0  ]  },  "class_type": "SamplerCustomAdvanced",  "_meta": {  "title": "SamplerCustomAdvanced"  }  },  "16": {  "inputs": {  "sampler_name": "euler"  },  "class_type": "KSamplerSelect",  "_meta": {  "title": "KSamplerSelect"  }  },  "17": {  "inputs": {  "scheduler": "simple",  "steps": 23,  "denoise": 1,  "model": [  "30",  0  ]  },  "class_type": "BasicScheduler",  "_meta": {  "title": "BasicScheduler"  }  },  "22": {  "inputs": {  "model": [  "30",  0  ],  "conditioning": [  "26",  0  ]  },  "class_type": "BasicGuider",  "_meta": {  "title": "BasicGuider"  }  },  "25": {  "inputs": {  "noise_seed": 506889313624031  },  "class_type": "RandomNoise",  "_meta": {  "title": "RandomNoise"  }  },  "26": {  "inputs": {  "guidance": 3.5,  "conditioning": [  "6",  0  ]  },  "class_type": "FluxGuidance",  "_meta": {  "title": "FluxGuidance"  }  },  "27": {  "inputs": {  "width": 1024,  "height": 608,  "batch_size": 1  },  "class_type": "EmptySD3LatentImage",  "_meta": {  "title": "EmptySD3LatentImage"  }  },  "30": {  "inputs": {  "max_shift": 1.15,  "base_shift": 0.5,  "width": 1024,  "height": 608,  "model": [  "12",  0  ]  },  "class_type": "ModelSamplingFlux",  "_meta": {  "title": "ModelSamplingFlux"  }  },  "39": {  "inputs": {  "position": "Bottom Left",  "opacity_percentage": 100,  "scale_percentage": 100,  "make_black": false,  "remove_white": false,  "image": [  "8",  0  ],  "watermark_image": [  "40",  0  ],  "watermark_mask": [  "40",  1  ]  },  "class_type": "ImageWatermarkNode",  "_meta": {  "title": "Add Image Watermark"  }  },  "40": {  "inputs": {  "image": "ReEvent-Logo-Watermark-arc.png",  "upload": "image"  },  "class_type": "LoadImage",  "_meta": {  "title": "Load Image"  }  }  },  {},  [  "9"  ]  ],  "outputs": {  "9": {  "images": [  {  "filename": "ComfyUI_00194_.png",  "subfolder": "",  "type": "output"  }  ]  }  },  "status": {  "status_str": "success",  "completed": true,  "messages": [  [  "execution_start",  {  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496127389  }  ],  [  "execution_cached",  {  "nodes": [],  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496127397  }  ],  [  "execution_success",  {  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496232025  }  ]  ]  },  "meta": {  "9": {  "node_id": "9",  "display_node": "9",  "parent_node": null,  "real_node_id": "9"  }  }  }  }  ]

Let me know if you see anything obvious, or how I can debug the no-output of the node.
Thanks !!

Here’s the JSON from the previous node…

and a temp. link to jsonformatter.org. ComfyUI (link expires June 2025)


Expression used to find “filename”:
{{
$(‘Get ComfyUI Status’).first().json.values()[0].outputs.values()[0].images[0].filename
}}

raw json:

[  {  "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae": {  "prompt": [  0,  "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  {  "6": {  "inputs": {  "text": "technology event with sponsors and vendors.  everyone has a badge ID around their neck.\n\n\nUse the color #d51619 as the base color. Create six color bars representing its complementary colors and incorporate them into the image. These complementary colors should be used for background objects and accents on the main subject, ensuring a visually harmonious contrast. ",  "clip": [  "11",  0  ]  },  "class_type": "CLIPTextEncode",  "_meta": {  "title": "CLIP Text Encode (Positive Prompt)"  }  },  "8": {  "inputs": {  "samples": [  "13",  0  ],  "vae": [  "10",  0  ]  },  "class_type": "VAEDecode",  "_meta": {  "title": "VAE Decode"  }  },  "9": {  "inputs": {  "filename_prefix": "ComfyUI",  "images": [  "39",  0  ]  },  "class_type": "SaveImage",  "_meta": {  "title": "Save Image"  }  },  "10": {  "inputs": {  "vae_name": "ae.safetensors"  },  "class_type": "VAELoader",  "_meta": {  "title": "Load VAE"  }  },  "11": {  "inputs": {  "clip_name1": "t5xxl_fp16.safetensors",  "clip_name2": "clip_l.safetensors",  "type": "flux",  "device": "default"  },  "class_type": "DualCLIPLoader",  "_meta": {  "title": "DualCLIPLoader"  }  },  "12": {  "inputs": {  "unet_name": "flux1-dev-fp8-e5m2.safetensors",  "weight_dtype": "fp8_e4m3fn"  },  "class_type": "UNETLoader",  "_meta": {  "title": "Load Diffusion Model"  }  },  "13": {  "inputs": {  "noise": [  "25",  0  ],  "guider": [  "22",  0  ],  "sampler": [  "16",  0  ],  "sigmas": [  "17",  0  ],  "latent_image": [  "27",  0  ]  },  "class_type": "SamplerCustomAdvanced",  "_meta": {  "title": "SamplerCustomAdvanced"  }  },  "16": {  "inputs": {  "sampler_name": "euler"  },  "class_type": "KSamplerSelect",  "_meta": {  "title": "KSamplerSelect"  }  },  "17": {  "inputs": {  "scheduler": "simple",  "steps": 23,  "denoise": 1,  "model": [  "30",  0  ]  },  "class_type": "BasicScheduler",  "_meta": {  "title": "BasicScheduler"  }  },  "22": {  "inputs": {  "model": [  "30",  0  ],  "conditioning": [  "26",  0  ]  },  "class_type": "BasicGuider",  "_meta": {  "title": "BasicGuider"  }  },  "25": {  "inputs": {  "noise_seed": 506889313624031  },  "class_type": "RandomNoise",  "_meta": {  "title": "RandomNoise"  }  },  "26": {  "inputs": {  "guidance": 3.5,  "conditioning": [  "6",  0  ]  },  "class_type": "FluxGuidance",  "_meta": {  "title": "FluxGuidance"  }  },  "27": {  "inputs": {  "width": 1024,  "height": 608,  "batch_size": 1  },  "class_type": "EmptySD3LatentImage",  "_meta": {  "title": "EmptySD3LatentImage"  }  },  "30": {  "inputs": {  "max_shift": 1.15,  "base_shift": 0.5,  "width": 1024,  "height": 608,  "model": [  "12",  0  ]  },  "class_type": "ModelSamplingFlux",  "_meta": {  "title": "ModelSamplingFlux"  }  },  "39": {  "inputs": {  "position": "Bottom Left",  "opacity_percentage": 100,  "scale_percentage": 100,  "make_black": false,  "remove_white": false,  "image": [  "8",  0  ],  "watermark_image": [  "40",  0  ],  "watermark_mask": [  "40",  1  ]  },  "class_type": "ImageWatermarkNode",  "_meta": {  "title": "Add Image Watermark"  }  },  "40": {  "inputs": {  "image": "ReEvent-Logo-Watermark-arc.png",  "upload": "image"  },  "class_type": "LoadImage",  "_meta": {  "title": "Load Image"  }  }  },  {},  [  "9"  ]  ],  "outputs": {  "9": {  "images": [  {  "filename": "ComfyUI_00194_.png",  "subfolder": "",  "type": "output"  }  ]  }  },  "status": {  "status_str": "success",  "completed": true,  "messages": [  [  "execution_start",  {  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496127389  }  ],  [  "execution_cached",  {  "nodes": [],  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496127397  }  ],  [  "execution_success",  {  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496232025  }  ]  ]  },  "meta": {  "9": {  "node_id": "9",  "display_node": "9",  "parent_node": null,  "real_node_id": "9"  }  }  }  }  ]

Have I don’t some wrong here and how do I debug the lack of output?
Thanks !!

Here’s the JSON I’m trying to parse looking for “filename”.

I have a temp link (expires June 2025) to jsonformatter.orgComfyUI

Edit Fields Expression:
{{
$(‘Get ComfyUI Status’).first().json.values()[0].outputs.values()[0].images[0].filename
}}


Here is the raw json:

[  {  "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae": {  "prompt": [  0,  "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  {  "6": {  "inputs": {  "text": "technology event with sponsors and vendors.  everyone has a badge ID around their neck.\n\n\nUse the color #d51619 as the base color. Create six color bars representing its complementary colors and incorporate them into the image. These complementary colors should be used for background objects and accents on the main subject, ensuring a visually harmonious contrast. ",  "clip": [  "11",  0  ]  },  "class_type": "CLIPTextEncode",  "_meta": {  "title": "CLIP Text Encode (Positive Prompt)"  }  },  "8": {  "inputs": {  "samples": [  "13",  0  ],  "vae": [  "10",  0  ]  },  "class_type": "VAEDecode",  "_meta": {  "title": "VAE Decode"  }  },  "9": {  "inputs": {  "filename_prefix": "ComfyUI",  "images": [  "39",  0  ]  },  "class_type": "SaveImage",  "_meta": {  "title": "Save Image"  }  },  "10": {  "inputs": {  "vae_name": "ae.safetensors"  },  "class_type": "VAELoader",  "_meta": {  "title": "Load VAE"  }  },  "11": {  "inputs": {  "clip_name1": "t5xxl_fp16.safetensors",  "clip_name2": "clip_l.safetensors",  "type": "flux",  "device": "default"  },  "class_type": "DualCLIPLoader",  "_meta": {  "title": "DualCLIPLoader"  }  },  "12": {  "inputs": {  "unet_name": "flux1-dev-fp8-e5m2.safetensors",  "weight_dtype": "fp8_e4m3fn"  },  "class_type": "UNETLoader",  "_meta": {  "title": "Load Diffusion Model"  }  },  "13": {  "inputs": {  "noise": [  "25",  0  ],  "guider": [  "22",  0  ],  "sampler": [  "16",  0  ],  "sigmas": [  "17",  0  ],  "latent_image": [  "27",  0  ]  },  "class_type": "SamplerCustomAdvanced",  "_meta": {  "title": "SamplerCustomAdvanced"  }  },  "16": {  "inputs": {  "sampler_name": "euler"  },  "class_type": "KSamplerSelect",  "_meta": {  "title": "KSamplerSelect"  }  },  "17": {  "inputs": {  "scheduler": "simple",  "steps": 23,  "denoise": 1,  "model": [  "30",  0  ]  },  "class_type": "BasicScheduler",  "_meta": {  "title": "BasicScheduler"  }  },  "22": {  "inputs": {  "model": [  "30",  0  ],  "conditioning": [  "26",  0  ]  },  "class_type": "BasicGuider",  "_meta": {  "title": "BasicGuider"  }  },  "25": {  "inputs": {  "noise_seed": 506889313624031  },  "class_type": "RandomNoise",  "_meta": {  "title": "RandomNoise"  }  },  "26": {  "inputs": {  "guidance": 3.5,  "conditioning": [  "6",  0  ]  },  "class_type": "FluxGuidance",  "_meta": {  "title": "FluxGuidance"  }  },  "27": {  "inputs": {  "width": 1024,  "height": 608,  "batch_size": 1  },  "class_type": "EmptySD3LatentImage",  "_meta": {  "title": "EmptySD3LatentImage"  }  },  "30": {  "inputs": {  "max_shift": 1.15,  "base_shift": 0.5,  "width": 1024,  "height": 608,  "model": [  "12",  0  ]  },  "class_type": "ModelSamplingFlux",  "_meta": {  "title": "ModelSamplingFlux"  }  },  "39": {  "inputs": {  "position": "Bottom Left",  "opacity_percentage": 100,  "scale_percentage": 100,  "make_black": false,  "remove_white": false,  "image": [  "8",  0  ],  "watermark_image": [  "40",  0  ],  "watermark_mask": [  "40",  1  ]  },  "class_type": "ImageWatermarkNode",  "_meta": {  "title": "Add Image Watermark"  }  },  "40": {  "inputs": {  "image": "ReEvent-Logo-Watermark-arc.png",  "upload": "image"  },  "class_type": "LoadImage",  "_meta": {  "title": "Load Image"  }  }  },  {},  [  "9"  ]  ],  "outputs": {  "9": {  "images": [  {  "filename": "ComfyUI_00194_.png",  "subfolder": "",  "type": "output"  }  ]  }  },  "status": {  "status_str": "success",  "completed": true,  "messages": [  [  "execution_start",  {  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496127389  }  ],  [  "execution_cached",  {  "nodes": [],  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496127397  }  ],  [  "execution_success",  {  "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae",  "timestamp": 1740496232025  }  ]  ]  },  "meta": {  "9": {  "node_id": "9",  "display_node": "9",  "parent_node": null,  "real_node_id": "9"  }  }  }  }  ]

Let me know if you see anything obvious, or how I can debug the no-output of the node.
Thanks !!

Without the looping and the actual call to Comfy, the set node works. Trying to find what may be different when you run it. I’m on 1.77.4, so it’s possible (even if unlikely) something was broken in the last few releases. Run this workflow in your environment and see if it’s working.

1 Like

OMG - You’re right !

All I did was disconnect the three nodes and moved them below the original flow. I didn’t even change or re-run the pinned data… and it works as expected !!


Is there a way for me to downgrade to your version 1.77 ?

If it works in your version when isolated, it doesn’t sound like you would need to downgrade.

I would try other things like pulling the “Is it ready?” loop out into its own workflow and calling it with Execute Workflow (i.e. get the looping out of the main workflow).

Confirmed! I removed the wait loop and it’s working. How did you know? :slight_smile:

Thanks for your help !!

PS I also tried >npm install [email protected]
It did stuff, lots of warnings, but after restart the UI still reports 1.80.

I had a similar “strange behavior” after a similar “polling for done” loop. That’s how I finally got it under control.

Don’t forget to mark that as the solution.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.