My Oracle Support Banner

E-PC: GetFile Function Cannot Handle Filenames Containing Multiple Consecutive Periods (Doc ID 1575078.1)

Last updated on FEBRUARY 05, 2019

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.52 and later
Information in this document applies to any platform.

Symptoms

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);
  &MyFile.Delete();
End-If;


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.

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.