I need to automate copying files to a MS Sharepoint document libarary.
This does not work with Robotask, and I know it is because Robotask creates a temporary file with the '~' character in it, which is an unallowed character in MS Sharepoint.
How can I copy without using a temporary file?
Thanks..
Orfeo.
Copy directly without temporary file
Copy directly without temporary file
It's very interesting...
What actions do you use?
It would be great if you will describe in more datail. RoboTask creates temporaty file only in Zip action. But the name doesn't contain ~ character.
Also short names in Windows file system always contain ~ symbol. In order to remove it, rename the source file into 8.3 format (old DOS format)
What actions do you use?
It would be great if you will describe in more datail. RoboTask creates temporaty file only in Zip action. But the name doesn't contain ~ character.
Also short names in Windows file system always contain ~ symbol. In order to remove it, rename the source file into 8.3 format (old DOS format)
Last edited by Oleg on Tue Nov 20, 2007 5:29 am, edited 1 time in total.
Copy directly without temporary file
I must dig further into this problem in order to provide you with details....I'll come back to this later. Thanks..
Copy directly without temporary file
Note: this concerns copying from a webfolder to another webfolder (both Sharepoint), both located on the same server where robotask is installed.
Robotask says it cannot copy file xxxx.xx It does not give details.
Another file copying software is able to copy files from/to both webfolders if an option is selected 'copy directly without using a temporary file'. That is the reason why I thought Robotask might have problems copying this way.
With regard to your comment about Windows file system: the copying error also takes place with short files like test.doc or test.txt
Any thoughts?
Thanks
Orfeo
Robotask says it cannot copy file xxxx.xx It does not give details.
Another file copying software is able to copy files from/to both webfolders if an option is selected 'copy directly without using a temporary file'. That is the reason why I thought Robotask might have problems copying this way.
With regard to your comment about Windows file system: the copying error also takes place with short files like test.doc or test.txt
Any thoughts?
Thanks
Orfeo
Copy directly without temporary file
Can you send the task and task's log with error messages to me ( oleg(at)robotask.com )?
Copy directly without temporary file
I'll post it here to keep the thread intact for my own reference.
Note: in the task file, the S: drive is a mapped drive connected to the root folder of a Sharepoint website. The task file copies files starting with "AU-" from one folder (S:\Automove) in that site to another folder (S:\AU\Documents) in that same site.
LOG FILE:
I: 20-11-2007 20:23:32: ****** Starting task... ******************
I: 20-11-2007 20:23:32: Task started with priority: Normal
I: 20-11-2007 20:23:32: Executing "AU-"
W: 20-11-2007 20:23:32: Can't copy file: S:\Auto Move\AU-test.doc
W: 20-11-2007 20:23:32: The operation completed successfully.
W: 20-11-2007 20:23:32: Can't copy file: S:\Auto Move\AU-asdfasdf.txt
W: 20-11-2007 20:23:32: The operation completed successfully.
E: 20-11-2007 20:23:32: An error occured. Step #0 (AU-).
I: 20-11-2007 20:23:32: Task executed successfully
TAKS FILE:
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
ContinueOnError=INTEGER|1
Events=FOLDER
ExternalName=STRING|"MoveFromToWebfolder"
Hide=INTEGER|0
ID=INTEGER|2089538849
Name=STRING|"Move files from webfolder to webfolder"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|1
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FILE_COPY"
Enabled=INTEGER|-1
Name=STRING|"AU-"
Params=FOLDER
[Actions\Action1\Params]
destdir=STRING|"S:\AU\Documents"
f_count=STRING|"1"
file0=STRING|"S:\Auto Move\AU-*.*"
ifexists=STRING|"0"
move=STRING|"1"
subdir=STRING|"0"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_FILE_MONITOR"
Params=FOLDER
[Events\Event1\Params]
chg=STRING|"1"
chga=STRING|"1"
chgsl=STRING|"1"
chgsm=STRING|"1"
chgtl=STRING|"1"
chgtm=STRING|"1"
del=STRING|"1"
folder1=STRING|"S:\Auto Move"
foldercount=STRING|"1"
id=STRING|"UMYHCO272"
incmask=STRING|"*.*"
interval=STRING|"30"
listmode=STRING|"1"
mon_files=STRING|"1"
mon_folders=STRING|"0"
new=STRING|"1"
saveresults=STRING|"0"
subfolders1=STRING|"0"
Note: in the task file, the S: drive is a mapped drive connected to the root folder of a Sharepoint website. The task file copies files starting with "AU-" from one folder (S:\Automove) in that site to another folder (S:\AU\Documents) in that same site.
LOG FILE:
I: 20-11-2007 20:23:32: ****** Starting task... ******************
I: 20-11-2007 20:23:32: Task started with priority: Normal
I: 20-11-2007 20:23:32: Executing "AU-"
W: 20-11-2007 20:23:32: Can't copy file: S:\Auto Move\AU-test.doc
W: 20-11-2007 20:23:32: The operation completed successfully.
W: 20-11-2007 20:23:32: Can't copy file: S:\Auto Move\AU-asdfasdf.txt
W: 20-11-2007 20:23:32: The operation completed successfully.
E: 20-11-2007 20:23:32: An error occured. Step #0 (AU-).
I: 20-11-2007 20:23:32: Task executed successfully
TAKS FILE:
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
ContinueOnError=INTEGER|1
Events=FOLDER
ExternalName=STRING|"MoveFromToWebfolder"
Hide=INTEGER|0
ID=INTEGER|2089538849
Name=STRING|"Move files from webfolder to webfolder"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|1
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FILE_COPY"
Enabled=INTEGER|-1
Name=STRING|"AU-"
Params=FOLDER
[Actions\Action1\Params]
destdir=STRING|"S:\AU\Documents"
f_count=STRING|"1"
file0=STRING|"S:\Auto Move\AU-*.*"
ifexists=STRING|"0"
move=STRING|"1"
subdir=STRING|"0"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_FILE_MONITOR"
Params=FOLDER
[Events\Event1\Params]
chg=STRING|"1"
chga=STRING|"1"
chgsl=STRING|"1"
chgsm=STRING|"1"
chgtl=STRING|"1"
chgtm=STRING|"1"
del=STRING|"1"
folder1=STRING|"S:\Auto Move"
foldercount=STRING|"1"
id=STRING|"UMYHCO272"
incmask=STRING|"*.*"
interval=STRING|"30"
listmode=STRING|"1"
mon_files=STRING|"1"
mon_folders=STRING|"0"
new=STRING|"1"
saveresults=STRING|"0"
subfolders1=STRING|"0"