database exception

Urvi_Sukharamwala
Not applicable
1 View
4 Replies
Message 1 of 5

database exception

Urvi_Sukharamwala
Not applicable

[ FlexSim 24.0.1 ]

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

0 Likes
Accepted solutions (1)
2 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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?

0 Likes
Message 3 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

Hi @urvi-sukharamwala,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes
Message 4 of 5

Urvi_Sukharamwala
Not applicable

Hi,

I apologize for not responding. However I was able to solve the issue with above given answer. Thank you for the help.

Message 5 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Thanks for letting us know.
0 Likes