Good news !
While I have been figuring it out and looking at the help on this problem..Sigh It is been battle back and forth for me . The problem is in the Creating Mosaic Dataset..
This works ! I have made a lot of change from the original code I post yesterday...
I had to copy the code from this reateMosaicDataset example 2 (stand-alone script) ArcGIS Help 10.1
it was giving several problems.... the prjfile does not work...
so I add the the SpatialReference with WKID in it
and make sure the code in one line..example see 26
################################################################################
# CREATE FILE GEODATABASE AND THEN CREATE MOSAIC DATASET #
################################################################################
# Name: CreateFileGDB_Example2.py
# Description: Create a file GDB
# Import system modules
import arcpy,os,sys
arcpy.env.workspace = "C:/workspace"
# Set local variables
out_folder_path = "C:/workspace"
out_name = "Think.gdb"
# Execute CreateFileGDB
arcpy.CreateFileGDB_management(out_folder_path, out_name)
# Creating new Mosaic Dataset within Existing File Geodatbase
try:
gdbname = "Think.gdb"
mdname = "SeeIfThisWorks"
prjfile = arcpy.SpatialReference(26913)
noband = "3"
pixtype = "8_BIT_UNSIGNED"
pdef = "NONE"
wavelength = ""
arcpy.CreateMosaicDataset_management(gdbname, mdname, prjfile, noband,pixtype, pdef, wavelength)
except:
print "Create Mosaic Dataset failed"