Comments and answers for "Error reading ArcGIS Online (AGOL) Feature Layer" https://knowledge.safe.com/questions/57120/error-reading-arcgis-online-agol-feature-layer.html The latest comments and answers for the question "Error reading ArcGIS Online (AGOL) Feature Layer" Answer by runneals https://knowledge.safe.com/answers/96372/view.html

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

Fri, 02 Aug 2019 21:11:37 GMT runneals
Comment by runneals on runneals's comment https://knowledge.亚搏在线safe.com/comments/95579/view.html

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

Thu, 18 Jul 2019 21:56:45 GMT runneals
Comment by annette2 on annette2's answer https://knowledge.safe.com/comments/95545/view.html

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

Thu, 18 Jul 2019 14:24:15 GMT annette2
Answer by jhu_20 https://knowledge.safe.com/answers/95542/view.html

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 ?

Thu, 18 Jul 2019 14:11:59 GMT jhu_20
Comment by annette2 on annette2's comment https://knowledge.safe.com/comments/94790/view.html

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.

Wed, 03 Jul 2019 09:06:37 GMT annette2
Comment by douks851 on douks851's comment https://knowledge.safe.com/comments/94598/view.html

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!



Thu, 27 Jun 2019 19:12:14 GMT douks851
Comment by runneals on runneals's comment https://knowledge.safe.com/comments/94596/view.html

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:
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,
Thu, 27 Jun 2019 18:40:23 GMT runneals
Comment by douks851 on douks851's comment https://knowledge.safe.com/comments/94594/view.html

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


Thu, 27 Jun 2019 18:24:26 GMT douks851
Comment by runneals on runneals's answer https://knowledge.safe.com/comments/94540/view.html

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

Wed, 26 Jun 2019 17:45:59 GMT runneals
Answer by douks851 https://knowledge.safe.com/answers/94476/view.html

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!

Tue, 25 Jun 2019 19:13:36 GMT douks851
Comment by runneals on runneals's comment https://knowledge.safe.com/comments/86434/view.html

Must have been this fix... Still working with SAFE on ArcGIS Online issues that we've been having.

ARCGISPORTALFEATURES: Fix KeyError with ArcGIS 10.6.1; better handling of access token expiry.
Tue, 05 Feb 2019 18:50:22 GMT runneals
Comment by annette2 on annette2's answer https://knowledge.safe.com/comments/86412/view.html

Looks like it is fixed in the 2019 beta :)

Tue, 05 Feb 2019 16:05:12 GMT annette2
Answer by annette2 https://knowledge.safe.com/answers/86404/view.html

Was this ever solved? We are having the same issue with Portal for ArcGIS Feature Service?

Tue, 05 Feb 2019 12:51:11 GMT annette2
Comment by philippeb on philippeb's comment https://knowledge.safe.com/comments/84466/view.html

Happy to see that I'm not the only one getting invalid tokens from ArcGIS Online.

We've discovered recently that ArcGIS Online generates by himself new tokens for some Map Services after some weeks, making our FME scripts not operational.

So I think it's ESRI's fault, I can't imagine how FME could change the AGOL token, but it's a good thing they work both on this.

Thanks for the update and Merry Christmas to you!

Wed, 19 Dec 2018 19:37:30 GMT philippeb
Comment by runneals on runneals's answer https://knowledge.safe.com/comments/84465/view.html

Update: We have opened a ticket with ESRI and SAFE after getting lots of 401's and other random errors relating to invalid tokens with ArcGIS Online URLs. SAFE's developers are working with ESRI to determine what side this is occurring on and ultimately how this issue can be resolved. Hopefully we'll be able to figure out more soon! FYSA @philippeb @mapper99 @xilef @dmatranga

Wed, 19 Dec 2018 19:27:41 GMT runneals
Answer by runneals https://knowledge.safe.com/answers/79426/view.html @bruceharold

Do you have any insight into this? It appears like it's a bug with ArcGIS Online since it is able to get a token, and it happens randomly.

Thu, 27 Sep 2018 16:03:11 GMT runneals
Comment by runneals on runneals's comment https://knowledge.safe.com/comments/77542/view.html This still occurs on 2018.1 Thu, 30 Aug 2018 18:39:05 GMT runneals Comment by xilef on xilef's comment https://knowledge.safe.com/comments/77518/view.html Same question here, seems like the procedure needs to be repeated each time the error comes up, but the error log doesn't suggest that it is the problem
Thu, 30 Aug 2018 13:48:53 GMT xilef
Comment by philippeb on philippeb's comment https://knowledge.safe.com/comments/69577/view.html Have you checked into database connections in FME server?
Maybe if you recreate the connection over there for the user isn't working it would work after that.

