# Copy File fails

**URL:** https://www.finalbuilder.com/forums/t/copy-file-fails/6045
**Category:** Bugs
**Created:** [June 28, 2016, 1:57am UTC](https://www.finalbuilder.com/forums/t/copy-file-fails/6045 "2016-06-28T01:57:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![michael.jelich](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/c57346/32.png) [@michael.jelich](https://www.finalbuilder.com/forums/u/michael.jelich)
#### Post date: [June 28, 2016, 1:57am UTC](https://www.finalbuilder.com/forums/t/copy-file-fails/6045/1 "2016-06-28T01:57:19Z")

</div>

Hi Support Team,   
  
4 days ago I updated from 1.7.1 to 1.8.0.176.   
  
Our build contains a stage where a Copy File ContinuaCI Action is used to copy a file from build folder to a network location. Today two from four builds failed with the following message:  
  
Copying files in folder ‘C:\ContinuaCI\Agent\Ws\10111\MyProject’ matching pattern(s) ‘Data\MyProject\*.FB’ to folder '\ABCXYZ1\SW\MyProject\v3.0.0.109’  
Failed to copy file ‘C:\ContinuaCI\Agent\Ws\10111\MyProject\Data\MyProject.FB’. (1398) There is a time and/or date difference between the client and server: [\?\UNC\ABCXYZ1\SW\MyProject] &nbsp;  
  
In fact the time as well as time zone settings are eqal and correct on both the build server and the target server. The other two builds has been successful. Their log contains:  
  
Copying files in folder ‘C:\ContinuaCI\Agent\Ws\10107\MyProject’ matching pattern(s) ‘Data\MyProject\*.FB’ to folder '\ABCXYZ1\SW\MyProject\v3.0.0.109’  
Pattern: Data\MyProject\*.FB (2 matching files). &nbsp;  
Copied ‘C:\ContinuaCI\Agent\Ws\10107\MyProject\Data\MyProject.FB’ to '\AMBGFS1\SW\MyProject\v3.0.0.109\Data\MyProject.FB’  
Copied ‘C:\ContinuaCI\Agent\Ws\10107\MyProject\Data\MyProject\_262262.FB’ to '\AMBGFS1\SW\MyProject\v3.0.0.109\Data\MyProject\_262262.FB’  
Copy action completed successfully. 2 files copied.  
  
Is it possible to disable the time check?  
  
Best regards  
Michael

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [June 29, 2016, 2:07am UTC](https://www.finalbuilder.com/forums/t/copy-file-fails/6045/2 "2016-06-29T02:07:25Z")

</div>

Hi Micheal,  
  
There are no time checks in the Copy action code. This is reported by the operating system when we call the System.IO.FileInfo.CopyTo method of the .Net framework and is a result of a security check when logging in to the AMBGFS1 server. Try running [w32tm /resync](https://technet.microsoft.com/en-au/library/bb491016.aspx)on both the build server and target server to ensure they are both synced with the domain controller.&nbsp;

---

<div class="post-metadata">

### Author: ![michael.jelich](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/c57346/32.png) [@michael.jelich](https://www.finalbuilder.com/forums/u/michael.jelich)
#### Post date: [June 29, 2016, 3:09am UTC](https://www.finalbuilder.com/forums/t/copy-file-fails/6045/3 "2016-06-29T03:09:49Z")

</div>

Hi Dave,   
  
 Thanks for this info. The build this morning was successful. Probably yesterday something went wrong with our NTP server.   
  
 Best regards   
 Michael
