Database connector Exception: file is encrypted or is not a database

Database connector Exception: file is encrypted or is not a database

shanice_c
Not applicable
11 Views
3 Replies
Message 1 of 4

Database connector Exception: file is encrypted or is not a database

shanice_c
Not applicable

[ FlexSim 21.2.0 ]


I try to import from database(thisistest.db) to GlobalTable1, the connection is successed, but couldn't import from database. I also tried to export globaltable content, it also display "unknown table list. Try testing the connection."

Did I miss anything so that it doesn't work? Since I have succeed with the same method before.


Image.png


Image.png


Image.png

test database connetor.fsm

thisistest.7z

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

philboboADSK
Autodesk
Autodesk
Accepted solution

Your database file doesn't have any tables in it. It is a blank file.

Am I misunderstanding something? What did you expect it to do? What do you mean "[you] have succeeded with the same method before"? I don't understand.

If you want to import or export to a table, you need to actually have a table in the database. Try creating one:

1630498359558.png

test-database-connetor_1.fsm



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 3 of 4

philboboADSK
Autodesk
Autodesk

Edit: now I see that your zip file has a sql query in it. If I run that query to create a table in a database file, then it imports and exports just fine:

1630499491685.png

I'm confused as to what you are doing and what you expected to happen. (Perhaps because your attached images aren't working in the original question.)



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 4 of 4

shanice_c
Not applicable

@Phil BoBo Thanks for the reply. This was my first few times testing how to connect to database. It was myself unfamiliar with it, so that sometimes it worked, sometimes didn't. , I've tried using code to import and export as well, it's working well.

0 Likes