# Trouble with Datasets in Version 10.0.1

Almost every morning, when I start my work, I observe the same problem as already mentioned here: Using Datasets in Mathematica 10.0 and here: Dataset: cannot reproduce a basic example. A bug?

I opend this new thread, since I can't comment the above mentioned topics because I'm still a newbie (in the forum and with Mathematica).

It doesn't matter whether I'm using my own Dataset or one of the mentioned examples. I always get the same result: "An unknown box name (TypeSystem TypeMap) was sent as the BoxForm for the expression. Check the format rules for the expression." And I get it in all my .nb files.

My own Dataset is coming from an OracleDB and the used syntax looks like this:

hprdb = SQLSelect[dbconnection, "TABLE", {"ID", "VAL_1", "VAL_2",  "VAL_3"},

hprds = Dataset[AssociationThread[First@ hprdb, #] & /@ Rest@ hprdb]


I'm using Ubuntu 14.04 (64-bit) and Mathematica 10.0.1

The only way to overcome the problem is to start and stop the kernel, exit and open Mathematica several times and then after many tries (> 5 minutes) it suddenly works again. When it eventually worked once, it works in all .nb files.

Any ideas how to overcome this strange behavior, since it is really annoying?

• Can you post your Dataset and the operation that exhibits the problem? Nov 17 '14 at 9:00
• I added the syntax for my own Dataset, where the last line fails with the above mentioned error message. But if I'm using the examples from the linked threads I get exactly the same results.
– Lea
Nov 17 '14 at 9:18
• Try a clean start and also delete the FrontEnd cache (see here). Nov 17 '14 at 10:51
• First I tried a clean start, which didn't help. Then I deleted the $BaseDirectory and $UserBaseDirectory as described in the second link. This destroyed my DB-setup, which I had to reset. But it also didn't help. Then I started with a clean start a new .nb with only the line titanic = ExampleData[{"Dataset", "Titanic"}]. This worked in the second try... but I don't know why. As observed before, everything elese works now again. It is a workaround, but a very non-satisfying one.
– Lea
Nov 18 '14 at 8:45
• When you say "This worked in the second try" do you mean it only works the second time you execute the offending line (i.e. repeatedly fails executing the first time but works the second) OR the second time you started afresh it worked and continues to work? Nov 18 '14 at 9:37

It is only a workaround, but I found a way which works reproducible:

I start Mathematica merely with mathematica -cleanstart. Whenever the in the question mentioned behavior occurs, I exit Mathematica, restart and open a .nb which contains only the line

titanic = ExampleData[{"Dataset", "Titanic"}]


After evaluation of this example, I'm able to evaluate my Datasets without any further trouble.

I don't know, why this works, but this workaround saves a lot of time and frustration.

• I randomly get the "An unknown box name"... error message from the OP's question when trying to create a ContourPlot of a PDF of a DataDistribution object (Multivariate SmoothKernel type). I'm not even using Mathematica's Datasets, but for some strange reason, this workaround fixes the problem when it occurs. I'm using Mathematica 12.0.
– Matt
Feb 13 '20 at 18:38