Select to view content in your preferred language

Register custom data provider error

850
3
05-23-2023 05:33 AM
Thomas_Fuhrmann
Regular Contributor

Hi, I'm trying to register a custom data provider using the ArcGIS Enterprise SDK for node.js. When I try to register the .cdpk file that I created with cdf export <provider-name> and uploaded in the ArcGIS server admin directory, I get the following error:

JSONObject["arcgisVersion"] not found.

We are using ArcGIS Enterprise 11.1 for Windows

Update: I found out that adding

"arcgisVersion": "11.1.0"

in cdconfig.json in the provider folder helped with this error. Now I get the following error:

Node server failed to start

Update: OK, I found out that I had to use version 2 of node-fetch:

npm install node-fetch@2

Now it's working!

 

 

 

0 Kudos
3 Replies
BrandonDuBois
New Contributor

When I tried to register my provider I got the error "Custom date feed runtime not installed or configured properly".  Did you do anything to install and configure the custom data feed runtime when you upgraded to 11.1? We must have missed that step somewhere and now we can't figure it out. Any help would be appreciated. Screenshot 2023-06-05 at 3.22.00 PM.png

0 Kudos
Thomas_Fuhrmann
Regular Contributor

Yes, you have to install the custom data feed runtime on your GIS server. The runtime is available via my.esri.com.

SimonGIS
Regular Contributor

Update: OK, I found out that I had to use version 2 of node-fetch:

npm install node-fetch@2

 

Thank you for this.  I was running through the steps in the CSV sample

And got the same Node could not start error.

Added node-fetch@2 to the provider and now it registers.

SimonGIS_0-1687746067236.pngSimonGIS_1-1687746083627.png

 

0 Kudos