Write Text File - One or more errors occured

Write Text File - One or more errors occurred. When I running write text file it isthrowing error as one or more errors occurred. But in debug mode its running fine.

Any suggestions would be helpful.

Thanks,
Nawaz.

Hi, can you post a screenshot of the error message and your code?
Thanks

@Mohammed_Nawazuddin

share the Screenshot.

Hi,

Please find the below screeshot

@Mohammed_Nawazuddin

is the output variable has data ?
Run the project in the debug mode.

The output variable has not date ad in debug mode its working fine. And sometimes in the run mode its giving error as the process is being used by another process

Hello @Mohammed_Nawazuddin

Can you close the config file and the text file and try to execute it again?

Its not working still the same error - one or more errors occurred

Is it happening sometimes? Can you print the value of Write to filename in a message box and check whether the path is valid?

Its happening when the job is running from orchestrator or attanded mode in machine. But in debug mode its working fine

Ok…Just add the message box and verify the path by executing from orchestrator or from the assistant.

Please find the screenshot below

Is there any alternate method of write text file like invoke code activity to write the data in notepad file

Hi @Mohammed_Nawazuddin, can you please double check that the folder is not set to ‘Read-only’?
Thanks

The Folder is read only but manaully I can edit the text file.

Thanks,
Nawaz.

Hello @Mohammed_Nawazuddin

Try with Append line activity also. If its still not working then try to disable the mode “Read Only”.