Skip to main content

I am getting "Python Exception <KeyError>: u'token'

A fatal error has occurred. Check the logfile above for details

Failed to obtain any schemas from reader 'ARCGISPORTALFEATURES' from 1 datasets. This may be due to invalid datasets or format accessibility issues due to licensing, dependencies, or module loading. See logfile for more information

UniversalReader -- readSchema resulted in 0 schema features being returned

Reader Parameter(0) = >https://gisgateway.williams.com/portal<

Reader Parameter(1) = >RETRIEVE_ALL_FS_NAMES<

Reader Parameter(2) = >Yes<

Reader Parameter(3) = >AUTH_TYPE<

Reader Parameter(4) = >generate_token<

Reader Parameter(5) = >USER<

Reader Parameter(6) = >ckeating2<

Reader Parameter(7) = >PASSWORD<

Reader Parameter(8) = >********<

Reader Parameter(9) = >_MERGE_SCHEMAS<

Reader Parameter(10) = >YES<

Reader Directive(0) = >RUNTIME_MACROS<

Reader Directive(1) = >RETRIEVE_ALL_FS_NAMES,Yes,AUTH_TYPE,generate_token,USER,ckeating2,PASSWORD,********,_MERGE_SCHEMAS,YES<

Configuration object contents:

FME Temporary Folder: C:\\Users\\CKEATI~1\\AppData\\Local\\Temp

mapping file Line 0: `APPLICATION' `FME_WORKBENCH'

mapping file Line 1: `AUTOREG' `YES'

mapping file Line 2: `LOG_ENCODING' `UTF-8'

mapping file Line 3: `LOG_MAX_FEATURES' `-1'

mapping file Line 4: `LOG_APPEND' `NO'

mapping file Line 5: `FME_HOME' `C:\\Program Files\\FME2018\\'

mapping file Line 6: `FME_SESSION_USED' `TRUE'

mapping file Line 7: `R_4_METAFILE' `ARCGISPORTALFEATURES'

mapping file Line 8: `R_4_DATASET' `https://gisgateway.williams.com/portal'

mapping file Line 9: `R_4_RETRIEVE_ALL_FS_NAMES' `Yes'

mapping file Line 10: `R_4_AUTH_TYPE' `generate_token'

mapping file Line 11: `R_4_USER' `ckeating2'

mapping file Line 12: `R_4__MERGE_SCHEMAS' `YES'

mapping file Line 13: `R_4_RETRIEVE_ALL_FS_NAMES' `Yes'

mapping file Line 14: `R_4_AUTH_TYPE' `generate_token'

mapping file Line 15: `R_4_USER' `ckeating2'

mapping file Line 16: `R_4__MERGE_SCHEMAS' `YES'

mapping file Line 17: `R_4_MERGE_SCHEMAS' `YES'

mapping file Line 18: `R_4_FEATURESERVICE' `'

mapping file Line 19: `SCHEMA_TIME' `YES'

mapping file Keyword: `R_4_DATASET' occurs 1 time(s)

mapping file Keyword: `LOG_MAX_FEATURES' occurs 1 time(s)

mapping file Keyword: `LOG_APPEND' occurs 1 time(s)

mapping file Keyword: `R_4__MERGE_SCHEMAS' occurs 2 time(s)

mapping file Keyword: `R_4_MERGE_SCHEMAS' occurs 1 time(s)

mapping file Keyword: `R_4_PASSWORD' occurs 2 time(s)

mapping file Keyword: `AUTOREG' occurs 1 time(s)

mapping file Keyword: `R_4_METAFILE' occurs 1 time(s)

mapping file Keyword: `FME_HOME' occurs 1 time(s)

mapping file Keyword: `R_4_AUTH_TYPE' occurs 2 time(s)

mapping file Keyword: `LOG_ENCODING' occurs 1 time(s)

mapping file Keyword: `APPLICATION' occurs 1 time(s)

mapping file Keyword: `R_4_FEATURESERVICE' occurs 1 time(s)

mapping file Keyword: `R_4_USER' occurs 2 time(s)

mapping file Keyword: `SCHEMA_TIME' occurs 1 time(s)

mapping file Keyword: `R_4_RETRIEVE_ALL_FS_NAMES' occurs 2 time(s)

mapping file Keyword: `FME_SESSION_USED' occurs 1 time(s)

UniversalReader -- readSchema resulted in 0 schema features being returned

Failed to obtain any schemas from reader 'ARCGISPORTALFEATURES' from 1 datasets. This may be due to invalid datasets or format accessibility issues due to licensing, dependencies, or module loading. See logfile for more information" error when attmpting to connect to feature services through our portal. We are using "SecureAuth - SAML".

 

My question is, is this likely an FME issue or an issue with our Portal auth? I cant find much that relates to this exact auth method with secure auth.

 

I am using FME desktop 2018.1. have no issues with authentication to our portal through IE or Chrome browsers.

Hi @cskeating,

 

Unfortunately, SAML is currently not supported for the Esri Portal reader/writer. As mentioned here, SAML is sort of case by case for each format so it is only in for SharePoint at the moment.

A couple of enhancement requests have already been filed for this (FMEENGINE-57311/FMEENGINE-40402). Additionally, another user has suggested this on our ideas page.. it would be great if you can upvote it to help move it along: Single Sign on for Portal for ArcGIS


Does anyone know if there are any updates on SAML reader and writer auth?


Is there any news on this yet?


Is there any news on this yet?

I just chatted with them an hour ago on this. Previously they have told me *maybe* later this year, but probably 2020. Hope that helps


Reply