Skip to main content

When I create an "ArcGIS Server Feature Service" Reader, set its parameters (Authentification Type: Basic) and load the layer list, I get the Python Exception "Failed to retrieve feature types. Python Exception <ValueError>: No JSON object could be decoded".

I have this problem on a computer set up from scratch recently (Windows 10 build 1709) with FME 2017 (x86, build 17725). I tried different "Preferred Python Interpreter" settings in the FME options (Esri ArcGIS Desktop Python (2.7), FME Python 2.7, FME Python 3.4+) but got the same error. I also tried it on another computer with FME 2016 (x64, 16716), FME 2017 (x86, 17725) and FME 2017 (x64, 17725) and got the same result.

Is this a known bug in FME? Is there any workaround? 

0684Q00000ArEN7QAN.png

Greetings,

André

The log is:

Creating reader for format: Esri ArcGIS Server Feature ServiceTrying to find a PYTHON plugin for reader named `ARCGISFEATURES'Loaded Python module `arcgisonlinefeatures' from file `C:\Program Files (x86)\FME_2017_17725\plugins/python27\arcgisonlinefeatures\__init__.pyc'Creating reader for format: Esri ArcGIS Server Feature ServiceTrying to find a PYTHON plugin for reader named `ARCGISFEATURES'Loaded Python module `arcgisonlinefeatures' from file `C:\Program Files (x86)\FME_2017_17725\plugins/python27\arcgisonlinefeatures\__init__.pyc'ArcGIS Feature Service Reader: Using authentication type 'Basic'ArcGIS Feature Service Reader: Requesting metadata for Feature Service at 'https://geo.sbb.ch/site/rest/services/Geobasisdienste/Grenzen_1_2_0/FeatureServer'Python Exception <ValueError>: No JSON object could be decodedA fatal error has occurred. Check the logfile above for detailsFailed to obtain any schemas from reader 'ARCGISFEATURES' 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 informationUniversalReader -- readSchema resulted in 0 schema features being returnedReader Parameter(0) = >https://geo.sbb.ch/site/rest/services/Geobasisdienste/Grenzen_1_2_0/FeatureServer<Reader Parameter(1) = >RETRIEVE_ALL_TABLE_NAMES<Reader Parameter(2) = >Yes<Reader Parameter(3) = >AUTH_TYPE<Reader Parameter(4) = >Basic<Reader Parameter(5) = >USER<Reader Parameter(6) = >ue83441<Reader Parameter(7) = >PASSWORD<Reader Parameter(8) = >********<Reader Parameter(9) = >TOKEN<Reader Parameter(10) = ><Reader Parameter(11) = >_MERGE_SCHEMAS<Reader Parameter(12) = >YES<Reader Parameter(13) = >RETRIEVE_ALL_TABLE_NAMES<Reader Parameter(14) = >YES<Reader Directive(0) = >RUNTIME_MACROS<Reader Directive(1) = >RETRIEVE_ALL_TABLE_NAMES,Yes,AUTH_TYPE,Basic,USER,ue83441,PASSWORD,********,TOKEN,_MERGE_SCHEMAS,YES,RETRIEVE_ALL_TABLE_NAMES,YES<Configuration object contents:FME Temporary Folder: C:\fme_temp_datamapping 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 (x86)\FME_2017_17725\'mapping file Line 6: `FME_SESSION_USED' `TRUE'mapping file Line 7: `R_2_METAFILE' `ARCGISFEATURES'mapping file Line 8: `R_2_DATASET' `https://geo.sbb.ch/site/rest/services/Geobasisdienste/Grenzen_1_2_0/FeatureServer'mapping file Line 9: `R_2_RETRIEVE_ALL_TABLE_NAMES' `Yes'mapping file Line 10: `R_2_AUTH_TYPE' `Basic'mapping file Line 11: `R_2_USER' `ue83441'mapping file Line 12: `R_2_TOKEN' `'mapping file Line 13: `R_2__MERGE_SCHEMAS' `YES'mapping file Line 14: `R_2_RETRIEVE_ALL_TABLE_NAMES' `YES'mapping file Line 15: `R_2_RETRIEVE_ALL_TABLE_NAMES' `Yes'mapping file Line 16: `R_2_AUTH_TYPE' `Basic'mapping file Line 17: `R_2_USER' `ue83441'mapping file Line 18: `R_2_TOKEN' `'mapping file Line 19: `R_2__MERGE_SCHEMAS' `YES'mapping file Line 20: `R_2_MERGE_SCHEMAS' `YES'mapping file Line 21: `R_2_RETRIEVE_ALL_TABLE_NAMES' `YES'mapping file Line 22: `SCHEMA_TIME' `YES'mapping file Keyword: `LOG_ENCODING'  occurs 1 time(s)mapping file Keyword: `R_2__MERGE_SCHEMAS'  occurs 2 time(s)mapping file Keyword: `FME_HOME'  occurs 1 time(s)mapping file Keyword: `LOG_MAX_FEATURES'  occurs 1 time(s)mapping file Keyword: `R_2_MERGE_SCHEMAS'  occurs 1 time(s)mapping file Keyword: `R_2_DATASET'  occurs 1 time(s)mapping file Keyword: `SCHEMA_TIME'  occurs 1 time(s)mapping file Keyword: `R_2_METAFILE'  occurs 1 time(s)mapping file Keyword: `AUTOREG'  occurs 1 time(s)mapping file Keyword: `R_2_PASSWORD'  occurs 2 time(s)mapping file Keyword: `R_2_RETRIEVE_ALL_TABLE_NAMES'  occurs 4 time(s)mapping file Keyword: `FME_SESSION_USED'  occurs 1 time(s)mapping file Keyword: `LOG_APPEND'  occurs 1 time(s)mapping file Keyword: `R_2_USER'  occurs 2 time(s)mapping file Keyword: `R_2_AUTH_TYPE'  occurs 2 time(s)mapping file Keyword: `APPLICATION'  occurs 1 time(s)mapping file Keyword: `R_2_TOKEN'  occurs 2 time(s)UniversalReader -- readSchema resulted in 0 schema features being returnedFailed to obtain any schemas from reader 'ARCGISFEATURES' 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

