NetTalk Central

Author Topic: File could not be opened. Error: Invalid Filename (45).  (Read 3904 times)

Poul Jensen

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • Email
File could not be opened. Error: Invalid Filename (45).
« on: March 07, 2024, 01:30:58 AM »
Hi,

On a NT Wizarded browse/form I get this error on the server when trying to open the form from the browse:

File  could not be opened.  Error: Invalid Filename (45).  Press OK to end this application

Checking the generated source at: ! Start of "Beginning of Procedure, Before Opening Files" I noticed that all files in the dictionary were being opened and not just the files used in the procedure.

What could cause this behavior?

This is NT 14.19

I have for now solved this by omitting this section of code and opening the files actually used.

Cheers
/Poul


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: File could not be opened. Error: Invalid Filename (45).
« Reply #1 on: March 07, 2024, 05:22:35 AM »
hard to say without an example.

Richard I

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
    • Email
Re: File could not be opened. Error: Invalid Filename (45). see eg 81
« Reply #2 on: March 09, 2024, 08:07:07 PM »
HI Bruce,
The example Logging 81 displays this error
Using NT 14.19
Cheers
Richard
« Last Edit: March 09, 2024, 08:08:38 PM by Richard I »

osquiabro

  • Hero Member
  • *****
  • Posts: 688
    • View Profile
    • Email
Re: File could not be opened. Error: Invalid Filename (45).
« Reply #3 on: March 10, 2024, 04:06:04 AM »
the problem is that the glo:WebLogName don't have a valid path

Richard I

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
    • Email
Re: File could not be opened. Error: Invalid Filename (45).
« Reply #4 on: March 10, 2024, 12:35:44 PM »
Can you elucidate please?

osquiabro

  • Hero Member
  • *****
  • Posts: 688
    • View Profile
    • Email
Re: File could not be opened. Error: Invalid Filename (45).
« Reply #5 on: March 11, 2024, 03:38:37 AM »
check in your dct if you have a NetWebLog table, if not you need to delete it, or in webserver in local objects, window manager, init,  init the global variable with a valid path or in WebHandler in Process Link

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: File could not be opened. Error: Invalid Filename (45).
« Reply #6 on: March 12, 2024, 06:42:25 PM »
>> The example Logging 81 displays this error

Fine, I'll fix that. But that has nothing to do with Poul's situation.

Poul is Opening a table, that has a Full Pathname variable, and that variable is not set.

Cheers
Bruce