POST
|
Hi all, we are instantiating the default print widget for a web app, by populating the printServiceUrl. Our printing service is set to asynchronous execution mode. JavaScript SDK version is 4.27 and ArcGIS Server is 11.1. Everything is working fine, but every time we instantiate the widget, our ArcGIS Server logs are "polluted" with this message: "Error performing execute operation Error handling service request :Request type is not supported. 'Execute' asynchronous GP service." We checked a bit the code, it seems that it is coming from the PrintingViewModel class, when it is trying to load the resources of the service. Can you please help us with that? The problem here is that we have a lot of users that use the print widget, and it becomes difficult to read the log files in case of a real emergency. Thank you in advance. (tagging some people that might find this information relevant 😀 ) @HeatherGonzago Edit: We detected something else too. We are having some custom templates and when the printViewModel._getPrintTemplatesFromService is executed, the choiceList is resorted and the defaultValue is changing for some reason. So the default value is a specific template and not the first one. The choicelist is not as it is on the server.
... View more
08-02-2023
08:42 AM
|
0
|
0
|
223
|
POST
|
Hi @dndhm, we did customize the editor tsx but not the FeatureForm. It is not recommended to customize widget's tsx 😁 and as from Release 4.27 it is officially deprecated (further information here). Just for reference, we extended the editor's tsx and we override the render function e.g. render() {
const element = super.render();
// custom code
return element;
} In your case, the Editor widget exposes the featureFormViewModel but not the featureForm tsx (or does it? I couldn't find it). Normally, you may configure the featureFormViewModel.formTemplate (example here). If you want to achieve something more advanced, then I can think of these two ways forward: Instanciate a new CustomFeatureForm() which extends from FeatureForm (or from esri.widgets.Widget) and you customize the UI (old legacy approach, not recommended) You create a new custom ui, perhaps by using calcite design components, or based on your own ui framework e.g. react, (or both 😎), and you use the featureFormViewModel to develop your logic behind the UI. You can extend the viewmodel with extra custom methods and whatnot (recommended approach, further information here) Hope i have helped 😊
... View more
07-12-2023
07:23 AM
|
0
|
0
|
168
|
POST
|
Hi @David_Brooks , thank you for the reply! The service is available to everyone, no authorization is required. We don't send the request from a browser, but from another C# Rest API, using HttpClient. In this case, we don't have cookies.
... View more
07-10-2023
02:06 AM
|
0
|
0
|
533
|
POST
|
Hi @A_Wyn_Jones , thanks for the idea! The NAS is not using DFS. Apparently there is a High Availability NAS package? something like that.
... View more
07-07-2023
08:23 AM
|
0
|
0
|
563
|
POST
|
Hi @A_Wyn_Jones , thanks for the fast reply! We are using web adaptor and the config store is in internal shared folder on a NAS system, highly available. Turning on the debug logging might be a good idea but we don't know when the issue is happening so we will have some trouble with space for the logs... I will see what we can do about this.
... View more
07-06-2023
04:21 AM
|
0
|
2
|
614
|
POST
|
Hi all, We have a 10.9.1 ArcGIS Enterprise system with high availability and IWA. It has two ArcGIS Server machines. The PrintingTools REST API is available to everyone (in synchronous mode), no authentication is necessary. We have a custom C# Web .NET API, that is calling the REST API. The request that we sent includes the parameter WebMapAsJSON with three layers, all of them accessible to everyone too. Sometimes, not always, we receive the error message 499: token required, when we try to use the default PrintingTools. The issue is not systematic. Sometimes it is happening, sometimes it is not. It is happening in both ArcGIS Server machines. We suspect that something is interrupting the service or something is failing internally and that the error message is misleading and it should return an error message more helpful. Our question is: How can we prevent the issue from happening? and Can we investigate if we can improve the error message to something more helpful? Thanks!
... View more
07-06-2023
03:12 AM
|
0
|
6
|
675
|
POST
|
Hi all, we found the solution! We need to set the Internet Explorer Enhanced Security Configuration to Off to all machines with arcgis server and arcgis datastore. I hope it will be helpful for others.
... View more
06-27-2023
03:44 AM
|
0
|
1
|
1805
|
POST
|
Hi all, we are using the tool FeatureClassToGeodatabase_conversion to copy feature classes from a file geodatabase (extension .gdb) to a mobile geodatabase (extension .geodatabase). Everything is working fine when executing it from ArcGIS Pro as standalone python script. We decided to publish it in our ArcGIS Server 10.9.1 as a service and call the geoprocessing service. Everything was working, until we upgraded ArcGIS Server to 11.1. After the upgrade, the service is successfully executed but the temporary files of the SQLite are still there. We have to stop the service to remove the lock files and "commit" the changes. My question is: with the version 11.1, do we need to do something extra to "commit" the changes? or remove the locks somehow? We have tried arcpy.management.ClearWorkspaceCache with no success. Any feedback will be very helpful!
... View more
05-04-2023
07:30 AM
|
0
|
0
|
206
|
POST
|
I have a following up question 😃 Normally, using custom widgets, we were able to extend existing esri widgets to custom ones. A sample of the code is below: import { subclass } from "@arcgis/core/core/accessorSupport/decorators";
import Editor from "@arcgis/core/widgets/Editor";
import { CalciteFlowItem } from "@esri/calcite-components/dist/components";
@subclass("app.widgets.ErrorReporterEditor")
export default class ErrorReporterEditor extends Editor {
constructor(properties: __esri.EditorProperties) {
super(properties);
}
render() { }
} We could do the same for the "View" of the widget i.e. the tsx and/or the "ViewModel" of the widget e.g. import { subclass } from "@arcgis/core/core/accessorSupport/decorators";
import { fetchMessageBundle } from "@arcgis/core/intl";
import SearchViewModel from "@arcgis/core/widgets/Search/SearchViewModel";
@subclass("app.widgets.GlobalSearch.GlobalSearchViewModel")
export default class GlobalSearchViewModel extends SearchViewModel {
private refineYourSearchMessage: string = "";
constructor(params?: any) {
super(params);
this.init();
}
} If we use a UI library of our choice, then are we able to do something similar? For example, if we could not extend esri widgets in react, then do we need to recreate e.g. the Search Widget with web/react components from scratch, instead of just extending it?
... View more
04-28-2023
04:13 AM
|
0
|
2
|
857
|
POST
|
@AndyGup we are suspecting that there is a bug with the editor widget in ArcGIS SDK for JavaScript, that impacts custom web apps and functionalities on the experience builder. It is reproducible at version 4.26.5 but not in the 4.26.1. There are further details in the comments above. Please let us know about any feedback! Thank you!
... View more
04-27-2023
02:10 AM
|
1
|
0
|
577
|
POST
|
I am having exactly the same issue with ArcGIS JavaScript 4.26.5! Did you manage to solve this? I have noticed that they have included returnServiceEditsOption: "original-and-current-features" in the EditorViewModel.js during the applyEdits. This is the case if the feature layer is using a URL and not a portaItem? There is some logic to test if the layer is a hosted one, or in AGOL. We are using the feature layer by loading a URL since we have an standalone ArcGIS Server. We also have an enterprise Portal and load the layer again with the url. @JoseBanuelos , @ReneRubalcava , please let us know about any feedback! Thank you! EDIT: we downgrade to version 4.26.1 and it works fine 😅
... View more
03-29-2023
05:13 AM
|
2
|
4
|
1101
|
POST
|
Great, it's more clear for us now! Thank you for the response
... View more
03-02-2023
01:08 AM
|
0
|
0
|
978
|
POST
|
Hi @AndyGup , thanks for the reply! Just to clarify, if we start to develop a new custom web app, is it OK to use esri custom widgets UI framework ? We got a bit worried with this deprecation flag at the github project 😅
... View more
03-01-2023
01:08 AM
|
0
|
5
|
1012
|
Title | Kudos | Posted |
---|---|---|
1 | 04-27-2023 02:10 AM | |
2 | 03-29-2023 05:13 AM | |
1 | 02-28-2023 06:51 AM | |
1 | 02-27-2023 01:25 AM | |
1 | 08-17-2021 03:11 AM |
Online Status |
Offline
|
Date Last Visited |
02-28-2024
12:04 AM
|