POST
|
That worked. I added the code as a widget and added to an experience to intercept the query.f == 'pbf' with query.f = 'json'. The only thing i don't understand is why I only had to do the intercept once, meaning it only hits the breakpoint on the first call. All subsequent calls to same url don't reach the "before" breakpoint. Anyways, this was the solution i was looking for. Here is the test widget for others with this problem. This was build with ExB 1.8. import { moduleLoader } from 'jimu-core';
import React, { Component } from 'react';
class MyCustomWidget extends Component {
render() {
(async () => {
const [esriConfig] = await moduleLoader.loadModules(['esri/config']);
console.log("loading esri/config:" + esriConfig);
const myInterceptor = {
urls: [/\/server\/rest\/.*/],
before: function (params) {
//We intercept the pbf on the first call, All subsequent calls seem to follow the json rule, so after the first intercept this works
if (params.requestOptions.query.f == 'pbf' && params.requestOptions.query.resultType != 'tile') {
console.log('Intercepted request:', params);
console.log('esriConfig.request params.url = ' + params.url)
params.requestOptions.query.f = 'json';
}
else
{
console.log('SKIPPED esriConfig.request params.url = ' + params.url)
console.log('SKIPPED params.requestOptions.query.f = pbf = ' + params.requestOptions.query.f )
console.log('SKIPPED params.requestOptions.query.resultType = ' + params.requestOptions.query.resultType)
}
}
};
esriConfig.request.interceptors.splice(0, 0, myInterceptor);
})();
return (
<div>
<h1>Interceptor Widget</h1>
</div>
);
}
}
export default MyCustomWidget;
... View more
04-09-2025
12:50 PM
|
0
|
1
|
426
|
POST
|
I am trying to implement an interceptor in my Experience Builder 1.8 custom widget. Upgrading to latest Experience builder custom install is not an option right now. I need to intercept a url request and get json as the response and NOT pbf. This will fix an error I have with EXB1.8 and Enterprise 11.4. I have read and tried to implement an interceptor, but not able to get it to actually work? Where in the Experience builder client code would I place this interceptor (file?) and/or what am I missing here. Currently I am just putting this in my Widget.tsx file of my custom witdget and it never gets fired. Where do I put this in client directory? Currently I have at client/your-extenstions/widgets/CustomNavbar/src/runtime/widget.tsx import esriConfig from '@arcgis/core/config.js';
const myInterceptor = {
before: function (params) {
// Modify the request here
console.log('Intercepted request:', params);
return params;
},
after: function (response) {
// Modify the response here
console.log('Intercepted response:', response);
return response;
},
error: function (error) {
// Handle errors here
console.log('Intercepted error:', error);
return Promise.reject(error);
}
};
esriConfig.request.interceptors.splice(0, 0, myInterceptor);
... View more
04-07-2025
09:57 AM
|
0
|
3
|
507
|
POST
|
Yes we did. Whenever we publish a database layer as a feature layer it seems to be happening in experience builder. Only for the zoom to function of the table or the code? The layer draws correctly and you can select/indentify, but something about the geometry of northern hemisphere is causing the issue. We are able to copy a small subset of the data to the machine ArcGIS pro is running on, publish as feature layer, and that works. But that doesn’t work for what we need. When we try and publish that same small subset from our database we continue to have the zoom to issue
... View more
02-05-2025
04:39 AM
|
0
|
0
|
1345
|
POST
|
It seems that when I publish my feature service and use the web map in Experience builder, everything in northern hemisphere returns this error. I add the Web Map to my experience builder, then add one of the layers as a table widget. When I click on any polygon in the table that is in the northern hemisphere it returns a network error with 440 "Unable to perform query operation.". It appears that when it attempts to use the YMax/YMin and query my feature service/layer it is unable to do so? This worked publishing in ArcMap, but ArcGIS Pro Runtime is causing this issue when it didn't previously. My data seems to not be able to be queried from Experience builder. What is strange, is that when I add the layer individually to Experience Builder outside of the web map. I can add it as a table sheet and zoom to it fine. But when I add that same layer from the Web Map to a sheet and zoom to it, it fails with blank screen and PBF and 400 errors.
... View more
02-04-2025
08:59 AM
|
0
|
0
|
1354
|
POST
|
I think I am having this same issue. I am using OOB Experience Builder and getting PBF errors on my queries. My feature service only has "Supported Query Formats: JSON" while my layers have "Supported Query Formats: JSON, geoJSON, PBF". Where do i make your above change?
... View more
01-30-2025
09:11 AM
|
0
|
0
|
571
|
POST
|
This appears to still be an issue that I cannot resolve? I have a feature service that when I "Zoom to" one of the records it comes back with the error of "Error while parsing FeatureSet PBF payload".
... View more
01-30-2025
09:05 AM
|
0
|
0
|
1230
|
POST
|
Did anyone ever figure our what caused this issue and how to resolve it? I have tried almost everything but still have problems with some of my layers
... View more
01-30-2025
08:56 AM
|
0
|
0
|
849
|
POST
|
Now I am not sure that the PDB error is the exact cause of the problem. I made a simple Experience Builder app with a map and a table. And added some worldwide polygons that we have from various countries. When I click on the table for some polygons in South America and Africa and "Zoom To" it works. When I try it with some other fields, most notably the North American fields, the map goes blank. In the Developer Tools of browser i see this for the North America fields but not for some other world wide fields. {"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to perform query operation."]}} This is the response from the query when you click Zoom To on the Experience Builder Table. I believe the Geometry is bad on the request, as if I change this {"spatialReference":{"latestWkid":3857,"wkid":102100},"xmin":-10517123.595814211,"ymin":-99926432.82529502,"xmax":-10516512.09958793,"ymax":-99925821.32906874} To pretty much anything else it goes through or at least doesn't give an error. This is all OOB widgets, only my data is from me. I am guessing my geometry is bad somewhere, but not sure why the Update to the ArcGIS Pro Runtime made this happen?
... View more
01-29-2025
02:31 PM
|
0
|
0
|
1394
|
POST
|
Are you saying that my feature service that I point to in my Experience Builder app has to be updated. My admin says he ran the batch upgrade process on the Feature Service previously created in ArcMap to get it to ArcGIS Pro when he upgraded the Runtime. We need to run the manual process? The Feature layer does load, but when we apply a query to it we get the above errors. We will try your fix and get back to you, but would like to know how the layer loads on the Experience builder map, but the query causes this problem to show up. Right now, When I look at our feature layer in question it shows the supported query formats like below Supported Query Formats: JSON, geoJSON, PBF Doesn't this look right, or do we have to do the publish using ArcGis Pro and it should be good.
... View more
01-23-2025
12:17 PM
|
0
|
1
|
1461
|
POST
|
name: 'query:parsing-pbf', details: {…}, message: 'Error while parsing FeatureSet PBF payload' I have a simple Experience Builder app that I inherited but it seems to have an issue after I recently upgraded my Feature Services using the ArcGIS Pro Runtime. After upgrading using the Pro Runtime, it get the following errors when I use the Search widget or I click on a table item to select/zoom to a polygon? My map just goes empty. My map works and is populated before i do the search. And when i use postman the URL works and returns both PBF and Json. I see that my feature services now support PBF and my app seems to have problems parsing PBF. I am currently on ArcGIS Server 10.9.1 and we upgraded our Feature Services using the ArcGIS Pro Runtime. This worked before we did the upgrade, but we have to upgrade and we don't have a choice to use the old Arc Map. I need to figure out what is happening. name: 'query:parsing-pbf', details: {…}, message: 'Error while parsing FeatureSet PBF payload' "Error: Invalid data type!\n at f.skip (https://js.arcgis.com/4.23/esri/core/workers/init.js:226:109)\n at f.fromBuffer (https://js.arcgis.com/4.23/esri/views/2d/layers/features/Pipeline.js:792:11)\n at g.<anonymous> (https://js.arcgis.com/4.23/esri/views/2d/layers/features/Pipeline.js:711:522)\n at Generator.next (<anonymous>)\n at h (https://js.arcgis.com/4.23/esri/core/workers/init.js:58:236)\n at q (https://js.arcgis.com/4.23/esri/core/workers/init.js:62:427)" Error: Invalid data type
... View more
01-22-2025
11:09 AM
|
0
|
7
|
1492
|
POST
|
Did anyone get a resolution to this? We just upgraded to the ArcGIS Pro runtime and have the exact same issue with the Feature Services. Any suggestions would be great and very much appreciated
... View more
01-22-2025
10:13 AM
|
0
|
0
|
408
|
POST
|
I have tried everything. I even tried creating a map template to load and it still fails. To reproduce the issue, either uninstall and reinstall ArcGIS Pro 3.3, then run the above configuration code before you ever open ArcGIS Pro by itself, or try and just delete the StrongName folders and then run the above configuration code before you ever open ArcGIS Pro by itself.
... View more
06-19-2024
05:03 AM
|
0
|
0
|
552
|
POST
|
I have had similiar issues to this in the past, but get by with creating a blank map in Out of Box ArcGIS Pro, but I can't do that in this situation. I have a configuration that all of my users install and use. They don't every open ArcGIS Pro. We upgraded the configuration code and then the users to ArcGIS Pro 3.3 this week. The users then just strictly run our configuration, but they fail on the initial load with below code trying to create a map project. The only way around this after the failure is to first delete the strongname folders, then load out of box ArcGIS Pro, load a blank map, then close. Then they are now able to run our configuration and make a new project. But the below code does not work unless a blank map has been previously loaded once using arcgis pro out of box. Is there anyway around having to have our users load a map before running our configuration. var cps = new CreateProjectSettings()
{
Name = defaultName,
LocationPath = DefaultFolder(),
TemplateType = TemplateType.Map
};
if (!Directory.Exists(cps.LocationPath))
{
Directory.CreateDirectory(cps.LocationPath);
}
//This line fails and shuts down my Configuration
var newProject = await Project.CreateAsync(cps);
... View more
06-18-2024
12:30 PM
|
0
|
2
|
573
|
POST
|
I see configurationfolder is still available in the wiki. I am moving my code to latest ArcGIS pro 3.2.x and we use configurationfolder to keep users on the latest version. Is this going away? https://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS-Pro-Registry-Keys Also, I am still trying to get away from a registry/local drive to have as my configuration folder. I want users to be able to use my application and have it point to my latest configuration when they aren't on my companies network. I currently put the proconfigx on company drive and users always have the latest. But I would prefer to move to portal or sharepoint location. Can anyone think of an available solution to have Pro look to the portal/url for update first. This would be ideal for us.
... View more
02-13-2024
06:26 AM
|
0
|
1
|
527
|
POST
|
Was this NOT depricated? I still see configurationfolder in the documentation https://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS-Pro-Registry-Keys Also, I am still trying to get away from a registry/local drive to have as my configuration folder. I want users to be able to use my application and have it point to my latest configuration when they aren't on my companies network. I currently put the proconfigx on company drive and users always have the latest. But I would prefer to move to portal or sharepoint location.
... View more
02-12-2024
12:20 PM
|
0
|
0
|
645
|
Title | Kudos | Posted |
---|---|---|
1 | 08-23-2018 06:49 AM | |
1 | 08-02-2023 08:28 AM | |
1 | 01-03-2020 10:54 AM | |
1 | 11-30-2017 06:41 AM | |
1 | 08-20-2018 01:10 PM |
Online Status |
Offline
|
Date Last Visited |
04-09-2025
12:44 PM
|