Skip to main content
Solved

Error reading ArcGIS Online (AGOL) Feature Layer


Did this help you find an answer to your question?
Show first post

34 replies

runneals
Contributor
Forum|alt.badge.img+22
  • Contributor
  • June 26, 2019
douks851 wrote:

Still having this issue. Always having to right click the web connection and reauthenticate....then it works fine for a few weeks....but like others in this post said...the issue is then when you are doing this in scheduled tasks on servers...not very efficient ... and don't have access to prod! If anyone has some news on this let me know!

I think by default the max is set to -1 (which is basically forever). Our org has it set to that and we are running into the same issues (401 errors). We have been experiencing this on FME Server off and on again. Seems like FME should know when the refresh token expires and should re-authenticate it automagically. Have had it happen only once since we updated to 2019 and are waiting for it to happen again so we can determine if there's a pattern/persistent problem in the latest version. @carsonlam


  • June 27, 2019
runneals wrote:

I think by default the max is set to -1 (which is basically forever). Our org has it set to that and we are running into the same issues (401 errors). We have been experiencing this on FME Server off and on again. Seems like FME should know when the refresh token expires and should re-authenticate it automagically. Have had it happen only once since we updated to 2019 and are waiting for it to happen again so we can determine if there's a pattern/persistent problem in the latest version. @carsonlam

Hi runneals.

 

Can you tell me where did you see that your Org has it set to forever on ArcGIS online. I would like to check if we are the same....but have no clue where this setting is. Thanks

 


runneals
Contributor
Forum|alt.badge.img+22
  • Contributor
  • June 27, 2019
douks851 wrote:

Hi runneals.

 

Can you tell me where did you see that your Org has it set to forever on ArcGIS online.  I would like to check if we are the same....but have no clue where this setting is.  Thanks

 

I was given this link and told to look under Authorization Endpoint for more inforation about the refresh tokens.

Looking at that I found that you'll have to generate your token and then use the self call to get your org settings:

- Generate token:

 

 http://www.arcgis.com" target="_blank">https://www.arcgis.com/sharing/generateToken?f=json&username=&password=&referer=http://www.arcgis.com

 

 - Self Call: http://www.arcgis.com/sharing/rest/portals/self?f=pjson&token=*

 

Which led me to find the setting:

  "maxTokenExpirationMinutes": -1,

  • June 27, 2019
runneals wrote:

I was given this link and told to look under Authorization Endpoint for more inforation about the refresh tokens.

Looking at that I found that you'll have to generate your token and then use the self call to get your org settings:

- Generate token:

 

 http://www.arcgis.com" target="_blank">https://www.arcgis.com/sharing/generateToken?f=json&username=&password=&referer=http://www.arcgis.com

 

 - Self Call: http://www.arcgis.com/sharing/rest/portals/self?f=pjson&token=*

 

Which led me to find the setting:

  "maxTokenExpirationMinutes": -1,

Hi runneals

 

SO I've tried the urls you gave me and the settings also tells me my tokens can be set to -1 (forever)....even if ESRI's techsupport (Canada) told me you could not set this thing...they just don't know about it.  But it remains that even if I asked for an non expiring refresh token...it still expires after a while...can't put my finger on the time interval BUT THE FACT IS THAT IT EXPIRES....and leaves my scripts broken!

 

I hope Safe finds a solution for this...real real issue for us.  I will submit another case!!!  AGAIN!

 

 


annette2
Contributor
Forum|alt.badge.img+10
  • Contributor
  • July 3, 2019
douks851 wrote:

Hi runneals

 

SO I've tried the urls you gave me and the settings also tells me my tokens can be set to -1 (forever)....even if ESRI's techsupport (Canada) told me you could not set this thing...they just don't know about it. But it remains that even if I asked for an non expiring refresh token...it still expires after a while...can't put my finger on the time interval BUT THE FACT IS THAT IT EXPIRES....and leaves my scripts broken!

 

I hope Safe finds a solution for this...real real issue for us. I will submit another case!!! AGAIN!

 

 

Hi @douks851,

What version of FME are you using? We are now using FME Server 2019 and ArcGIS Enterprise 10.6.1 (mainly Portal for ArcGIS). By upgrading to FME 2019 the authentication issue was resolved for the Portal for ArcGIS readers/writers. We had tested with 2017 and 2018 without success. The 2019 beta did work and we have recently upgrade to FME Server 2019.

We still had authentication issues calling a service with the Geocoder transformer but we resolved this using a httpcaller transformer.


jhu_20
Contributor
Forum|alt.badge.img+5
  • Contributor
  • July 18, 2019

I encountered the same problem with ArcGISonline connection even through my username and password for the AGOL account remains the same and unchanged. I am using FMEserver 2018.1 and latest AGOL. I see that Safe and Esri are working together on this issue. Any more update on this issue ?


annette2
Contributor
Forum|alt.badge.img+10
  • Contributor
  • July 18, 2019
jhu_20 wrote:

I encountered the same problem with ArcGISonline connection even through my username and password for the AGOL account remains the same and unchanged. I am using FMEserver 2018.1 and latest AGOL. I see that Safe and Esri are working together on this issue. Any more update on this issue ?

Did you try with FME 2019? This version fixed the issue for us.


runneals
Contributor
Forum|alt.badge.img+22
  • Contributor
  • July 18, 2019
annette2 wrote:

Hi @douks851,

What version of FME are you using? We are now using FME Server 2019 and ArcGIS Enterprise 10.6.1 (mainly Portal for ArcGIS). By upgrading to FME 2019 the authentication issue was resolved for the Portal for ArcGIS readers/writers. We had tested with 2017 and 2018 without success. The 2019 beta did work and we have recently upgrade to FME Server 2019.

We still had authentication issues calling a service with the Geocoder transformer but we resolved this using a httpcaller transformer.

Think I may have noticed this issue pop up again (will be investigating next week). Also @annette2 I strongly suggest against using FME to geocode points, as it doesn't support bulk mode. It currently submits 1 record at a time which is much slower than using ArcGIS Desktop to geocode... and doesn't crash a geocoding server :P


runneals
Contributor
Forum|alt.badge.img+22
  • Contributor
  • August 2, 2019

Sounds like a fix was implemented in 2019.2 19731 for this.


Reply


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