Skip to main content

When I publish my workspace to our FME Server, and run it it works. After a while, published before Christmas 2023 -> ran now again, FME Server return with the following error:

 

ArcGIS Portal Feature Service Reader: Authorization error. See http://fme.ly/AGOL401Error for more info. FMEException: 928221: ArcGIS Portal Feature Service Reader: Encountered an unexpected error. The error code from the server was '498' and the message was: 'Invalid token.'. Details: ''

 

Trying to fix the issue I attempted to re-authenticate the web connection. The issue is, when I click on the 'Authenticate' button, then I get a browser window where I can authenticate myself against our Enterprise Portal and the portal returns a token.

 

In other applications such as Jupyter the token needs to be copied and handed over to the requesting application. This would be here FME Server. However, FME Server does not offer any place where to place the token.

 

How can I authenticate my web connection?

Have you had a look through here?

https://community.safe.com/s/article/How-to-create-an-FME-Web-Connection-for-Esri-ArcGIS-Portal-Feature-Service-OAuth-2-0


Did this issue get resolved?

I am getting the same error when running my workspace in FME Server/Flow: 

ArcGIS Portal Feature Service Reader: Authorization error. See http://fme.ly/AGOL401Error for more info. FMEException: 928221: ArcGIS Portal Feature Service Reader: Encountered an unexpected error. The error code from the server was '498' and the message was: 'Invalid token.'. Details: ''

 

Also the link mentioned above has been moved or does not exist.


Apologies @kamillem19 

We switched our knowledge base around and some links were changed in the process.  Please see the updated link here: https://support.safe.com/hc/en-us/articles/25407772142733-How-to-Create-an-ArcGIS-Enterprise-Portal-Web-Connection-OAuth-2-0


Thanks Kate, I was able to find the article after some googling :D

I was getting the error mentioned above when I was testing a webhook I created. I found that uploading the web connection from Form resolved the issue and my webhook works.


Great!  Glad you were able to get things resolved and working! 

 


We have the same error.  The workspace has been running fine for the past 2 years, now it succeeds but doesnt write anything to our ArcGIS Enterprise Portal, because it cant connect properly:

2024-8-7 12:45:01 | ArcGIS Portal Feature Service Reader: Authorization error. See http://fme.ly/AGOL401Error for more info. FMEException: 928221: ArcGIS Portal Feature Service Reader: Encountered an unexpected error. The error code from the server was '498' and the message was: 'Invalid token.'. Details: ''

How do we refresh the token?


Hi @seabou2c,

Has anything changed with the workspace or connections on the server?  Typically, this error occurs when either the connection is not configured properly or the URLs have been modified, or if the connection is used in multiple Flow instances.  I would recommend reviewing our troubleshooting guide located here for this error.  The guide refers to ArcGIS Online Web Connections, but the troubleshooting also applies to Portal connections as well.  

Another thing to note with Portal connection as well, is that the token expiration time can be set by the Portal admin - so it might be worthwhile checking there to see if things got adjusted as sometimes this is set really low 


Reply