N8N - How To Duplicate A File Field For Create Row Action

Hello. My current workflow inside n8n duplicates a basic row with generic fields perfectly. The problem I have is one of the fields I need duplicated is a file field.

At the bottom of the (Create Duplicate Task - create row) node, it has the following disclaimer:

“Hint: Link, files, images or digital signatures have to be added separately. These column types cannot be set with this node.”

So it gives a wonderful disclaimer, then doesn’t offer me any information on how to go about this the right way. And unfortunately, I can’t find any documentation on this.

So can anyone give me a general idea on the right way to go about duplicating a row that also includes a file field/column? I read something about the merge node in another thread, but I couldn’t really make heads or tails out of the discussion.

Thanks in advance

Hi @hawkeye, and welcome to the SeaTable forum!

Actually (as far as I tested), the behaviour is not the same for links, images and digital signatures on one side, and files on the other side. You’ll need an extra node if you want to create a link, copy/upload an image or digital signature or upload a new file, but if you just want to duplicate a row including its (already uploaded) file, it’s pretty straightforward: I can’t see how your Create Duplicate Task is configured, but if you chose Auto-Map Input Data to Columns as Data to Send option, the file should be automatically copied, and if you chose Define Below for Each Column, you can just Add your file column and drag and drop the content of you original row from your input node into the column value field.
Hope this helps…

Bests,
Benjamin

Thanks for the reply Benjamin. I’ve actually tried both auto mapping all fields as well as defining each individual column. And both create a 504 gateway error on the execution. When using the “Define Below Each Column” option, it runs fine and duplicates the row as expected as long as I don’t include the file column/field.

I’m not a programmer, so I don’t like messing with the command line stuff on the server myself which I’m guessing will be necessary in order to increase the timout parameter to solve the 504 error. But I’m not even sure this is what is causing the hiccup here. The attachement I used to test was a simple png file that’s 5 kb. So that shouldn’t cause this whole process to extend past 1 minute with such a small attachment. Especially considering the successful executions are near instant when I don’t include the file column/field.

I think what I’m going to do here is when the next update is released later this month for seatable server, I will get some help to update to the latest version and in that process, I will have them increase the timeout parameter as well as install the python functionality which wasn’t done on the initial install. Then I will reevaluate.

Thanks again for taking the time with your recommendations.

Kevin

Hi again Kevin. It could be interesting to know more about you’re setup : do you use SeaTable cloud or self-hosted ? Which version ? Knowing the version of n8n and of the n8n-nodes-setable community need would maybe help (at least me :sweat_smile:) to understand why I can’t reproduce your problem.

Bests,
Benjamin

Hi Benjamin. I’m using the self hosted version of seatable. Below are the version details for both seatable server and n8n.

Seatable Server Version info 5.1.9

N8N - This is installed on a separate server via easypanel.io script. n8n version 1.78.1 (Self Hosted)

Nodes Below:

n8n-nodes-seatable
2 nodes: SeaTable,SeaTable Trigger
v2.0.1

Again, I am not a programmer - so I dummy up with a lot of this stuff. But I was looking through the execution logs on n8n and there were 2 different messages on the errors. The first was 504 gateway time out and the other was: Execution stopped at this node n8n may have run out of memory while running this execution. More context and tips on how to avoid this in the docs.

I can’t imagine there would be any memory issues though as I’m using a 32GB server for easypanel with nothing else on it.

Thanks
Kevin

Hi Kevin,
Sorry I’m afraid I won’t be able to help you: I thought of a version problem but you’re actually more up-to-date than I am :sweat_smile: . At least, I unsolved your problem hopping that someone (maybe @cdb?) could help you…

Bests,
Benjamin

Hey hawkeye,

let me try to shed some light on that. The logik of a “file/image” column is like this:

  • SeaTable stores files/images in a separate location. In fact, a seafile server is taking the responsibility to store the data.
  • in the columns of the base, you only point to this file.

Therefore, if you want to copy a file/image column, you don’t have to upload a file again, you simply point to the file. Here is how you can do it:

Starting point

n8n workflow

After execution

Explanation

As you can see, I take the content of the “file-column” and use it to update another file-column.

Best regards
Christoph

1 Like

Hi Christoph. I actually had some other things wrong too in my workflow. So your short tutorial here with images helped me figure it all out and everything is working as expected now.

Much appreciated
Kevin

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