|
POST
|
We've developped a Windows app that uses ArcGIS Maps SDK .Net. That app displays and edits data from a published service on our portal that is in branch versioning. When connecting to the service, the app creates a new version and uses it. Then I do a few edits and apply them. I go back in ArcGIS Pro and I delete the version I just created so I can redo my tests in our app (meening a new version with the same name is recreated). But then the service acts really strange, some graphics are not showing when I zoom in and zoom out, some simple calls like GetRecordCount fails with bad json but when I retry them it passes and when I try to redo my edits and apply them it says that it cannot open an edit session or something like that. The only way I found to not have this problem is when I delete the version, I republish my map overriting the existing service. Then it's all good. But I think I should'nt have to do that? Can you help me understanding what's hapening please? Thank you
... View more
03-14-2025
05:33 AM
|
0
|
1
|
542
|
|
POST
|
Seems to work better with the ModelBuilder but If I make edit in a table or feature class in traditional versioning and save those edits, then the unregister command fails saying that there are edit. I have to unregister them manually and then it works.
... View more
03-14-2025
05:18 AM
|
0
|
0
|
529
|
|
POST
|
Hi, I have GDB that is register as Traditional versionning with data in it. There is no version. Only the default and all edits have been saved. Now I want to unregister it for versionning to be able to register it again but for Branch versioning this time. And I don't want to loose my data. There are many Fetures classes (in feature datasets) and a lot of table in my GDB. So I write a python script to do that. I read every documentation possible. Here's what my script do. arcpy.management.DisableArchiving('table1') arcpy.management.UnregisterAsVersioned('table1', 'KEEP_EDIT', 'COMPRESS_DEFAULT') This works for some table but for others it don't and I can find a reason why some work and some don't. that is the error I get: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 33373, in UnregisterAsVersioned raise e File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 33369, in UnregisterAsVersioned gp.UnregisterAsVersioned_management(*gp_fixargs((in_dataset, keep_edit, compress_default), True)) File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 532, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ arcgisscripting.ExecuteError: ERROR 000101: The dataset xyzx.sde.table1 contains edits to some versions. Failed to execute (UnregisterAsVersioned). But If I do this using the UI, it works fine. I don't want to click "Manage", ok, etc for all the elements in my GDB. There are more than 100... Can you help?
... View more
02-26-2025
09:52 AM
|
0
|
2
|
694
|
|
POST
|
I disabled ssr in my angular.json file and it seems to work. "prerender": false,
"ssr": false
... View more
11-26-2024
09:51 AM
|
0
|
0
|
775
|
|
POST
|
import { Component, Inject, OnInit, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule, DOCUMENT } from '@angular/common';
import IdentityManager from "@arcgis/core/identity/IdentityManager";
import ServerInfo from "@arcgis/core/identity/ServerInfo";
@Component({
selector: 'app-home',
standalone: true,
imports: [ CommonModule ],
providers: [ ],
templateUrl: './home.component.html',
styleUrl: './home.component.scss',
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class HomeComponent implements OnInit {
constructor() { }
ngOnInit(): void {
var si = new ServerInfo({
hasPortal: true,
server: 'http://myportal.mydomain.com/arcgis',
});
IdentityManager.registerServers([si]);
IdentityManager.getCredential(environment.portalUrl);
IdentityManager.checkSignInStatus(si.server + "/sharing")
.then(() => {
console.log("checkSignInStatus: User is signed in.");
})
.catch(() => {
console.error("checkSignInStatus: User not signed in.")
});
}
} I'm developping an Angular 19 app using @ArcGIS/core && @ArcGIS/map-components and thing are going well. Only thing left to do is the portal authentication (get a token). Is there a sample somewhere to help me. I find stuff here and there some with deprecated stuff, some in pure JS but I want to do it cleanly with Angular. I have tried this but I get this erreor after the build: Error when evaluating SSR module.. ReferenceError: ResizeObserver is not defined Can you help with a sample please? import { Component, Inject, OnInit, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule, DOCUMENT } from '@angular/common';
import IdentityManager from "@arcgis/core/identity/IdentityManager";
import ServerInfo from "@arcgis/core/identity/ServerInfo";
@Component({
selector: 'app-home',
standalone: true,
imports: [ CommonModule ],
providers: [ ],
templateUrl: './home.component.html',
styleUrl: './home.component.scss',
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class HomeComponent implements OnInit {
constructor() { }
ngOnInit(): void {
var si = new ServerInfo({
hasPortal: true,
server: 'http://myportal.mydomain.com/arcgis',
});
IdentityManager.getCredential(environment.portalUrl);
IdentityManager.registerServers([si]);
IdentityManager.checkSignInStatus(si.server + "/sharing")
.then(() => {
console.log("checkSignInStatus: User is signed in.");
})
.catch(() => {
console.error("checkSignInStatus: User not signed in.")
});
}
}
... View more
11-26-2024
07:03 AM
|
0
|
1
|
797
|
|
POST
|
November 2024, Has anyone found a way to set the extent of a feature layer?
... View more
11-19-2024
11:13 AM
|
4
|
0
|
1014
|
|
POST
|
Found this to add a Shapefile too! 🙂 https://developers.arcgis.com/net/uwp/sample-code/feature-layer-shapefile/
... View more
09-12-2024
12:48 PM
|
0
|
0
|
705
|
|
POST
|
Hi Is it possible to use a local TIFF, MXD or PDF file has a a basemap in a MapView? Or just add it has a layer? Or does it has to be absolutly a raster layer on a portal. Thank you
... View more
09-04-2024
11:52 AM
|
0
|
2
|
802
|
|
POST
|
Thanks, hope they will resolve this soon. Meanwhile do you have a sample of the WebView2 use?
... View more
08-22-2024
09:24 AM
|
0
|
3
|
2969
|
|
POST
|
We<re building a WPF windows app with ArcGIS Maps SDK .Net. First thing we did was put in place oAuth2 authentification for our partal and our ArcGIS Online. That was working fine for the last 10 months till yeaterday. Then this morning, when we try to login to our arcGIS Online the login window appear and javascript error message pops over it. Then the call to AuthenticationManager.Current.GenerateCredentialAsync(info.ServiceUri); fails... When we connect to our portal (the ArcGIS server that we host on our server) it works fine. What changed between yesterday and today? Please help.
... View more
08-22-2024
07:17 AM
|
0
|
9
|
3021
|
|
POST
|
Ok I found My problem. this: await ((ServiceFeatureTable)entity.Feature.FeatureTable).AddFeatureAsync(entity.Feature); is using the FeatureTable of the Feature to add the feature. While this ((ServiceFeatureTable)this.Table).ServiceGeodatabase.ApplyEditsAsync(); uses a Reference to the table I stocked in the class doing the operation. Somewhere thing gor mixed up and it looke like it's not the same instance of the table. so if I do AddFeatureAsync & ApplyEdits with the same table it works everytime. Sorry this was a problem located at 18 inches from the screen.
... View more
04-08-2024
05:55 AM
|
0
|
1
|
1324
|
|
POST
|
Hi, Thank you for the suggestions. Here's the result: AddFeatureAsync & ApplyEditAsync are not raising any exception After calling AddFeatureAsync, I called getAddedFeaturesCountAsync and it returned 1 like it should. I added subscription to ArcGISHttpClientHandler.HttpRequestBegin & ArcGISHttpClientHandler.HttpResponseEnd before calling ApplyEditsAsync and no event are raised. It's like ApplyEditAsync does nothing at all... The returned Result count is 0 Here's my code. await ((ServiceFeatureTable)entity.Feature.FeatureTable).AddFeatureAsync(entity.Feature); long numAdded = await ((ServiceFeatureTable)entity.Feature.FeatureTable).GetAddedFeaturesCountAsync(); ArcGISHttpClientHandler.HttpRequestBegin += ArcGISHttpClientHandler_HttpRequestBegin; ArcGISHttpClientHandler.HttpResponseEnd += ArcGISHttpClientHandler_HttpResponseEnd; IReadOnlyList<FeatureTableEditResult> results = await ((ServiceFeatureTable)this.Table).ServiceGeodatabase.ApplyEditsAsync(); ArcGISHttpClientHandler.HttpRequestBegin -= ArcGISHttpClientHandler_HttpRequestBegin; ArcGISHttpClientHandler.HttpResponseEnd -= ArcGISHttpClientHandler_HttpResponseEnd;
... View more
04-05-2024
12:41 PM
|
0
|
0
|
1356
|
|
POST
|
Hi, We're building an app with Arcgis Maps SDK .Net. I can edit geometry, like move a point no problem. But when I try to create a new point using AddFeatureAsync and ApplyEditAsync sometimes it works perfectly and all of a sudden, the ApplyEdit call returns no results. No mater what when the probleme occurs it keeps happening for a long time.. Then later on I try again and it works perfectly. I tried to diagnose the problem using Fiddler to see what is sent to the Feature Service and when no results are returned, Nothing appears in Fiddler. It's like the SDK is not sending my request at all. Here's the code. The FeatureTable is loaded.. await ((ServiceFeatureTable)entity.Feature.FeatureTable).AddFeatureAsync(entity.Feature); IReadOnlyList<FeatureTableEditResult> results = await ApplyEditsAsync(true); Here results.Count = 0... Why? How can I diagnose that further. Please help.
... View more
04-05-2024
04:27 AM
|
0
|
4
|
1391
|
|
POST
|
Ok we found out the user that was running the ArcGIS Server and added that user has sysadmin of our MsSQL server and it worked! I mean the register data store problem is no more! 🙂
... View more
03-05-2024
11:13 AM
|
1
|
0
|
3283
|
| Title | Kudos | Posted |
|---|---|---|
| 4 | 11-19-2024 11:13 AM | |
| 1 | 03-05-2024 11:13 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-18-2025
08:24 PM
|