Hi
I have a SAAS app .
User logs in in main db
In main db his db's are listed. He chooses one and based on that I close the connection to the main db and open the client db.
Ok this goes fine but every now and then I get a strange bug:
If I want to add a client adres for instance
I fhave a client table called: "Klant"
And I have a client-adres table called : "Klantadres"
reading and mutating this Klant table goes just fine . But if I want to add something and odd error steps in :
Error returned by <localhost> server:
Integrity error.
The "test\klanten.fic" path is not found in the wdsoft database.
WL call:
Process of 'Click of BTN_Oplsaan_klantadres ( POPUP_nieuw_klantadres ) (server)' (PAGE_klanten.POPUP_nieuw_klantadres.BTN_Oplsaan_klantadres), line 50, thread 0
'HAdd' function, syntax 1
What happened?
Error returned by <localhost> server:
Integrity error.
The "test\klanten.fic" path is not found in the "wdsoft" database.
Error code: 74005
Level: fatal error
WD55 error code: 4005
Dump of the error of 'WDHFSRV64.DLL' module (22.0.87.3).
Identifier of detailed information (.err): 73261
Debugging information:
IEWDHFSRV=51.5
Module=WDHFSRV
Version=22.0.87.3
Fonction (7,0)
Additional Information:
EIT_TYPE_WDFILE : 65538
EIT_IDCODE : 851984
EIT_SERVEURCS : localhost
EIT_LOGICALTABLENAME : klantadres>
EIT_PILEWL :
Click of BTN_Oplsaan_klantadres ( POPUP_nieuw_klantadres ) (server) (PAGE_klanten.POPUP_nieuw_klantadres.BTN_Oplsaan_klantadres), line 50
EIT_DATEHEURE : 30/05/2017 15:30:21
(25, ERR_MSG_BO
Strange thing is that "Test"is the name of an other db
If Ichange something to the klant adres table and let the analysis be generated again then there is no eror all goes fine.
I have come to the conclusion that It must have something to do with deleting the old connection and opening the new connection.
My code to change connection:
// if there is a db to choose form in the table ad stuff to a variabele
IF HReadSeekFirst(Administratie,AdministratieID,TABLE_administraties.COL_ID) THEN
gstrDbUser = Administratie.dbuser
gstrDbPassword = Administratie.dbpaswoord
gstrDbDatabase = Administratie.dbdatabase
gstrDbDataSource = Administratie.dbServer
HCloseConnection(MyConnection)
//Add variabeles
// Describe the connection
MyConnection..User = gstrDbUser
MyConnection..Password = gstrDbPassword
MyConnection..Server = gstrDbDataSource
MyConnection..Database = gstrDbDatabase
MyConnection..Provider = hAccessHFClientServer
MyConnection..Access = hOReadWrite
// open the new connection
HOpenConnection(MyConnection)
IF NOT HChangeConnection("*",MyConnection) THEN
EndProgram(ErrorInfo())
END
HReadFirst(werkjaar,werkjaarID)
IF HReadSeekFirst(Boekjaar,BoekjaarID,werkjaar.BoekjaarID ) THEN
gnAdminjaar = Boekjaar.Jaar
RTA_Admin = "Administratie: "+ gstrDbDatabase +"( "+ Boekjaar.Jaar+ " )"
END
PageDisplay(PAGE_start)
If I change something inthe analyse. Like adding a field or changing a field then this faults are gone and it works just fine. But after few days same fault )
Anyone an Idea what this might be
regards
Allard
I have a SAAS app .
User logs in in main db
In main db his db's are listed. He chooses one and based on that I close the connection to the main db and open the client db.
Ok this goes fine but every now and then I get a strange bug:
If I want to add a client adres for instance
I fhave a client table called: "Klant"
And I have a client-adres table called : "Klantadres"
reading and mutating this Klant table goes just fine . But if I want to add something and odd error steps in :
Error returned by <localhost> server:
Integrity error.
The "test\klanten.fic" path is not found in the wdsoft database.
WL call:
Process of 'Click of BTN_Oplsaan_klantadres ( POPUP_nieuw_klantadres ) (server)' (PAGE_klanten.POPUP_nieuw_klantadres.BTN_Oplsaan_klantadres), line 50, thread 0
'HAdd' function, syntax 1
What happened?
Error returned by <localhost> server:
Integrity error.
The "test\klanten.fic" path is not found in the "wdsoft" database.
Error code: 74005
Level: fatal error
WD55 error code: 4005
Dump of the error of 'WDHFSRV64.DLL' module (22.0.87.3).
Identifier of detailed information (.err): 73261
Debugging information:
IEWDHFSRV=51.5
Module=WDHFSRV
Version=22.0.87.3
Fonction (7,0)
Additional Information:
EIT_TYPE_WDFILE : 65538
EIT_IDCODE : 851984
EIT_SERVEURCS : localhost
EIT_LOGICALTABLENAME : klantadres>
EIT_PILEWL :
Click of BTN_Oplsaan_klantadres ( POPUP_nieuw_klantadres ) (server) (PAGE_klanten.POPUP_nieuw_klantadres.BTN_Oplsaan_klantadres), line 50
EIT_DATEHEURE : 30/05/2017 15:30:21
(25, ERR_MSG_BO
Strange thing is that "Test"is the name of an other db
If Ichange something to the klant adres table and let the analysis be generated again then there is no eror all goes fine.
I have come to the conclusion that It must have something to do with deleting the old connection and opening the new connection.
My code to change connection:
// if there is a db to choose form in the table ad stuff to a variabele
IF HReadSeekFirst(Administratie,AdministratieID,TABLE_administraties.COL_ID) THEN
gstrDbUser = Administratie.dbuser
gstrDbPassword = Administratie.dbpaswoord
gstrDbDatabase = Administratie.dbdatabase
gstrDbDataSource = Administratie.dbServer
HCloseConnection(MyConnection)
//Add variabeles
// Describe the connection
MyConnection..User = gstrDbUser
MyConnection..Password = gstrDbPassword
MyConnection..Server = gstrDbDataSource
MyConnection..Database = gstrDbDatabase
MyConnection..Provider = hAccessHFClientServer
MyConnection..Access = hOReadWrite
// open the new connection
HOpenConnection(MyConnection)
IF NOT HChangeConnection("*",MyConnection) THEN
EndProgram(ErrorInfo())
END
HReadFirst(werkjaar,werkjaarID)
IF HReadSeekFirst(Boekjaar,BoekjaarID,werkjaar.BoekjaarID ) THEN
gnAdminjaar = Boekjaar.Jaar
RTA_Admin = "Administratie: "+ gstrDbDatabase +"( "+ Boekjaar.Jaar+ " )"
END
PageDisplay(PAGE_start)
If I change something inthe analyse. Like adding a field or changing a field then this faults are gone and it works just fine. But after few days same fault )
Anyone an Idea what this might be
regards
Allard