question

Monika Sokół avatar image
0 Likes"
Monika Sokół asked Jordan Johnson answered

If there is an option to export more than 2100 cells to the database?

Hello,


I have a model, which is run automatically and export data to the database. Sometimes can happen that there are more cells than the limit 2100. How should I solve this?

Error message here:

Exception thrown in database export: 42000 [Microsoft][ODBC SQL Server Driver][SQL Server]There are too many parameters in this EXECUTE statement. The maximum number is 2100.


Best regards,

Monika

FlexSim 20.1.3
flexsim 20.1.3data exportdatabase export exception
1595589962449.png (4.8 KiB)
· 4
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

Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered

In the tree, you should be able to find your database connector in the Tools folder. Inside that object, one of the variables should be a list of exporters:
The batch size seems to be 1000 by default, which is how many rows to export in a single statement. If you decrease that number, the exporter will work properly. Just make sure that

  1. [Batch Size] x [Number of Columns] <= 2100

1595965741863.png (22.8 KiB)
5 |100000

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