Possible solution to "bad lexical cast" exception in DS log file

Time for another one of my overly detailed wordy posts that probably affects 0.01% of people! So the odds are, you are better off skipping this one.

I think it will be most useful for someone who is not finding any good search results when searching for a warning they found in their log file. When I searched I only found 3 discussions and none of them focused on this particular warning to the point of figuring it out, with one possible exception linked below that deserves credit.

Anyway, to increase the chances of a search hit here is the full warning I was getting:

[WARNING] :: ..\..\..\..\..\src\sdksource\cloud\dzcloudtasknotifier.cpp(178): Token X cast failed in TableProduct::loadIntoMap cast failed with exception: bad lexical cast: source type value could not be interpreted as target

The "X" took many different values in my logs but it looks like it was probably meant to be a product id.

What got rid of the warnings for me was moving zipped backups out of their original location. This is what I mean:

I had (1) copied "Content Database" to another drive (2) created a zipped backup in the old place called "Content Database.zip" (3) deleted the original "Content Database" and finally (4) created a symlink "Content Database" in the old location pointing to its new location.

I did something similar with "My Daz Connect Library" but I don't think that caused the warnings.

The missing step (2b) was that I should have moved "Content Database.zip" out of the directory that also contained "Content Database". My fix was to make a "bak" subdirectory and put "Content Database.zip" into it.

At least in the case of the Content Database folder, it looks like Daz gets confused by in-place zipped backups? But only for certain key folders, I guess. I also have zipped backups in place for that "use 8.0 expressions with 8.1 figures" fix, but that doesn't confuse Daz.

Thanks to Daz_Rawb who hinted at the solution here:

https://www.daz3d.com/forums/discussion/110601/lost-found#Comment_1538761

where he wrote, in part, "It looks like you may have some old zip files with old metadata lying around or some hand-built metadata."

yep-a-roonie-bob!

Comments

  • Given the plethora of threads relating to not doing adequate backups, i think your 0.01% is optimistic.

    LOL

    While this has no applicability to me, i gave up on anything "smart" in DS almost a decade ago, I would ask if you could include the path to this directory.

    Alwasy nice to know where i need to look if i manage to bork something else up when trying to brea.. i mean 'benchmark' DS.

     

Sign In or Register to comment.