question

Urvi Sukharamwala avatar image
0 Likes"
Urvi Sukharamwala asked Urvi Sukharamwala commented

database exception

Hello, I tried exporting data from flexSim to database, however I am getting exception error for specific model only. Error: time: 88.543086 exception: Exception thrown in database export:

Is it possible to include try and catch code. If yes please give the syntax for it.


1707325615104.png

FlexSim 24.0.1
exception errordatabaseexport data
1707325615104.png (3.9 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Urvi Sukharamwala commented

Can you show us what you have implemented along with the table definitions you have in both FlexSim and the external DB?

The exception message printed in the catch of corresponding try section for exportSingle/exportAll and both call the same function to export the data, which is essentially DELETE FROM if not appending and then INSERT INTO.

Can you try performing the same INSERT INTO operations yourself in FlexScript or another application to check that it's possible? Does the target table have foreign keys and does your login have the correct permissions to add/remove records to/from the target table?

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.