POST
|
We have an old app, which edits a Secured Feature Service. On ApplyEdits, we recently started getting an error in response body : {"addResults":[{"success":false,"error":{"code":635,"description":""}}],"updateResults":[],"deleteResults":[]} I want to know what code 635 means? Server is 10.6 Also, when I edit from the REST endpoint method and send the a payload, the response to ApplyEdit is success:true. This confirms the FS and the DB works. But what is error 635?
... View more
2 weeks ago
|
0
|
0
|
87
|
POST
|
ArcObjects, V10.5 SOE development Visual Studio 2015 I have followed each step to set up a remote debug of my SOE: 1. Download and configuring Remote tools on the development to enable the remote debug, using msvsmon.exe 2. Enabled remote connection for any user. 3. Allowed the SOE to be debugged on AGS 4. Enabled Symbols in Visual Studio, in tools>options>debugging MS symbols and ESRI symbols. How to load the SOE symbols / pdb file? I simply copied the SOE pdb file to SymbolsCache folder. 4. Attached and restarted the Map Service 5. Attached the Process using the PID in Visual Studio I could not make it work.
... View more
08-01-2018
01:42 PM
|
0
|
1
|
2003
|
POST
|
I am developing a Sencha Touch mobile app and need a drawing toolbar in the app. I followed the same procedure of creating a new draw toolbar, etal. But when I press a button to activate either a point, line or a polygon type to draw I get this error: "cannot read property 'navigationManager' of undefined" Any clue on how to rectify it? Strangely, it worked when I navigate to some other module and revisit the draw module it does not reproduce the error. Also, I am able to touch and draw a line, but not a polygon or a point.
... View more
01-06-2014
12:51 PM
|
0
|
1
|
1426
|
POST
|
Hi, Would it possible for you to share the sample code file with me. I am trying to build a Sencha touch app first time. How do I load the dojo esri/map into the MapViewPage of my Sencha solution? I was hoping something like this will work: Ext.define('MobApp.view.ViewMapPage', {
extend: 'Ext.form.Panel',
xtype: 'ViewMapPage',
requires: [
'esri/map'
],
Hi, I am using esri maps in our sencha touch application. The click event on the map does not get fired on mobile (Safari browser on iPad) but works just fine on a desktop (Chrome). The same code taken out of Sencha touch works just fine. My end goal is to show an info window popup when a user clicks on a map graphic. I am thinking of catching a 'singletap' event supported by sencha touch and somehow fire a click event that esri understands. esri requires a MouseEvent object with mapPoint and screenPoint properties. I can get the x and y coordinates where the user clicked using the arguments passed to singletap event. Does anyone know how to construct that MouseEvent object manually and how to then programmatically trigger a click event using pure JavaScript, dojo, or senha touch? Has anyone come across this issue before? I have found some older forums with similar problems but the solutions are outdated and do not apply to the latest versions. One of the solutions was to catch a MouseGesture event but I do not see that in the list of supported events in the latest ArcGIS API for JavaScript. I am using Sencha Touch 2.2.1 and ArcGIS for JavaScript 3.6 My code snippets
// esri code
require([
"esri/map",
"esri/dijit/InfoWindowLite",
"esri/InfoTemplate",
"esri/layers/FeatureLayer",
"dojo/dom-construct",
"dojo/domReady!"
], function(
Map,
InfoWindowLite,
InfoTemplate,
FeatureLayer,
domConstruct
) {
var map = new Map(mapId, {
basemap: "streets",
center: [-100.16, 48.16], // north america
zoom: 3
});
map.on('click', function() {
alert('clicked');
});
/*
map.on('mouse-down', function() {
alert('mouse-down');
});
map.on('mouse-up', function() {
alert('mouse-up');
});
*/
});
// sencha touch view definition code
Ext.define('myApp.view.EsriMap', {
extend: 'Ext.Container',
xtype: 'esrimap',
config: {
items: [
{
xtype: 'component',
id: 'map'
}
]
}
});
// senha touch controller code
this.getEsriMapComponent().bodyElement.on('singletap', function(event, node, options, eOpts) {
console.log('singletap');
console.log(event);
console.log(node);
console.log(options);
console.log(eOpts);
});
Thanks for your help.
... View more
11-19-2013
01:13 PM
|
0
|
0
|
898
|
POST
|
I am having a peculiar issue, first time for me. The issue is I have a custom editor tool with my map application. While the application was in html and js, everything was fine. But I moved the page with a Asp.net Master page. Since then I see that there is an 'offset' when I draw a line for cut operation, like when the mouse is at a location on the screen, the drawing it actually 1'' below it. Need suggestion/solution urgently.
... View more
09-27-2013
05:33 AM
|
0
|
0
|
506
|
POST
|
There is a GP model that updates the featureclass with new data every night, with a windows scheduled task. The application server is a Windows Server 2008 and ArcGIS Server 9.3.1 with ArcSDE 9.3.1. The services are MXD based, AGSSOM.exe is used to stop ans start the services, but the model is unable to complete the update task as the undelying feature tables have a schema lock. I have to kill the connections and manually update by the model everyday. It is strange, as the same model had worked for more than 2 years now on the same 9.3.1 AGS. Any suggestions and reasons for this to be happening?
... View more
01-31-2013
11:00 AM
|
0
|
0
|
1393
|
POST
|
How to tackle the identify of points at the same location. Say point A and B are at same location (x,y). I tried all GeometricRelationshipType to see it I can get the featurereader from a queryfilter using the map click geometry + searchenvelope I am able to read only one feature. [HTML] searchEnvelope = new Envelope(searchMapPoint.Coordinate, searchMapPoint.Coordinate); double mapTol = mapCntrl.ToMap(3); searchEnvelope.Resize(mapTol, mapTol); if (featureLayer.GeometryType == GeometryType.Point) queryFilter = new QueryFilter(searchEnvelope, GeometricRelationshipType.Any, "", true); FeatureDataReader featureDatareader = featureLayer.GetDataReader(queryFilter);[/HTML]
... View more
12-04-2012
12:37 PM
|
0
|
1
|
721
|
POST
|
It needs a FID- create it like this: editRow[featureRTS.FidColumnIndex] = -1 * int.Parse(editRow["ObjectID"].ToString()); It will work. WHAT WE NEED Guidance on how to identify the causes of the issues we are having adding a new point to the layer. Is it a process problem? Is it a code problem? If so, who can help us identify the failure points? The full source code is available if it would be helpful for you to decipher the issue. We have created our project in Visual Studio 2008 .net 2.0. What we can do: - Run the project in Debug mode through Windows Mobile 6 classic Emulator - Load a MobileCache of 6 Feature Layers �?? 3 editable with existing feature points & 3 as background data - ZoomIn, ZoomOut, Pan, IdentifyFeature on map using toolbar control - Load Existing Feature Data to screens when using the IdentifyFeature toolbar function What we can�??t do (identified so far): - Adding new Feature Point - How we are attempting this: - Click toolbar button - Click map to add new feature - Run code that we have sourced from multiple different online examples in an attempt to add a new point �?? we have had several different stages of errors thrown from the �??The geometry is empty�??, to completely destroying the MobileCache Example of current relevant code private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { switch (toolBar1.Buttons.IndexOf(e.Button)) { case 0: MapMain.CurrentMapAction = zoomInMapAction1; break; case 1: MapMain.CurrentMapAction = zoomOutMapAction1; break; case 2: MapMain.CurrentMapAction = panMapAction1; break; case 3: MapMain.CurrentMapAction = null; break; case 4: MapMain.CurrentMapAction = addVertexSketchTool1; break; default: break; } } private void MapMain_MouseDown(object sender, ESRI.ArcGIS.Mobile.MapMouseEventArgs e) { if (MapMain.CurrentMapAction == addVertexSketchTool1) { AddNewFeaturePoint(); } } private void AddNewFeaturePoint() { sketchGraphicLayer1.Geometry = new ESRI.ArcGIS.Mobile.Geometries.Point(); FeatureLayer locationLayer = mobileCache1.Layers["Location"] as FeatureLayer; using (FeatureDataTable locationTable = locationLayer.GetDataTable()) { DataRow locationRow = locationTable.NewRow(); locationRow.BeginEdit(); locationRow["LocationID"] = Guid.NewGuid(); locationRow[locationLayer.GeometryColumnIndex] = sketchGraphicLayer1.Geometry; locationRow.EndEdit(); locationTable.Rows.Add(locationRow); locationTable.SaveInFeatureLayer(); DataRow[] errors = locationTable.GetErrors(); for (int i = 0; i < errors.Length; i++) { if (errors.HasErrors) { DataColumn[] colArr = errors.GetColumnsInError(); for (int j = 0; j < colArr.Length; j++) { MessageBox.Show(string.Format("Error '{0}' in column '{1}'.", errors.GetColumnError(colArr ), colArr .ColumnName)); } } } } }
... View more
11-25-2012
06:02 PM
|
0
|
0
|
677
|
POST
|
Message = "The record is not initialized or is closed. " What does this mean? CachedEditSate = 'reader.CachedEditSate' threw an exception of type 'System.InvalidOperationException'
... View more
11-25-2012
02:33 PM
|
0
|
0
|
2539
|
POST
|
I have two point layers. If a feature from featurelayer A is removed, it is moved to another featurelayer B as the requirement is for archiving deleted features of A in featurelayer B. Its not working some how. similar thing worked for an earlier app. Found this error as well: RowError = "The fid value is invalid for a new feature, must be smaller than zero" here is the code: MapLayer layerTS = Map.MapLayers["xxxx"];
MobileCacheMapLayer mblCl1 = layerTS as MobileCacheMapLayer;
FeatureLayer featureTS = (FeatureLayer)(mblCl1.Layer);
MapLayer layerRTS = Map.MapLayers["Removedxxxx "];
MobileCacheMapLayer mblCl = layerRTS as MobileCacheMapLayer;
FeatureLayer featureRTS = (FeatureLayer)(mblCl.Layer);
FeatureDataTable ftableRTS = featureRTS.GetDataTable();
FeatureDataTable ftableTS = selectedDataRow.Table as FeatureDataTable;
FeatureDataRow editRow = ftableRTS.NewRow();
editRow.BeginEdit();
editRow.Geometry = selectedDataRow.Geometry;
foreach (DataColumn clm in featureTS.Columns)
{
if (featureRTS.Columns[clm.ColumnName] != null && clm.ColumnName != "SHAPE" && clm.ColumnName != "GlobalID")
{
if (ftableRTS.Columns.Contains(clm.ColumnName))
{
editRow[clm.ColumnName] = selectedDataRow[clm.ColumnName];
}
}
}
ClearDataTableErrors(ftableRTS);
ftableRTS.Rows.Add(editRow);
editRow.EndEdit();
cntEdit =featureRTS.SaveEdits(ftableRTS);
cntEdit = -1;
cntEdit = ftableRTS.SaveInFeatureLayer();
//remove from the feature class
foreach (FeatureDataRow row in ftableTS.Rows)
row.Delete();
cntEdit = -1;
if (ftableTS.AllowModify)
selectedDataRow.Delete();
cntEdit = ftableTS.SaveInFeatureLayer();
ftableTS.AcceptChanges();
ftableRTS.AcceptChanges();
... View more
11-20-2012
05:06 AM
|
0
|
0
|
525
|
POST
|
I am trying to sync between the mobile cache and a secured rest map service for mobile. Though I do not get error, but nothing is sync, no results. What's wrong in code. MobileCacheSyncResults MobileSyncResults;
MobileSyncResults = new MobileCacheSyncResults();
try
{
MobileServiceConnection MobileServiceConnection;
MobileServiceConnection = new MobileServiceConnection();
//MobileServiceConnection.TokenCredential = new ESRI.ArcGIS.Mobile.CatalogServices.TokenCredential();
//MobileServiceConnection.TokenCredential.UserName = @"xxxx";
//MobileServiceConnection.TokenCredential.Password = @"xxx2";
MobileServiceConnection.Url=@"http://xxxx/ArcGIS/rest/services/xx/xx/MobileServer?token=6U0ieIXOpLa6X0bnxaCrxFij7b-w252hF08jysacxPiqnXIB9ZFEZDO2a6jrKT45JoepaEXfbi9cl-Ij8Z7bKYwxdph48uBPW-mz9rN4wIl_u1i3FOJ_BVyMAx5gBc4A4uuFouwI-2CIi_cnt6gk0m4xB8PU4BjFbmQ1xJ1ovo4";
MobileCache MobileCache = CoM_MobileInfrastructureClass.Resources.PassFeatureReader.MobileCache;
MobileServiceConnection.WebClientProtocolType = WebClientProtocolType.SoapWebService;
//// Use MobileCacheSyncAgent to download data from server
MobileServiceConnection.CreateCache(MobileCache);
MobileCache.Open();
MobileCacheSyncAgent SyncAgent;
SyncAgent = new MobileCacheSyncAgent(MobileCache, MobileServiceConnection);
//// Open MobileCache and sync
SyncResults results = SyncAgent.Synchronize();
ESRI.ArcGIS.Mobile.Geometries.Envelope evp = MobileCache.GetExtent();
MobileSyncResults = SyncAgent.DownloadExtent(evp, 0, 1000000);
... View more
11-17-2012
01:35 PM
|
0
|
0
|
2929
|
POST
|
I have some points feature layer in which several point features overlap because they are on same location. In the Web application that is a back end for the project, I was able to cluster and flare out the points. But in the Mobile API, I am looking for similar or any other way to be able to break apart the points data to enable select of each point for mobile edits.
... View more
10-30-2012
06:59 AM
|
0
|
0
|
421
|
POST
|
None currently. I have gotten around the problem by making use of compact framework and MS sync framework.
... View more
10-30-2012
06:38 AM
|
0
|
0
|
189
|
POST
|
Sanjay, A bit more info please. Just exactly how are the servers made public? Port 80 is already open. Here is an architecture I put in place for a client, Diagram. Just put a Server box in DMZ with a NAT etc. Set a firewall rule to allow the DMZ AGS to access the DB servers. Also explore the Reverse Proxy set up.
... View more
10-25-2012
06:14 AM
|
0
|
0
|
281
|
Online Status |
Offline
|
Date Last Visited |
a week ago
|