1. Olan Knight
  2. PowerBuilder
  3. Thursday, 15 October 2020 14:54 PM UTC

PB2019R2, b2353
Window 10, 64 bit platform
Oracle 12C


Summary
Q:  Is there a fix or a workaround for this?


Details
When I call DirectoryExists() or FileExists() and pass a path or a path & file defined as a UNC path, both functions lock up.
When passing a path or path & file with a drive letter, it works.

Example of a path & file that causes FileExists() to lock up.
    ls_cfg   = \\bizprod.com\dfs\dnv-data-usage\app1\MDBV5.CFG
    lb_valid = FileExists (ls_cfg)

It doesn't fail or return - it just locks up.
The same path & file defined with a drive letter works:
    ls_cfg   = Q:\app1\MDBV5.CFG
    lb_valid = FileExists (ls_cfg)

UPDATE: I just tested FileOpen(ls_cfg), and it also fails when the parameter is a UNC.

This did not occur in PBv12.1.


Thank You!

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 19 October 2020 15:10 PM UTC
  2. PowerBuilder
  3. # 1

Maybe you've already entered your user and password in windows for accessing the Q: mapped drive.

Try accessing "\\bizprod.com\dfs\dnv-data-usage\app1" in your File Explorer of windows. If it's asking for credentials than that's your problem when running it from code.

Comment
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Monday, 19 October 2020 05:46 AM UTC
  2. PowerBuilder
  3. # 2

Hi Olan,

 

I have built a small PB test case based on your description but can't reproduce it on our side. 

  1. I suggest that you can reboot your computer and test it again.
  2. when you input the "\\bizprod.com\dfs\dnv-data-usage\app1\MDBV5.CFG" in the File explorer path in your computer, can you access it successful?
  3.  Is there anything special about this file mdbv5.cfg? Does the issue happen when using other files or trying on other computers? Can you provide us a replicable case for test and analysis?

If you can reproduce it, kindly please report this issue to our ticket system: https://www.appeon.com/standardsupport/newbug so that it can be properly received and tracked. 

Please also provide a sample PB test case (with PBT / PBL) when you submit it to the ticket system. Thanks.

 

Regards,

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 18:09 PM UTC
  2. PowerBuilder
  3. # 3

Hi Olan;

  Sounds like a reproducible issue. If so, please create a Support Ticket and include you test case.

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.