Question
TCS
IN
Last activity: 26 Sep 2019 10:46 EDT
File name of uploaded file
pyFileNameHolder property rule does not exist (Version - 7.2). Which other way can I get the file name of uploaded file.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi,
May I know how are you trying to upload the file.
When I tried using pyCaseAttachments (OOTB Add attachments section) , I am able to retrieve the filename with the '.pyFileName' property .
You can try testing with .pyFileName in your usecase
TCS
IN
Hi Bhavana,
Am trying to upload the file outside the workobject, in a Data-Portal section. I have used the pzUploadFileWithBrowseOption as Local Action. In pyDislpayHarness clipboard page , I can see file name set in 'pyFileNameHolder' but this rule does not exist. So I cannot use this property in activity to retrieve the name.
Is there any other way to get the filename? I checked pxRequestor.pyFileUpload but this is not being set.
Thanks,
Aparna
Pegasystems Inc.
US
@AparnaGopakumar Can you please clarify "I can see filename set in 'pyFileNameHolder' but this rule does not exist"?
TCS
IN
Hi Rachit,
Please find the screenshot of the pyDisplayHarness page. The filename is being captured by 'pyFileNameHolder'. When I click on this property in clipboard, I get the error-Unable to open instance - Possible causes may be (1) Rule may no longer exist. (2) Availability of the rule may be set to No/Draft, Blocked or Withdrawn. (3) Circumstance of the rule may be preventing access. (4) Current date is not within the date range specified in the rule. (screenshot attached)
When I search with pyFileNameHolder, there are two results, but none with matching class (attached).
TCS
IN
Can anybody help me in this?
TCS
IN
Is there some other way to read the filename?
TCS
IN
The issue was resolved through an SR [SR-D46394]
Pegasystems Inc.
IN
Thanks for sharing the SR#
Please let us know the solution that worked for you!