Thu, 03 May 2018 15:41:53 GMT philippeb
Comment by runneals on runneals's answer https://knowledge.safe.com/comments/69571/view.html UPDATE: Yesterday we encountered this issue on one workspace with a specific AGOL user (with admin rights), however when we switched to a different AGOL user, it seemed to work just fine. This morning, we encountered another workspace, so I changed the user on that, and that also seemed to work. So, it seems like it might be an esri AGOL authentication issue. Thu, 03 May 2018 15:31:46 GMT runneals Comment by runneals on runneals's answer https://knowledge.safe.com/comments/64751/view.html Interestingly, one of our processes seems to only be showing this now on the hour every hour when it runs, however the other times it runs during the hour don't produce this message. It's very bizarre, but it sounded kinda like it might be an AGOL auth problem since it's flaky. Thoughts @AnnabelleAtSafe? Mon, 26 Feb 2018 00:05:13 GMT runneals Answer by philippeb https://knowledge.safe.com/answers/63457/view.html < p >你好!< / p > < p >看来我们必须授权基于“增大化现实”技术cGIS Online on FME Server after creating the AGOL connection.

Even if the connection is published, because of ArcGIS Online security, it's not enough.

After publishing your AGOL connexion, in FME Server you'll have to go to Web Connections, click on the AGOL connection and authorize a second time the connection with your AGOL informations.

After that it should work indefinitely. Be aware that if you recreate your AGOL connection when republishing, you'll have to do this process once again.

It looks like it's working for me so far.

I'll let you know if I learn anything else.

Tue, 06 Feb 2018 14:16:34 GMT philippeb
Comment by mapper99 on mapper99's answer https://knowledge.safe.com/comments/63420/view.html @AnnabelleAtSafe Any update on this one? Mildly annoying issue for sure Mon, 05 Feb 2018 23:51:40 GMT mapper99 Comment by runneals on runneals's comment https://knowledge.safe.com/comments/63276/view.html @philippeb have you heard more about this?
Fri, 02 Feb 2018 17:36:30 GMT runneals
Comment by runneals on runneals's comment https://knowledge.safe.com/comments/60451/view.html I've been working directly with support on this issue and they are working with one of the developers to try and figure this out. Yesterday when it happened on server, it somehow resolved itself after 20 minutes of failing jobs. I have a feeling it's something in the code how FME authenticates to ArcGIS Online. Hopefully it will get resolved soon. Wed, 20 Dec 2017 16:46:14 GMT runneals Comment by philippeb on philippeb's comment https://knowledge.safe.com/comments/60437/view.html I confirm that I have the same problem, few hours each time after recreating my AGOL connexion...
I opened a case with my resaler about this, I'll post an answer when I'll have one.

Wed, 20 Dec 2017 13:54:13 GMT philippeb
Comment by runneals on runneals's comment https://knowledge.safe.com/comments/60402/view.html That's not a permanent fix to a bigger problem... Especially when you are running tasks on server (which would then require you to reauthenticate every x [insert time period]. Tue, 19 Dec 2017 22:37:49 GMT runneals Comment by philippeb on philippeb's comment https://knowledge.safe.com/comments/59319/view.html It is working for me too! Thanks!!

Tue, 05 Dec 2017 21:04:29 GMT philippeb
Comment by philippeb on philippeb's answer https://knowledge.safe.com/comments/59318/view.html Check the best answer ;)

Tue, 05 Dec 2017 20:59:41 GMT philippeb
Answer by runneals https://knowledge.safe.com/answers/58306/view.html

We get something similar when we try to read, although we don't get a URL:

Python Exception <HTTPError>: 401 Client Error: Unauthorized for url: '
A fatal error has occurred. Check the logfile above for details

Ideas on this one? Seemed kinda related.

Tried to re-upload the workspace and updated the credentials, and that seemed to help for maybe the first job after I uploaded it, but it's back to throwing this error.

Mon, 20 Nov 2017 22:36:16 GMT runneals
Comment by annabelleatsafe on annabelleatsafe's comment https://knowledge.safe.com/comments/57125/view.html Hi @dmatranga, that's great news! I'm glad you're back up and running!
Thu, 02 Nov 2017 22:43:26 GMT annabelleatsafe
Comment by dmatranga on dmatranga's answer https://knowledge.safe.com/comments/57123/view.html Annabelle, I went to to Tools > Options > Web Connections and created a new connection to ArcGIS Online, authenticated via OAuth then saved the connection. Add Reader > Esri ArcGIS Online (AGOL) Feature Service > Parameters > Layer List and it's working now, thank you!

Thu, 02 Nov 2017 22:41:46 GMT dmatranga
Answer by annabelleatsafe https://knowledge.safe.com/answers/57124/view.html < p >嗨< rel = "用户" href = " /用户/ 412 / dmatranga.html" nodeid="412">@dmatranga,

May I ask you to please try creating a fresh web connection to AGOL (something other than the existing Daniel.Matranga Esri ArcGIS Online one that currently exists), and then try that in the reader to see if this makes a difference? Have you run into this issue before with the AGOL reader?

Thu, 02 Nov 2017 22:35:02 GMT annabelleatsafe