Hello @andr_

Are you able to try upgrading your FME to the latest build of FME 2018.0? This error was encountered as part of a bug, that has since been addressed. If you can try FME 2018.0 to see if that fix addressed this issue. If it does not please post back!

 

FME 2018.0 can be found here: https://www.safe.com/support/support-resources/fme-downloads/

Hi Trent

 

 

Thanks for your answer! I'll first have to check for any newly arising issues or dependencies with FME 2018 in our context. If it's ok, I'll make the upgrade and hopefully get rid of this issue.

 

 

Greetings,

 

André

Yes the same issue with FME 2018


Yes the same issue with FME 2018

Hi @kseadawy, Did you try TrentatSafe's suggestion? And did it solve your problem? If you are still having the same issue, may I recommend that you provide more detail in a separate question post? That way our community can provide assistance to your specific problem, based on your exact symptoms. Thank you!

 


Hi @kseadawy, Did you try TrentatSafe's suggestion? And did it solve your problem? If you are still having the same issue, may I recommend that you provide more detail in a separate question post? That way our community can provide assistance to your specific problem, based on your exact symptoms. Thank you!

 

Hello,

 

Yes I'm using FME 2018.1. I tried all pythin interpreter versions from 2.7

 

up to 3.6 and the same problem.

 

I get data using "Esri ArcGIS Server Feature Service" reader and this is the source of map service http://maps1.jeddah.gov.sa/arcgis/rest/services/Ba_BaseMap_Service_2018/MapServer

 


Hello,

 

Yes I'm using FME 2018.1. I tried all pythin interpreter versions from 2.7

 

up to 3.6 and the same problem.

 

I get data using "Esri ArcGIS Server Feature Service" reader and this is the source of map service http://maps1.jeddah.gov.sa/arcgis/rest/services/Ba_BaseMap_Service_2018/MapServer

 

Hi @kseadawy. Thanks for the update and additional detail. Since we couldn't access the service from here, we might need a different approach to investigate this further. I've created a support case on your behalf. You will receive a separate email confirming the creation of the case. Our team will reach out to you in email, to continue assist in finding out the root cause of this problem. Thank you!

 


Have you tried to go to https://geo.sbb.ch/site/rest/services/Geobasisdienste/Grenzen_1_2_0/FeatureServer in a browser, login with your credentials and see if you can get the json file manually? Just to rule out any server issues.


Hi @kseadawy. Thanks for the update and additional detail. Since we couldn't access the service from here, we might need a different approach to investigate this further. I've created a support case on your behalf. You will receive a separate email confirming the creation of the case. Our team will reach out to you in email, to continue assist in finding out the root cause of this problem. Thank you!

 

URL is an ESRI map service and you can access it from browser and add to reader in FME

 

URL is a public domain and has no problem in accessing but the layers names in Arabic but try run workspace and you will get the error

 

 


Reply