Could you solve the "." problem. I cannot publish my service because of the dots in the layers name. Please let me know if you have any solution.
Description of issue in detail:
###############################
I am creating a very simple service. the python code of script is:
<SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;">import</SPAN> arcpy
arcpy<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">.</SPAN>CheckOutExtension<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">(</SPAN><SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">"3D"</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">)</SPAN>
arcpy<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">.</SPAN>RasterDomain_3d<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">(</SPAN>r<SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">"Database Connections\GS.sde\GS.DBO.R1"</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">,</SPAN>
r<SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">"Database Connections\GS.sde\GS_DBO_test"</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">,</SPAN> <SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;">"POLYGON"</SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">)</SPAN><SPAN class="" style="border-width: 0px 1px 0px 0px; border-style: initial solid initial initial; border-color: initial #999999 initial initial; font-weight: inherit;"></SPAN>
it works as a ArcGIS tool perfectly and generate the polygon output:

Then I shared the tool as Geoprocessing service. when I run the service on my ArcCatalog as follows:

I get the following error:

I do not know why the arcGIS server makes the same output in the a"scratch.gdb" in the server and fails because of the "Dots" in the name. As you know, ArcGIS does not accept Dot as a layer name in file Geodatabase.