No options of To Table about database connector export data to

No options of To Table about database connector export data to

PDKG
Not applicable
143 Views
8 Replies
Message 1 of 9

No options of To Table about database connector export data to

PDKG
Not applicable

[ FlexSim 22.2.0 ]

I have already connected with database. Why no options of "To Table" can let me export my flexsim table?

Could you provide me the coding to export my data to dasebase?

dbexport.png

0 Likes
Accepted solutions (1)
144 Views
8 Replies
Replies (8)
Message 2 of 9

borja_lorenzo4278
Enthusiast
Enthusiast

Hello @PD

The same thing happens to me. You can use the following syntax detailed in the manual:
Database Connectors (flexsim.com)
FlexScript Class - Database.Connection (flexsim.com)

The question is to understand why the Database Connection tool does not show the tables of the database we are connected to. I have several queries made about it, if I get any satisfactory response, I will let you know.

If the code I wrote could be of help and confirmed that there was a connection to the database and I was able to write two values, it is this one:
1727783567249.png

0 Likes
Message 3 of 9

Jeanette_Fullmer
Community Manager
Community Manager

Hi @PD,

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 9

borja_lorenzo4278
Enthusiast
Enthusiast

Hello,
The export function of the DataBase Connector is still not working. To perform the export, I had to do it through the code, using this part of the manual. However, I would like to know if I have a configuration problem or if it is a software bug.


FlexScript Class - Database.Connection

0 Likes
Message 5 of 9

Jeanette_Fullmer
Community Manager
Community Manager
The Development team has been notified.
Message 6 of 9

philboboADSK
Autodesk
Autodesk
The Database Connector's export function is working just fine in our tests. You'll need to provide the Support team with more information for them to be able to help you determine why it isn't working for your configuration.


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

borja_lorenzo4278
Enthusiast
Enthusiast

Hello Phill
I explain more details about this issue in this post: Export a Global Table from FlexSim to BaseDate MySQL - FlexSim Community

Beside, Jordan Jonson replied me about this issue this:
https://answers.flexsim.com/comments/171503/view.html

If any further clarification is necessary, I am at your disposal. Tell me what I would have to report and I will be happy to do so.

0 Likes
Message 8 of 9

Jeanette_Fullmer
Community Manager
Community Manager
Accepted solution

Hello @PD ,

This has been submitted to the development team. A workaround for the time being is to go into the tree node and add in the table name there.

MODEL:/Tools/DatabaseConnectors/DatabaseConnector1>variables/exporters/1/tableName

1730907831881.png

I did not have the UI open when writing the table name. This will prevent the UI from overwriting what you wrote in the tree node. You can open the UI after you have added the table name.

Message 9 of 9

borja_lorenzo4278
Enthusiast
Enthusiast

Hello @PD ,

This works for me.
I share the link to my answer posted: https://answers.flexsim.com/comments/172543/view.html

0 Likes