PDA

View Full Version : Unable to Extract .dif File


Dnixon
10-31-2007, 11:53 AM
Hi. I have been searching the forums for hours & I can't seem to find an answer to my problem. When I run my patch I get an error message saying it failed to extract 000003.dif, & then the program exits.

I've read the suggestions about the folder path not existing or the folder attributes being set to read-only, but they do not help. I am getting an error code: 104 in my patch log & I can't figure out what that means. Any thoughts?

Here's my patch log:

[10/31/2007 11:47:39] Success Patch started: C:\MySmartPlans\Customer Projects\JE Dunn\CCA Correctional Facility 102007\MySmartPlans\Construction Package\v1.1\Executable\Patch\cca_update_1-1.exe
[10/31/2007 11:47:39] Notice Patch engine version: 3.0.1.0
[10/31/2007 11:47:39] Notice Product: MySmartPlans
[10/31/2007 11:47:39] Success Language set: Primary = 9, Secondary = 1
[10/31/2007 11:47:40] Success Include script: _Global_Functions.lua
[10/31/2007 11:47:40] Notice Start project event: Global Functions
[10/31/2007 11:47:40] Success Run project event: Global Functions
[10/31/2007 11:47:40] Notice Start project event: On Startup
[10/31/2007 11:47:40] Success Located installed version 1.0: C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue
[10/31/2007 11:47:41] Success Run project event: On Startup
[10/31/2007 11:47:41] Notice Start project event: On Pre Patch
[10/31/2007 11:47:41] Success Run project event: On Pre Patch
[10/31/2007 11:47:41] Success Free space check on drive: C:\
[10/31/2007 11:47:41] Success Backup file: C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\10242_const.cdd -> C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\Backup\10242_const.cdd.bak
[10/31/2007 11:47:41] Success Patch file: C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\10242_const.cdd
[10/31/2007 11:47:41] Success Backup file: C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\10242_const.exe -> C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\Backup\10242_const.exe.bak
[10/31/2007 11:47:41] Success Patch file: C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\10242_const.exe
[10/31/2007 11:47:41] Error Patch during extraction (7): C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\jed\Jobsite_Photos\album.html (104)
[10/31/2007 11:47:43] Success File rollback C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\Backup\10242_const.cdd.bak -> C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\10242_const.cdd
[10/31/2007 11:47:43] Success File rollback C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\Backup\10242_const.exe.bak -> C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\10242_const.exe
[10/31/2007 11:47:43] Success Rolling back installed file: C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\jed\Jobsite_Photos\album.html
[10/31/2007 11:47:43] Notice Exit patch process (Return code: 104)


Thanks in advance.

Darren Nixon

eric_darling
10-31-2007, 09:42 PM
Funny, I just encountered this same error today. In my case it was a thumbs.db file, which I removed from the build, and then everything worked fine. Yours looks to be an HTML file, so there goes my theory that it had something to do with thumbs.db. Maybe you could try creating a new version of the html file and give it another go...

Lorne
11-01-2007, 10:16 AM
[CODE][10/31/2007 11:47:41] Error Patch during extraction (7): C:\Program Files\MySmartPlans\CCA New Eloy AZ Facility - Construction Issue\jed\Jobsite_Photos\album.html (104)[code]
Error 7 means the diff (or the whole file) for the album.html file wasn't found in the archive -- something went wrong when you built that patch.

Is that album.html file hidden on the system where you build the patches? (Right-click on the file, choose Properties...is the Hidden option checked?)

Are there any unusual permissions set for that file?

Was the whole file included in the patch, or was a binary diff used? (The build log will indicate this.)

Could you provide the build log from when that patch was built?

Is this a multi-version patch?

How many versions are in the project? Are they all selected to be included in the patch? If not, which versions are excluded? (The first one? The last?)

Dnixon
11-01-2007, 10:55 AM
There are only two versions. I'm updating v1.0 to v1.1 with this patch. The file was hidden before. I un-hide it and rebuilt the patch just now, but I still got the same error. The patch log contains the same information again as I submitted before as well.

Attached is the log from the patch I just tried to build with the files visible. It was too long to post directly to the thread.

Thanks for your input and assistance!

Lorne
11-01-2007, 11:06 AM
Thanks for the log, I might have found a clue.

It looks like you have the build cache enabled. (Publish > Settings > Optimizations)

Try clearing your cache, and build the project again.

If that doesn't work, try turning the build cache off: first try turning off "Cache compressed file sizes" and test. If that doesn't work, try turning off "Cache diff files" as well.

Let me know if any of those changes work.

Dnixon
11-01-2007, 11:25 AM
That did it!!! Thank you! Thank you! Thank you! This has been driving me crazy for days. So I suppose it is safe to say that the hidden files gave the error, and because I had the .diff file cached, when I rebuilt it this morning it was not using the newly un-hidden files, but instead the old hidden ones. Is that fair to say?

BTW: How would I know in the future what those different error codes in the log represent?

Thanks so much again,

Darren Nixon

eric_darling
11-01-2007, 11:40 AM
Follow-up question here, too, Lorne...

Does this mean that VP doesn't deal well with hidden files? I would imagine that's the reason my thumbs.db file(s) weren't building in right.

Lorne
11-01-2007, 12:25 PM
That did it!!! Thank you! Thank you! Thank you! This has been driving me crazy for days. So I suppose it is safe to say that the hidden files gave the error, and because I had the .diff file cached, when I rebuilt it this morning it was not using the newly un-hidden files, but instead the old hidden ones. Is that fair to say?It could be -- although there was a bug introduced in 3.0.0.0 that we fixed in 3.0.1.0, and if the files were cached using 3.0.0.0, it might be due to that bug.

I won't know for sure until we look into the code though.
BTW: How would I know in the future what those different error codes in the log represent?Most of the error codes are documented in the help file, but not all of them. In some cases the error messages are reporting standard windows error values along with our own internal error codes, as a way of being more specific.

(The error messages and logging could both use some work; it's something I'd like to address in a future version.)

If you run into any error codes that aren't listed in the help file, for now just contact our support department or post a message in this forum and we'll look into it for you.
Follow-up question here, too, Lorne...

Does this mean that VP doesn't deal well with hidden files? I would imagine that's the reason my thumbs.db file(s) weren't building in right.No, VP should handle hidden files okay -- the issue has more to do with people including files that they didn't think they were including, because they were hidden. For example, the thumbs.db file isn't something you want to be patching in most cases.

I'll make a note to have hidden files tested further, though, just in case.

Dnixon
11-05-2007, 10:54 AM
I started getting this error again today becuase AutoPlay is creating 2 .dat files that Windows thinks are "Protected System Files", and therefore I can not un-hide them.

It seems as though when I build my AutoPlay project with the setting "Rename Resource Files" it creates 2 .dat files that are always hidden because Windows thinks they are "Protected System Files". In v1.1 of my software, they are the last 2 .dat files (ap79.dat & ap80.dat - of 80 total .dat files). In v1.2, they are ap81.dat and ap84.dat (of 84 total .dat files). What are these files? Why does Windows think they are protected system files?

I created my patch this morning to update my software from v1.1 to v1.2 and I got it to work only after I deleted ap81.dat and ap84.dat from the file list in Visual Patch (atleast I don't experience any problems in my software after applying the patch). Should I expect some problems that I may not be seeing yet because I did not include these 2 files in my patch? Is there a way to force them to be un-hidden in Windows?

Thanks for everyone's help in advance.

Darren Nixon