Skip to main content
Solved

FeatureReader failes to retrieve featuretypes from ArcGIS Portal Service


koen
Contributor
Forum|alt.badge.img+9
  • Contributor

We just a installed a new ArcGIS Enterprise (11.4) environment and want to connect to it with FME 2024.2

I successfully configured a Web Connection to the ArcGIS Portal using this guide.

When I try retrieve Features Services from Portal this takes very long (4min) and eventually I get the an "Error Retrieving Selections” as below 

 

I tried connecting to https://mydomain/portal/sharing/rest/portals/self directly with an HttpCaller and the same Web Connection and that gives a good response✅. So my web connection is able to connect to ArcGIS Portal successfully.

Just not with the FeatureReader. And also not with a traditional reader.

 

Any ideas on how to solve this?

Best answer by koen

Follow-up, we managed to solve it:

  • Downloaded certificates .crt from our ArcGIS Portal through browser.
  • Added missing certificates to C:\Program Files\FME\python\certifi\cacert.pem (admin access needed)

 

Problem applied to FME Flow too, added the certificates there also.

View original
Did this help you find an answer to your question?

8 replies

j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • April 9, 2025

there is always this article https://support.safe.com/hc/en-us/articles/25407556603149-FME-and-Esri-ArcGIS-Troubleshooting-Guide but the ssl issues generally relate to FME Flow… not FME Form. 

 

I suspect you need to enter a redirect URI in the web service definition under your Portal Connection. So go to web connections > manage services and then check that the redirect is 

Perhaps also double check you entered the app id, secret and Redirect Uri correctly from what you created in Porta.  You only need to enter the FME Flow redirect URI when the workspace is deployed in FME Flow

 

according to https://support.safe.com/hc/en-us/articles/25407724093837-Notes-on-FME-and-Esri-Versions-and-Compatibility  FME 2024.2 is the minimum FME version

 


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • April 9, 2025

What happens if you set verify HTTPS certificate to No?

When you make the connection with the HTTP Caller do you have Verify HTTPS Certificates set to Yes?

Can you make the same http request in a python caller?

 

I have a vague recollection that the way certificates are handled in the arcgis portal connection matches with the python caller rather than the httpcaller.


koen
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • April 9, 2025
ebygomm wrote:

What happens if you set verify HTTPS certificate to No?

When you make the connection with the HTTP Caller do you have Verify HTTPS Certificates set to Yes?

Can you make the same http request in a python caller?

 

I have a vague recollection that the way certificates are handled in the arcgis portal connection matches with the python caller rather than the httpcaller.

 

PythonCaller gives the same error.

And with Verify HTTPS Certificates set to No it seems to work.

 

So apparently FME doesn't trust the certificate of our server. How can I fix that?


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • April 9, 2025
koen wrote:

 

So apparently FME doesn't trust the certificate of our server. How can I fix that?

 

Have you verified with whoever did the ArcGIS installation that the certificates have been correctly applied? With it being a new installation it might be the problem is there not with the FME installation

 

If you go to the portal site via a web browser on the same machine that you are using FME on do you get any security warnings?


koen
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • April 9, 2025
ebygomm wrote:
koen wrote:

 

So apparently FME doesn't trust the certificate of our server. How can I fix that?

 

Have you verified with whoever did the ArcGIS installation that the certificates have been correctly applied? With it being a new installation it might be the problem is there not with the FME installation

 

If you go to the portal site via a web browser on the same machine that you are using FME on do you get any security warnings?

Yes, 

The portal does have a valid certificate:

 


j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • April 10, 2025

did you check the redirect uri

can you check that the version of FME and Arcgis Enterprise are compatible. Maybe the FME Form needs upgrading beyond the minimum FME version of 11.4 enterprise.

maybe someone from Safe software can assist here


koen
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • April 10, 2025
j.botterill wrote:

did you check the redirect uri

can you check that the version of FME and Arcgis Enterprise are compatible. Maybe the FME Form needs upgrading beyond the minimum FME version of 11.4 enterprise.

maybe someone from Safe software can assist here

 

The redirect uri in the Web Service is set to: urn:ietf:wg:oauth:2.0:oob

 

Fme and ArcGIS are compatible, see my original post.


koen
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • Best Answer
  • April 11, 2025

Follow-up, we managed to solve it:

  • Downloaded certificates .crt from our ArcGIS Portal through browser.
  • Added missing certificates to C:\Program Files\FME\python\certifi\cacert.pem (admin access needed)

 

Problem applied to FME Flow too, added the certificates there also.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings