Welcome! Log In Create A New Profile

Advanced

HModifyStructure finds non-existing file

Posted by gpredl 
HModifyStructure finds non-existing file
February 08, 2019 07:46AM
Hi,

did some tests of a running program. One of the involved restoring of backups. It doesn't work anymore, HModifyStructure finds a file which is named 0KUNDEN - where a file KUNDEN is in the analysis only. I did all the repairs possible, no success, 0KUNDEN is there and that one seems to point to the phyiscal file BACKPLUS2_KUNDEN.DAT which is a data file in fact. The logical file name is KUNDEN but not 0KUNDEN. The error message is:

Error at line 84 of Click Button1 process.
HModifyStructure function called.
Unable to access the file.
The description of <0KUNDEN> stored in the analysis is not compatible with the one of <C:\ProgramData\SysPredl\BackPlusV2\DATEN\BPLUS2_KUNDEN>.
The <KUMOTNORD> item of <0KUNDEN> file described in the analysis does not exist in the file.

----- Technical Information -----

Project : BackPlusV2

WL call:
Process of 'Click Button1' (FormS_RUECKSICHERUNG.Button1), line 84, thread 0
'HModifyStructure' function, syntax 4

What happened?
Unable to access the file.
The description of <0KUNDEN> stored in the analysis is not compatible with the one of <C:\ProgramData\SysPredl\BackPlusV2\DATEN\BPLUS2_KUNDEN>.
The <KUMOTNORD> item of <0KUNDEN> file described in the analysis does not exist in the file.

Error code: 70016
Level: fatal error
WD55 error code: 16

Dump of the error of 'wd230hf64.dll' module (23.0.62.0).
Identifier of detailed information (.err): 72136
Debugging information:
IEWDHF=32.10
Module=<WDHF>
Version=<23.0.62.0>
Fonction (7,358)
Additional Information:
EIT_LOGICALTABLENAME : <0KUNDEN>
EIT_PATHFIC : <C:\ProgramData\SysPredl\BackPlusV2\DATEN\BPLUS2_KUNDEN>
EIT_PATHWDD : <C:\My projects\BackPlusV2\BackPlusV2.wdd>
EIT_PILEWL :
Click Button1 (FormS_RUECKSICHERUNG.Button1), line 84
EIT_DATEHEURE : 08/02/2019 07:31:53
EIT_TYPE_WDFILE : <2>
EIT_IDCODE : <18>


Placing an HListFile before HModifyStructure and showing the list of file shows as:

There is no file 0KUNDEN at all ...

Kind regards,
Guenter Predl
office@windev.at



Edited 1 time(s). Last edit at 02/08/2019 07:47AM by gpredl.
Attachments:
open | download - ListOfFiles.png (20.8 KB)
Re: HModifyStructure finds non-existing file (SOLUTION)
February 08, 2019 08:31AM
Hi, there were several fCopyDir(..) some lines of code above the HModifyStructure(..) command. One of those fCopyDir(..) commands failed because the directory to copy simply wasn't there. However, it seemed to trigger this problem with HModifyStructure(..) .

Lesson learnt: always look whether a directory to be copied is existing and do the fCopyDir(..) only if it is existing ....

Kind regards,
Guenter Predl
office@windev.at
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: