Jump to content

How to prevent a partially downloaded text file.


Recommended Posts

hello all, i'm not sure what category this falls under so i put it here.

 

I have a cron job running around midnight that generates a text file of the previous days orders. The file for yesterday was 70k bytes.

 

Now this morning when the file was downloaded and imported into another system,

it was discovered that the import file had missing orders and it was only 40k bytes.

 

I thought downloading a file like this was an all or nothing type of thing, so i have no idea why this could happen (unless the user explicitily deleted the bottom portion of the file, but not likely).

 

 

Is it possible that the file partially downloaded and was processed as-is? and if so, how can i prevent that from happening?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.