Question
CGI
IN
Last activity: 16 Oct 2018 12:03 EDT
Unable to Write a file to an explicit path
We are able to write to service export directory. But not able to Write a file to an explicit path.
I have gone through "https://pdn.pega.com/community/product-support/question/write-file-explicit-path". In this, it is mentioned "I have fixed it.It was becasuse of the directory permission.The application id was not the owner of the directory and hence it was not writing into it"
Query 1: How can I check application id for our Pega 7.2 application.
Query 2: How to check and make our application id as a owner of the directory.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
BUPA
AU
Application ID you can see where the file is being created (Service Export Directory)
Chmod g+s directory_name is a common command to change the permission. Pls check with your System Admin and he/she will be able to assist you on this.
CGI
IN
Thanks for your response.
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........
BUPA
AU
Pls compare the directory owner and group owner for both the path.
/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport
/appdata/XXX/YYYY/ZZZZ/Extract/
Same permission problem occured in my project as well but solved after changing the groupowner of the directory. Chmod 777 doesn't change the group owner. It adds same user as group owner.
CGI
IN
Hi,
Directory owner and group owner is there for /appdata/XXXX/XXXX/current/JM/Extract - drwxrwxrwx.
what do you say about "Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file".
Thanks..
CGI
IN
Hi,
Directory owner and group owner is there for /appdata/XXXX/XXXX/current/JM/Extract - drwxrwxrwx.
what do you say about "Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file".
Thanks..
Pegasystems Inc.
US
New file was created when testing with standard JDK java.io objects in an activity.
java.io.File f = new java.io.File("/home/user/temp/1.txt");
try {
f.createNewFile();
java.io.FileWriter writer = new java.io.FileWriter(f);
writer.write("Test data");
writer.close();
} catch (Exception e) {
e.printStackTrace();
}
BUPA
AU
Hi Raja,
Are you seeing any error message in the log file? Pls enable logging to check the full stack trace and share the details.
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
-
Ertug Keskin
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue.
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue.
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue.
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue.
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue
CGI
IN
In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport/", then also it is not working.
Can someone help in resolving the issue
Pegasystems Inc.
US
Are you seeing any related errors in the log file?
Can you show us the customized code you're using?
CGI
IN
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........
Pegasystems Inc.
US
Try with the file:// in front of the full path like this: file:///appdata/XXX/YYYY/ZZZZ/Extract/
CGI
IN
Thanks for your response.
We tried, it is not working.............
CGI
IN
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........
CGI
IN
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........
Pegasystems Inc.
US
You seem to have asked the same questions multiple times without getting the response you are looking for.
Are you able to provide full logs when the failures occur, as well as screenshots of your configuration? This could help others understand your situation better and therefore answer in more detail.
CGI
IN
Thanks for your response...........
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Thanks for your response...........
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........
CGI
IN
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........
CGI
IN
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........
CGI
IN
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Pega 7.2.2
Can you please try as mentioned below and share the results..........
There is a OOTB rule @baseclass.pxConvertResultsToCSV - Pega-RulesEngine:07-10-21, which saves the file at Sevice Export directory i.e. Pega uses "file://web:/StaticContent/global/ServiceExport/" and actual path is "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport"
We are customizing the OOTB rule @baseclass.pxConvertResultsToCSV to ConvertResultsToCSVXXX and updated the path to "/appdata/XXX/YYYY/ZZZZ/Extract/" to store the file. Given full access rites i.e. 777.
Query 1: File is not creating or storing at "/appdata/XXX/YYYY/ZZZZ/Extract/". Can someone guide us ASAP.
With same code we are able to store file at service export directory i.e. "file://web:/StaticContent/global/ServiceExport/".
Query 2: In place of "file://web:/StaticContent/global/ServiceExport/", if we give complete path "/opt/jboss-eap/6.4.0/host-controller/servers/jboss-server-one/pr_temp/StaticContent/global/ServiceExport", then also it is not creating file.
Thanks in Advance.........