An error occured while reading the file... HELP :/
![adoniogts](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/userpics/688/nB2A1LPBGVY67.jpg)
Hello everybody! Seem to be having a problem here... Can't open my duf file! :/
When I open the file in Daz a message pops up that says "An error occured while reading the file, see the log file for more details."
In the log files it says:
2020-02-17 19:16:53.523 Json Parser (4792393,5): Unexpected end of file in string.
2020-02-17 19:16:53.617 Error reading file, see log for more details.
2020-02-17 19:17:36.840 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 8 unknown for DzActionMgr)
Now I researched a bit about this problem, and read that the problem was a missing closing bracket somewhere in the code? I opened the DUF file in Notepad to see if I could find a missing closing bracket but the code is HUGE! It's imposible for me to find a missing closing bracket!
How can I save my file?
Comments
As you say, there is a syntax error somewhere, but the files shouldn't have those kinds of problems. Try downloading a fresh copy and re-installing.
The code abruptly ends here, which looks like the code for a figure I was using in that scene, a genesis 2 model:
"url" : "lThigh-25:/data/DAZ%203D/Genesis%202/Female%20Genitalia/Genesis2FemaleGenitalia.dsf#lThigh?rotation/z/value",
"keys" : [ [ 0, 0 ], [ 5.1, 0 ] ]
},
{
"url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/lThigh/bulge_weights/z/positive-right/value",
"keys" : [ [ 0, 0 ] ]
},
{
"url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/lThigh/bulge_weights/z/negative-left/value",
"keys" : [ [ 0, 0 ] ]
},
{
"url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/lThigh/bulge_weights/z/negative-right/value",
"keys" : [ [ 0, 0 ] ]
},
{
"url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/rThigh/bulge_weights/z/positive-left/value",
"keys" : [ [ 0, 0 ] ]
},
{
"url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/rThigh/bulge_weights/z/positive-right/value",
"keys" : [ [ 0, 0 ] ]
},
{
"
I looked for the DUF of the genesis 2 figure I was using, opened it in batch converter. It said it has succesfuly converted. Opened that DUF file with Notepad and searched for the keywords where the corrupted duf file abruptly ends. (See image attached) The top notepad is the corrupted file, the TMP that was created after the batch conversion, it ends in { " The bottom notepad is the file of the genesis 2 female I was using in the corrupted file scene, there u can see the info that is missing after the { " So I copy and paste it on the code of the TMP file, open the TMP file as a DUF, but it tells me the same message...
"An error ocurred while reading the file"
In the log file it says:
2020-02-17 21:41:07.632 Json Parser (4792393,5): Unexpected end of file in string.
2020-02-17 21:41:07.695 Error reading file, see log for more details.
2020-02-17 21:41:46.689 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 6 unknown for DzActionMgr)
2020-02-17 21:41:47.579 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 7 unknown for DzActionMgr)
2020-02-17 21:41:50.580 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 8 unknown for DzActionMgr)
So is there any way to save this corrupted file? :/
Sorry, I should have specified to download a new version of the product in question. If it has been corrupted somewhere along the way, there is no way to recover the missing information, it is gone. If were just a header entry, or something that did not affect the contents in any way, maybe, but clearly bits have been lost. I occasionally get an invalid download, but that's one in 500 successful ones.
Unfortunately this means the file is corrupt, you may be able to use an archive repair tool to fix it but you will probably need to restore a back up or go to a previous version.
The .duf files are compressed (not actually using zip or rar) and sometimes - drive issue, OS issue, perhaps securty software - a byte will be lost of mis-written, which is fatal for compressed files. A repair utility may be able to infer the correct value and render the file openable, but it's not something I've ever tried and I wouldn't bank on it.
Someone recently had this same issue.
Open the save filed in 7zip
Take the file that you extract via 7zip and place it in your content directory and try opening it in DS
I'll have to let it be and start all over again... :/
Thanx for all the knowledge and help :)
Lesson learned... Always back up your scenes....