Problem with clone datatable

Hello,

I had used datatable.clone to clone the headers of another datatable into a new one, but when i use write range i can’t see the headers but when i put the cloned datatable inside a msbox it shows the headers!!!

1 Like

Check Add Headers in write range

1 Like

Hello @abdel

Please, check if you marked the propriety “ADDHEADERS” in Write Range Activitie

i marked “addheaders” but it does not works!!!

@abdel

Can you share your code?

Initialisation.xaml (43.2 KB)

@abdel

Try disable the option "Create new file "in excel scope, I can’t test it because I don’t have the file.

there is nor “create new file” in my version:

image

@abdel
Send me the file

i sent you the file right now

2 Likes

Hi @abdel,

I don’t know if this is resolved, but if it isn’t, here’s what I noted in your workflow:

  1. You’re using a variable and an argument with the same name, and you’ve done this twice: “DT_Last_Modified_file_header” and “DT_Last_Modified_file”

  2. In the message box, I see you’re using the variable “DT_Last_Modified_file_header_txt” which you have only used once in your entire workflow. This is a string variable which never gets anything assigned to it in your workflow so i don’t know how you’re getting any value out of it.

  3. And in write range, you’re using “DT_Last_Modified_file_header” variable with Add headers column checked. This looks fine.

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