Hi Aravind, thanks for the reply. When I changed the message to info in the
arcserver, here's what I got:
So I changed the desired geometry field to add to 'area_geodesic' and then
got this message:
Submitted.
Executing...
Executing (Add Geometry Attributes): AddGeometryAttributes "Feature Set"
AREA_GEODESIC FEET_US ACRES
PROJCS['USA_Contiguous_Albers_Equal_Area_Conic_USGS_version',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',0.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-96.0],PARAMETER['Standard_Parallel_1',29.5],PARAMETER['Standard_Parallel_2',45.5],PARAMETER['Latitude_Of_Origin',23.0],UNIT['Meter',1.0]]
Start Time: Wed Dec 30 11:49:05 2015
Executing (Add Geometry Attributes): AddGeometryAttributes "Feature Set"
AREA_GEODESIC FEET_US ACRES
PROJCS['USA_Contiguous_Albers_Equal_Area_Conic_USGS_version',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',0.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-96.0],PARAMETER['Standard_Parallel_1',29.5],PARAMETER['Standard_Parallel_2',45.5],PARAMETER['Latitude_Of_Origin',23.0],UNIT['Meter',1.0]]
Start Time: Wed Dec 30 11:49:06 2015
Running script AddGeometryAttributes...
Completed script AddGeometryAttributes...
Succeeded at Wed Dec 30 11:49:06 2015 (Elapsed Time: 0.21 seconds)
Succeeded at Wed Dec 30 11:49:06 2015 (Elapsed Time: 0.24 seconds)
Failed.
Could not service request.
As far as the layer list in the widget dialog I did exactly what you
described in the desktop scenario. In the widget config I selected 'user
defined' input instead of choice list or draw tool. When choice list is
selected the tool operates on the data that is copied to the server when
the service is published, which is no use to us. I want to try your model
method but I don't quite understand about the static layer that the tool
operates on - isn't that why you set the input parameters in the model? If
necessary it would be ok to have a pre-set layer to operate on but it needs
to be one of our feature services in AGOL - and I'm not quite sure how to
set that up - with the URL? I already tried to set a constant value URL in
the widget pointing to one of our services but that didn't work either gave
a similar long winded error like it succeeded but then failed at the end.
Can you tell anything about what is going on from these messages? Thanks
again, cob