Sendwebrequest on export import
janis@burti.lv
12-3-19
Hi, are there any special procedures which we could use to avoid hal crashing when trying to do an export-import of the database?
HAL is crashing due to using the sendwebrequest, the customer has Real Time Interfacing, but since we are importing without having a HANSA.HDB present the code is crashing.
DBDEF.TXT is imported only after the crash

2019-12-03 18:08:46 Compiling failed 3 halcust/Maint/LAU_WSAutoWebImportMn.hal
2019-12-03 18:08:46 Database ID changed from: 00000000000000000000000000000000 to: 04F29947C59583A65E9D755DDF2D549B
2019-12-03 18:08:46 Database set to unsafe (import and maintenance) mode
2019-12-03 18:08:46 Database ID changed from: 04F29947C59583A65E9D755DDF2D549B to: C06B1B33899583CEAB11D4CC8EA0D5C5
2019-12-03 18:08:46 Database set to safe (normal) mode, flushing cache...
2019-12-03 18:08:46 Fails ieimportēts DBDEF.TXT
Swati D.
12-4-19
Hi Janis
We have escalated your question to a programmer and will get back to you asap
Swati
HW Support
David Delač
12-4-19
Hi Janis,

Please provide me with exact steps on what you are doing to repeat this problem and if you know, paste me row of the code that you think is causing this behaviour.


David D.
HansaWorld Support
janis@burti.lv
12-4-19
Hi David,

Putting SendWebRequest function anywhere in the code causes the problem.


1. Enable Real Time Interfacing in System Configuration
2. Create any hal with SendWebRequest
3. Export database
4. remove/rename the previous HANSA.HDB
5. Import the backup

Custom Import Actions in hal and custom registers are not compiled
David Delač
12-19-19
Hi Janis,

I was not able to repeat the problem in 2019-11-26.

• System >> Configuration >> HAL >> Real Time Interfacing activated
• Created datadef.hal with new register and made sure there is at least one record in it:

RecordBegin(TestVc,-,"")
RecordField(SerNr,M4Long,0,0);
RecordField(AccNumber,M4Code,10,AccVc);
MainKeyBegin(SerNr,0);
KeySegment(SerNr);
KeyBegin(AccNumber);
KeySegment(AccNumber);
KeySegment(SerNr);
EndRecord;

• Created test.hal with SendWebRequest function in it
• Created Timed Backup
• Removed HANSA_HDB
• Imported TB.TXT

Result: No problems during import. I exported TestVc (Database Maintenance >> Exports >> Register Export) and it had my data in it.

If your results are different, I kindly ask you to open a bug report with halcust attached and steps how to repeat it.

Best Regards,
David D.
HansaWorld Support

Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Reino Botha
Please check your version of android if it is the same as the server you are connecting too. ...
08:24 21 Nov 2024
Bror-Erik Kotiranta
In NC you hace operations>>ai chats. They are used for these Br, Bror-Erik...
05:12 21 Nov 2024