POST
|
If you have administrative rights to the service, at the top right in the screen before yo select a layer/table, you'll see links to Admin and API Reference. Select Admin and then when you select the layer, scroll to the bottom, your options will have changed to include Add Definition, Update Definition and Delete from Definition. Select any and it will show you the complete json for the layer. You'll find the relationship json details there.
... View more
10-11-2022
08:11 AM
|
1
|
0
|
812
|
POST
|
I've done this by entering the json into the Delete definition Input box of the Feature layer, not the service. You have to delete from both origin and destination layers and you might have to delete each relationship separately, even from the same feature layer. Example json (replace the values in square brackets with your values): { "relationships": [ { "id" : [relationshipID], "name" : "[relationshipName]", "relatedTableId" : [#], "cardinality" : "[cardinality]", "role" : "[esriRole]", "keyField" : "[keyField]", "composite" : [true/false] } ] }
... View more
10-10-2022
12:58 PM
|
1
|
2
|
1003
|
POST
|
Using ArcGIS Online with a hosted feature service. I want to export the data to a file geodatabase. Sometimes the exported file GDB is downloaded as a corrupt ZIP file . At this link, I found the possible cause might be when the feature classes in the exported hosted feature service are corrupt, or contain broken geometry https://support.esri.com/en/technical-article/000022902 I want to check the geometry before exporting. I tried with ArcGIS Pro, v2.9.1, but get this message: Does this mean that the Check Geometry tool will not work for a layer in a hosted feature service? Is there a way to check geometry of hosted feature service layers? I'm able to use the REST API, Runtime v100.14 or ArcGIS Pro,, so would welcome suggestion using any methods.
... View more
09-29-2022
04:07 PM
|
0
|
1
|
346
|
POST
|
I call the geodatabase.GetDefinition () method. This method must be called from a QueuedTask.Run. GetDefinition throws an exception if the definition doesn't exist. If there is another way to determine if a FeatureClass or Table exist, I hope someone will share it. Here is the code that can be called from a QueuedTask: public static bool FeatureClassExists(Geodatabase geodatabase, string featureClassName) { try { FeatureClassDefinition featureClassDefinition = geodatabase.GetDefinition<FeatureClassDefinition>(featureClassName); featureClassDefinition.Dispose(); // FeatureClass found, dispose of object return true; } catch { // GetDefinition throws an exception if the definition doesn't exist return false; } } If you're checking for a Table, replace FeatureClassDefinition with TableDefinition: TableDefinition tableDefinition = geodatabase.GetDefinition<TableDefinition>(tableName);
... View more
05-25-2022
01:06 PM
|
2
|
0
|
770
|
POST
|
I don't use either actualType or sqlType. I've had failures when I tried to set the sqlType. I'm not 100% sure, but I think the sqlType is set based on the backend (Enterprise systems might have different backend database systems).
... View more
01-10-2022
03:42 PM
|
2
|
0
|
724
|
POST
|
Global IDs and GUIDs have a few differences. ArcGIS actively maintains Global ID fields (that is, when a new feature is created, a GUID value is assigned), whereas, GUID fields are left blank. ArcGIS will add a GlobalID field to a layer. You cannot edit the field, so if you need to edit the value, use a GUID type field. If you want ArcGIS to automatically enter the value, use the GlobalID field. Hope this answers your question.
... View more
01-10-2022
02:57 PM
|
1
|
1
|
728
|
POST
|
Use ?f=pjson, to get json-formatted response. With the URL above, it would be: https://services3.arcgis.com/INSTANCE_I_THINK/arcgis/rest/services/newTest3/FeatureServer?f=pjson Use f=html to get result in html
... View more
01-07-2022
11:21 AM
|
1
|
1
|
628
|
POST
|
I am not trying to change the ID of the layer. I am trying to change the itemId -- which is the reference to the hosted feature service. I've changed the data source as you've indicated above, but that does not change the itemId. Using ArcGIS Online Assistant, I can see the ItemID is "330dbdc986f34ebd884b42171ff165ae". This is not the ID for the feature service 'SeabrookeFieldSeeker' as you can see from the second image. This is causing the map layers to reference a hosted feature service that is not the one in the URL.
... View more
03-10-2021
11:38 AM
|
0
|
0
|
2448
|
POST
|
Thanks for the reply but I'm trying to change the ItemID for every layer in the map to the correct hosted feature service. I can change the URL, but I need to change the ItemID to the hosted feature service. The datasource is based on the ItemID, not the URL.
... View more
03-09-2021
04:11 PM
|
0
|
2
|
2455
|
POST
|
I've created an Add-In to ArcGIS Pro to facilitate importing and publishing a web map. I have a map package that I'm importing. I need to change the data source in the map to a hosted feature service in ArcGIS Online. In the Add-In code, I have this method: private static void ResetFeatureServiceDataConnection(Layer dataConnectionLayer, string newConnectionString) { CIMStandardDataConnection dataConnection = dataConnectionLayer.GetDataConnection() as CIMStandardDataConnection; dataConnection.WorkspaceConnectionString = newConnectionString; dataConnectionLayer.SetDataConnection(dataConnection); } The parameters to this method are a map layer and the URL for the hosted feature service. This method changes the data source in the layer, but it doesn't change the ItemID.The ItemID is referencing the original data source (from the map package I imported). When I publish the map, the datasource is based on the ItemID, not the Url that I've set in the code. I've tried changing the data source from the Layer Properties in ArcGIS Pro. When I click the Set Data Source button and select the layer in my hosted feature service, the URL changes, but not the ItemID. Is there a way to change the Item ID to match the ItemID of the hosted feature service?
... View more
03-04-2021
05:43 PM
|
0
|
7
|
2624
|
POST
|
Thank you for the link. Unfortunately it does not answer my questions: 1) Can I update the standardMaxRecordcount in a hosted feature layer? 2) How does the maxRecordCountFactor impact the number of records returned?
... View more
08-20-2020
10:06 AM
|
0
|
0
|
904
|
POST
|
I have an application that does REST queries to populate data into reports; there are no maps involved. Some of the reports can contain a great deal of data-- more than 32,000 records. Is there a way to update the standardMaxRecordCount for a feature layer? The code is C#, not JavaScript--please don't suggest JavaScript answers as re-writing all of the reports at this point is not feasible. The REST API update Definition (Feature Layer) Example five shows the standardMaxRecordCount in the list of properties-but when I attempt to update using this JSON, only the maxRecordCount was modified: { "maxRecordCount" : 3000, "standardMaxRecordCount" : 40000, "maxRecordCountFactor" : 1, "exceedsLimitFactor" : 1 } How does the maxRecordCountFactor impact the number of records returned? Is there something that explains the relationship between maxRecordCount, standardMaxRecordCount, and maxRecordCountFactor.
... View more
08-12-2020
10:54 AM
|
0
|
3
|
960
|
POST
|
I know this was posted years ago, but I'm wondering if you ever figured it out? I have a similar situation where I need to login using OAuth2 behind the scenes.
... View more
05-22-2020
09:12 AM
|
0
|
0
|
615
|
POST
|
Morten, We have tasks running on a Server and the files are not getting deleted. I'm seeing files from 2 or 3 days ago when I run the code on my local machine -- and I shut it down every day-- which according to Michael should clean up the files. So besides debugging, what would prevent the files from being deleted?
... View more
04-17-2020
05:38 PM
|
0
|
2
|
1251
|
Title | Kudos | Posted |
---|---|---|
1 | 10-11-2022 08:11 AM | |
1 | 10-10-2022 12:58 PM | |
2 | 05-25-2022 01:06 PM | |
2 | 01-10-2022 03:42 PM | |
1 | 01-10-2022 02:57 PM |
Online Status |
Offline
|
Date Last Visited |
09-22-2023
03:21 PM
|