POST
|
To answer my own question. Yes, if a feature services is versioned then supportsRollbackOnFailureParameter is true.
... View more
04-12-2021
02:57 AM
|
0
|
0
|
472
|
POST
|
How can I enable supportsRollbackOnFailureParameter on a feature layer. I have tried using updateDefinition with no luck. If I cannot change supportsRollbackOnFailureParameter myself, then how does a feature layer qualify to have "supportsRollbackOnFailureParameter": true? My feature service is branch versioned does that disqualify? Here is a snippet of the layer definition. I have removed some parts which I expect to not be relevant. { "currentVersion": 10.8, "cimVersion": "2.5.0", "id": 100, "name": "TestPoint", "type": "Feature Layer", "parentLayer": null, "defaultVisibility": true, "minScale": 0, "maxScale": 0, "canScaleSymbols": false, "geometryType": "esriGeometryPoint", "description": "TestPoint", "copyrightText": "", "editFieldsInfo": { "creationDateField": "created_date", "creatorField": "created_user", "editDateField": "last_edited_date", "editorField": "last_edited_user" }, "ownershipBasedAccessControlForFeatures": null, "syncCanReturnChanges": true, "relationships": [], "isDataVersioned": true, "isDataArchived": true, "isDataBranchVersioned": true, "isCoGoEnabled": false, "supportsRollbackOnFailureParameter": false, "archivingInfo": { "supportsQueryWithHistoricMoment": true, "startArchivingMoment": 1616190474000 }, "supportsStatistics": true, "supportsAdvancedQueries": true, "supportsValidateSQL": true, "supportsCoordinatesQuantization": true, "supportsCalculate": true, "supportsASyncCalculate": true, "supportsDatumTransformation": true, "advancedQueryCapabilities": { "supportsPagination": true, "supportsTrueCurve": true, "supportsQueryWithDistance": true, "supportsReturningQueryExtent": true, "supportsStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsQueryWithResultType": true, "supportsReturningGeometryCentroid": false, "supportsSqlExpression": true, "supportsQueryWithDatumTransformation": true }, "advancedEditingCapabilities": { "supportedSqlFormatsInCalculate": [ "standard" ] }, "hasMetadata": true, "hasM": false, "hasZ": true, "enableZDefaults": true, "zDefault": 0, "supportsVCSProjection": true, "allowGeometryUpdates": true, "allowTrueCurvesUpdates": false, "onlyAllowTrueCurveUpdatesByTrueCurveClients": true, "hasAttachments": false, "supportsApplyEditsWithGlobalIds": true, "supportsOidReservation": true, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "objectIdField": "OBJECTID", "globalIdField": "GlobalID", "displayField": "created_user", "typeIdField": "", "subtypeField": "", "dateFieldsTimeReference": { "timeZone": "UTC", "respectsDaylightSaving": false }, "types": [], "maxRecordCount": 2000, "supportedQueryFormats": "JSON, geoJSON, PBF", "capabilities": "Query,Create,Update,Delete,Uploads,Editing,ChangeTracking", "useStandardizedQueries": true, "standardMaxRecordCount": 32000, "tileMaxRecordCount": 8000, "standardMaxRecordCountNoGeometry": 32000, "maxRecordCountFactor": 1 }
... View more
03-24-2021
09:08 AM
|
0
|
1
|
571
|
POST
|
I have enabled the Extract operation on a branch versioned feature server with data in a enterprise geodatabase. I now want to enable supportsLayerQueries such that I can make layer queries when using the ExtractChanges operation. I use the UpdateDefinition operation on this url: https://<host>/server/rest/admin/services/<folder>/<service>/FeatureServer/updateDefinition I post this: { "extractChangesCapabilities": { "supportsLayerQueries": true } } But get this error in the ArcGIS Server Manager Log: Failed to start one or more services. Service '<service>'.'FeatureServer' does not exist in folder '<folder>'. When I use this url without a folder: https://similixserver.similix.dk/server/rest/admin/services/<service>/FeatureServer/updateDefinition I get this error: Error performing update definition operation Index 1 out of bounds for length 1
... View more
09-21-2020
07:52 PM
|
0
|
2
|
881
|
POST
|
Hi Sean, I am running Pro 1.4-beta.1.utility.network+build.7199. Editor Tracking is only enabling standard fields to be auto updated. I am interested in custom fields for foreign keys to external systems that my add-in is integrating to. I need the features to be created and assigned a foriegn key in one transaction.
... View more
06-29-2017
11:35 PM
|
0
|
0
|
542
|
POST
|
Reading the documentation lead me to the answer ArcGIS Pro Concepts > Edit Session. When the datasource is a feature service, edit operations are performed in a short transaction. The result is that once the CreateRow method, which triggers the OnRowCreated event, is called on a feature, it will commit the new feature in one single call to the feature service before the OnRowCreated event is triggered. Further changes to the feature, done during handling the OnRowCreated event, will not be committed unless the Store method is called on the feature resulting in another call to the feature service. I added this code after I have done the necessary changes to the row/feature in the OnRowCreated event handler: var serviceConnectionProperties = rowChangedEventArgs.Row.GetTable()?
.GetDatastore()?.GetConnector() as ServiceConnectionProperties;
if (serviceConnectionProperties != null){
rowChangedEventArgs.Row.Store();
} This is however not optimal as creating the feature and adding my edits to the attributes are performed in two transactions. Is it possible to accomplish this in one transaction? I have heard someone mention edit session variables that automatically can be set on the created features. Kind of like the edit user that is assigned to the feature.
... View more
06-29-2017
08:35 AM
|
1
|
0
|
542
|
POST
|
I am using the OnRowCreated event to set attribute values when a feature is created in the map. This is working fine when the data source is a feature class in a file geodatabase. It is, however, not working when the data source is a versioned feature service feature class (A utility network service). I get no errors, but my attributes is not populated with data after the OnRowCreated event is handled. Suggestions? BR Jonas
... View more
06-28-2017
06:14 AM
|
0
|
3
|
916
|
POST
|
I was actually running ArcGIS Pro 1.4. After updating to 1.4.1 the problem is gone. Thx.
... View more
06-08-2017
12:16 AM
|
0
|
0
|
590
|
POST
|
I have added a Add-in Module project in Visualt Studio with default settings and added a ArcGIS Pro Dockpane with BurgerButton control with default settings - no changes at all. When running the project I get a NullReferenceException before hitting any breakpoints in the code and before ArcGIS Pro has launched. I see the ArcGIS Pro splash screen and then I get the exception in Visual Studio. Adding an ArcGIS Pro Button works. The error message is: "An unhandled exception of type 'System.NullReferenceException' occurred in mscorlib.dll" I am using Visual Studio 2015 Update 3 and ArcGIS Pro SDK 1.4.0.7198. Any ideas? Best Regards Jonas
... View more
06-07-2017
06:16 AM
|
0
|
2
|
1000
|
Title | Kudos | Posted |
---|---|---|
1 | 06-29-2017 08:35 AM |
Online Status |
Offline
|
Date Last Visited |
04-19-2021
11:01 PM
|