if NSER_FIX_ID=5 then//Supervisor login
if syncconnect(Bluetooth) then
SDPath = pathname(CSEntry);
syncfile(PUT, concat(SDPath, "KML/*.kml"), "KML/");
syncdisconnect();
else
endif
elseif NSER_FIX_ID=6 then//enumerator login
If syncserver (Bluetooth, "..") then // Get the Assigned Enumeration Area from the Supervisor
syncdisconnect();
else
endif;
endif;
The 195 error can happen for a few reasons: failed to open a file, failed to create a directory, attempt to read/write a file outside the CSEntry directory... You would get more information by looking in the sync.log on the supervisor tablet.
I can't think of a reason why transferring that many files would be a problem but I don't think I've ever tried to transfer more than a few hundred. You could consider using the compress function to create a single zip file that you transfer and then using decompress on the other end once you have received it. The downside of that approach is that it if you have a scenario where only one or two of the files change you would still transfer the whole zip file rather than just those that changed. However, since you are using PUT, CSPro does will always send all the files anyway. If you were to use GET to download the files from the supervisor tablet rather than having the supervisor tablet use PUT then it would be smart enough to only send the files that had changed since the last sync. That optimization only works for GET, not for PUT.