E-PC: GetFile Function Cannot Handle Filenames Containing Multiple Consecutive Periods
(Doc ID 1575078.1)
Last updated on OCTOBER 12, 2021
Applies to:PeopleSoft Enterprise PT PeopleTools - Version 8.52 and later
Information in this document applies to any platform.
GetFile and GetTempFile PeopleCode Built-in Functions cannot handle filenames containing multiple consecutive periods. An "Invalid Parameter" error is obtained when trying to obtain such a file.
In order to replicate:
1) Create an Application Engine program or online PeopleCode program with the following code snippet:
Local File &MyFile;
&Attach_File_Name = "/dir1/dir2/Test.......Copy.xlsx";
If FileExists(&Attach_File_Name, %FilePath_Absolute) Then
&MyFile = GetFile(&Attach_File_Name, "R", "", %FilePath_Absolute);
2) The code fails with the following error:
"Invalid parameter /dir1/dir2/Test.......Copy.xlsx for function GetFile"
3) Same code works when a filename is used without multiple consecutive periods.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document