I observed in logs that the error -"The system cannot find the path specified" is coming up. So, now first I created a folder and then in the same folder, I created my desired file. I have verified the code at my end and it seems to create "Folder" and "File" as well. Just that first I will create a folder and then file.
Please see the attached code and let me know if this works at your end as well.
Thanks for your answer. Now i'm already trying your given code but still can't get the result like you do. I'm trying your code with java step on activity, and call the activity using run activity or refresh this section on a button.
Maybe you can share with me how the step you procure to get the result , Thanks.
I used a run-Activity on a click-event inside a section and it is working perfectly for me. Please find the attached screenshots for reference. Please excuse the names used in screenshots. If it is not working for you, can you please check the PegaRULES log file and see if the java step fails there. Alternatively, you can have a look at RegaALERT logs and see if anything is generated there, though I am not sure if anything will come up there.
In the log file, it is clearly seen that the file/folder is created successfully. There are no exceptions regarding that. Then, in this scenario, I don't think there is an issue from PRPC side. Can you please check the privileges.
Where is your server located? I think it is working for me because I have a server on my local machine itself and use case I am running on my machine itself. So can try and create a folder/file in the server location.