Select to view content in your preferred language

Geoenrichment with ArcGIS Online Proxy

2874
10
Jump to solution
09-01-2016 01:21 PM
JoshuaTanner2
Occasional Contributor

Has anybody had luck using the Geoenrichment with a proxy setup at developers.arcgis.com?  `.../rest/services/World/GeoenrichmentServer` works fine, but trying to access '.../rest/services/World/GeoenrichmentServer/Geoenrichment/Enrich' gives me a 401 error (you do not have permissions).  Suggestions?  My domain is white listed and I can access the base REST endpoint fine, I just can't get to the additional routes that I need to actually use it.

0 Kudos
1 Solution

Accepted Solutions
DanielStauning
Esri Contributor

Hi Joshua,

This is a bug that was introduced with an update to the Geoenrichment service last night. We are working to patch this as soon as we can, I'll update this thread as soon as it's fixed.  

Thanks,

-Daniel

View solution in original post

10 Replies
DanielStauning
Esri Contributor

Hi Joshua,

This is a bug that was introduced with an update to the Geoenrichment service last night. We are working to patch this as soon as we can, I'll update this thread as soon as it's fixed.  

Thanks,

-Daniel

JoshuaTanner2
Occasional Contributor

Thanks Daniel.  I'll keep an eye our for your update.  

0 Kudos
DanielStauning
Esri Contributor

Hi Joshua,

A fix for this issue was applied last night, please let us know if you're still having any trouble with this work flow. Thanks for your patience in this matter.

Daniel 

0 Kudos
SimoneGadenz1
Deactivated User

Daniel Stauning

I am experiencing the same issue with the URL: http://geoenrich.arcgis.com/arcgis/rest/services/World/GeoenrichmentServer/GetDataCollections/execut...

The page that gives the error is here:

Geoanalyst 

and the error reports "You are currently signed in as: 'beeagodev'. You do not have access to this resource: http://geoenrich.arcgis.com/arcgis/rest/services/World/GeoenrichmentServer/GetDataCollections/execut...

It used to work with the ArcGISOnline DEMO subscription I used in August to develop a DEMO, but it stopped when I started using the developer user couple of days ago.

Should I change some configuration moving from the demo environment to the developer one or it is a bug similar the one you described above?

Thanks for any feedback.

Simone

0 Kudos
DanielStauning
Esri Contributor

Hi Simone, 

Are you still running into this issue? There was a problem with backward compatibility for the GetDataCollections method after a recent update to Geoenrichment. However, it was patched last night. Let me know if we can help. 

Thanks

Dan

0 Kudos
SimoneGadenz1
Deactivated User

Thanks Daniel Staining‌, the previous problem is solved. But now I have another issue, for any enrichment I run i got the "Error: Geoenrichment service returned empty response(...)" in file Geoenrichment.js:12

Looking at the network when it runs the analysis id calls two pages, the geoenrichment and the reverse geocoding. The second one works fine, the geoenrichment call is:

  1. [{"areaType":"DriveTimeBuffer","bufferUnits":"esriMiles","bufferRadii":[2],"returnGeometry":true,"comparisonLevels":[{"layer":"Admin3"},{"layer":"Admin2"},{"layer":"Admin1"}],"geometry":{"x":1261390.5194081098,"y":5360108.141509999,"spatialReference":{"wkid":102100,"latestWkid":3857}}}]
  2. useData:
    {"sourceCountry":"IT"}
  3. analysisVariables:
    ["KeyGlobalFacts.*"]
  4. outSR:
    {"wkid":102100,"latestWkid":3857}
  5. forStorage:
    false
  6. f:
    json
  7. token:
    oV9ShBhDPLaUkuSiXunAr0MSQNvNZ3imq1AdTFICUblWBo22urfdxJ8Z4md8kU48mVXnYgahBhAlpMCPpD6moQJJEwzuPLmEsYa1eGu_UiyQfrdS4xqKu_CezWY6O_CeajUcTgO-QyCkSGjBd4i9sYxtE3_o1wC2_xqeYUZIk_4.

with this response:

{"results":[{"paramName":"GeoEnrichmentResult","dataType":"GeoEnrichmentResult","value":{"version":"2.0","FeatureSet":[]}}],"messages":[{"description":"Study area at [0] was ignored. Failed to build network service area. Internal error.","id":46975,"type":"unknown"}]}

It looks like the DriveTimeBuffer is the problem. 

Best.

DanielStauning
Esri Contributor

Simone,

It seems to work for me when I use those parameters in an enrich request; you'll need to add your token to the example below. 

https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/Enrich?stu... 

 "features" : [ {
 "attributes" : {
 "ID" : "0",
 "OBJECTID" : 1,
 "sourceCountry" : "IT",
 "areaType" : "DriveTimeBuffer",
 "bufferUnits" : "esriMiles",
 "bufferUnitsAlias" : "Miles",
 "bufferRadii" : 2,
 "aggregationMethod" : "CentroidsInPolygon:IT.Municipalities",
 "HasData" : 1,
 "TOTPOP" : 53058,
 "TOTHH" : 24900,
 "AVGHHSZ" : 2.13,
 "TOTMALES" : 24192,
 "TOTFEMALES" : 28866
 },
 "geometry" : {
 "rings" : [ [ [ 1260187.7721999995, 5362511.405299999 ], [ 1260237.8808999993, 5362408.0748 ], [ 1260362.7280000001, 5362408.0748 ], [ 1260412.8366999999, 5362270.886200003 ], [ 1260637.9012999982, 5362339.188199997 ], [ 1260737.6941, 5362545.849100001 ], [ 1260837.9114999995, 5362579.7092999965 ], [ 1261037.9217999987, 5362270.886200003 ], [ 1261288.0406999998, 5362029.789499998 ], [ 1261437.9422999993, 5362133.115800001 ], [ 1261612.8980999999, 5362133.115800001 ], [ 1261688.0610999987, 5361995.931500003 ], [ 1261987.8641999997, 5362029.789499998 ], [ 1262012.9186000004, 5362029.789499998 ], [ 1262112.7113999985, 5361995.931500003 ], [ 1262162.8200999983, 5361892.6065 ], [ 1262137.7657000013, 5361789.282899998 ], [ 1262312.7215000018, 5361686.544 ], [ 1262412.9389999993, 5361514.342200004 ], [ 1262412.9389999993, 5361239.409900002 ], [ 1262337.7758999988, 5361171.115800001 ], [ 1262237.9831000008, 5361205.5546 ], [ 1262362.8302000016, 5360827.318400003 ], [ 1262512.7316999994, 5360896.193599999 ], [ 1262638.0036000013, 5360827.318400003 ], [ 1262962.8608999997, 5360964.4855 ], [ 1262638.0036000013, 5361342.727399997 ], [ 1262638.0036000013, 5361377.1668 ], [ 1262638.0036000013, 5361514.342200004 ], [ 1262362.8302000016, 5361823.723999999 ], [ 1262387.8845999986, 5361961.489600003 ], [ 1262463.047699999, 5362029.789499998 ], [ 1262587.8949000016, 5361961.489600003 ], [ 1262937.806499999, 5361548.782300003 ], [ 1263638.0546999983, 5361067.800099999 ], [ 1263687.7388000004, 5361067.800099999 ], [ 1263638.0546999983, 5361239.409900002 ], [ 1263737.8475000001, 5361342.727399997 ], [ 1263737.8475000001, 5361377.1668 ], [ 1263838.0650000013, 5361342.727399997 ], [ 1263937.8575999998, 5361446.0462 ], [ 1264038.075100001, 5361308.288099997 ], [ 1264013.0207999982, 5361171.115800001 ], [ 1264112.8136, 5361067.800099999 ], [ 1264287.7694000006, 5361205.5546 ], [ 1264437.6708999984, 5361033.3618 ], [ 1264462.7252999991, 5360930.631300002 ], [ 1264362.932500001, 5360792.880800001 ], [ 1264213.0309999995, 5360792.880800001 ], [ 1264162.9222999997, 5360724.006399997 ], [ 1263987.9664000012, 5360792.880800001 ], [ 1263813.010499999, 5360758.443599999 ], [ 1264162.9222999997, 5360346.373400003 ], [ 1264312.8238000013, 5360414.661399998 ], [ 1264337.8781000003, 5360414.661399998 ], [ 1264413.0412999988, 5360449.097400002 ], [ 1264537.8883999996, 5360346.373400003 ], [ 1264537.8883999996, 5360174.196400002 ], [ 1264387.9868, 5360071.475599997 ], [ 1264613.0513999984, 5359968.171999998 ], [ 1264662.7355000004, 5359865.453299999 ], [ 1264637.6810999997, 5359762.1521999985 ], [ 1264562.9426999986, 5359693.285400003 ], [ 1264413.0412999988, 5359693.285400003 ], [ 1264362.932500001, 5359762.1521999985 ], [ 1264238.0852999985, 5359693.285400003 ], [ 1264137.867899999, 5359831.019400001 ], [ 1263987.9664000012, 5359831.019400001 ], [ 1263737.8475000001, 5359590.569700003 ], [ 1263562.8916000016, 5359556.1369 ], [ 1263613.0003000014, 5359383.9745000005 ], [ 1263838.0650000013, 5359349.542499997 ], [ 1263838.0650000013, 5359315.694200002 ], [ 1263987.9664000012, 5359246.830600001 ], [ 1263987.9664000012, 5359074.674099997 ], [ 1263813.010499999, 5359006.395900004 ], [ 1263638.0546999983, 5358834.243799999 ], [ 1263537.8372999988, 5358971.965300001 ], [ 1263562.8916000016, 5359074.674099997 ], [ 1263312.7727000006, 5359452.8391999975 ], [ 1263112.7624999993, 5359281.262400001 ], [ 1263112.7624999993, 5359074.674099997 ], [ 1263012.9697000012, 5358937.5348000005 ], [ 1262912.7522, 5359006.395900004 ], [ 1262887.6977999993, 5359177.967600003 ], [ 1262612.9492000006, 5359452.8391999975 ], [ 1262587.8949000016, 5359452.8391999975 ], [ 1262488.1020999998, 5359521.7042 ], [ 1262387.8845999986, 5359383.9745000005 ], [ 1262362.8302000016, 5358903.1044000015 ], [ 1262737.7963999994, 5358525.545299999 ], [ 1263187.9255000018, 5358387.8303999975 ], [ 1263337.8269999996, 5358216.2733 ], [ 1263287.7182999998, 5358078.563000001 ], [ 1263187.9255000018, 5358044.135799997 ], [ 1263038.0240000002, 5357838.158500001 ], [ 1262912.7522, 5357907.011600003 ], [ 1262887.6977999993, 5358009.708700001 ], [ 1262937.806499999, 5358112.990500003 ], [ 1262937.806499999, 5358147.4179000035 ], [ 1262638.0036000013, 5358250.701099999 ], [ 1262362.8302000016, 5358559.390699998 ], [ 1262237.9831000008, 5358525.545299999 ], [ 1262137.7657000013, 5358353.402000003 ], [ 1262288.0918999985, 5358181.8455 ], [ 1262362.8302000016, 5357872.585000001 ], [ 1262088.0815999992, 5357357.368299998 ], [ 1261987.8641999997, 5357426.217699997 ], [ 1261937.7553999983, 5357563.3347999975 ], [ 1261937.7553999983, 5357838.158500001 ], [ 1262037.9728999995, 5357975.8653 ], [ 1262037.9728999995, 5358009.708700001 ], [ 1261912.7010999992, 5358422.258900002 ], [ 1262088.0815999992, 5358697.108099997 ], [ 1262037.9728999995, 5359006.395900004 ], [ 1262162.8200999983, 5359212.3989999965 ], [ 1262187.874400001, 5359899.3037 ], [ 1262012.9186000004, 5360105.9103000015 ], [ 1261912.7010999992, 5360037.040799998 ], [ 1262112.7113999985, 5359831.019400001 ], [ 1262162.8200999983, 5359693.285400003 ], [ 1262088.0815999992, 5359556.1369 ], [ 1261962.809799999, 5359521.7042 ], [ 1261962.809799999, 5359556.1369 ], [ 1261912.7010999992, 5359556.1369 ], [ 1261762.7996000014, 5359831.019400001 ], [ 1261663.0067999996, 5359590.569700003 ], [ 1261712.6909000017, 5359315.694200002 ], [ 1261587.8436999992, 5359143.5363000035 ], [ 1261612.8980999999, 5358971.965300001 ], [ 1261437.9422999993, 5358662.678400002 ], [ 1261437.9422999993, 5358387.8303999975 ], [ 1261362.7791000009, 5358250.701099999 ], [ 1261537.7349999994, 5357975.8653 ], [ 1261663.0067999996, 5357426.217699997 ], [ 1261787.8539000005, 5357357.368299998 ], [ 1261787.8539000005, 5357322.943599999 ], [ 1261888.0714000016, 5357185.8301 ], [ 1261987.8641999997, 5357185.8301 ], [ 1262088.0815999992, 5357322.943599999 ], [ 1262162.8200999983, 5357288.519100003 ], [ 1262212.9287, 5357185.8301 ], [ 1262187.874400001, 5357082.558600001 ], [ 1262263.0373999998, 5356979.288400002 ], [ 1262237.9831000008, 5356876.6027000025 ], [ 1262162.8200999983, 5356807.757299997 ], [ 1262012.9186000004, 5356876.6027000025 ], [ 1261888.0714000016, 5356773.3347999975 ], [ 1261737.7452000007, 5357013.7117 ], [ 1261513.1053000018, 5357116.982299998 ], [ 1261437.9422999993, 5357288.519100003 ], [ 1261137.7146000005, 5357528.909500003 ], [ 1260962.7586000003, 5357391.7929000035 ], [ 1260962.7586000003, 5357357.368299998 ], [ 1260837.9114999995, 5357185.8301 ], [ 1260762.7485000007, 5357219.670699999 ], [ 1260713.0643999986, 5357322.943599999 ], [ 1260737.6941, 5357426.217699997 ], [ 1260612.8469999991, 5357563.3347999975 ], [ 1260637.9012999982, 5357701.0374 ], [ 1260187.7721999995, 5358112.990500003 ], [ 1260162.7177999988, 5358216.2733 ], [ 1260212.8264999986, 5358318.9738000035 ], [ 1260012.816300001, 5358387.8303999975 ], [ 1259862.9147000015, 5358559.390699998 ], [ 1259787.751699999, 5358491.1162 ], [ 1259513.0031000003, 5358559.390699998 ], [ 1259412.7855999991, 5358697.108099997 ], [ 1259412.7855999991, 5358731.537699997 ], [ 1259287.9384000003, 5358868.674099997 ], [ 1259338.0472000018, 5359109.1052 ], [ 1259187.7210999988, 5359281.262400001 ], [ 1259138.0368999988, 5359246.830600001 ], [ 1259062.8739, 5359315.694200002 ], [ 1258963.0810999982, 5359658.8522000015 ], [ 1259087.9283000007, 5359796.585699998 ], [ 1259187.7210999988, 5359658.8522000015 ], [ 1259487.9486999996, 5359624.419100001 ], [ 1259687.958900001, 5359487.271600001 ], [ 1259762.6974, 5359796.585699998 ], [ 1259612.7958999984, 5360071.475599997 ], [ 1259612.7958999984, 5360277.502300002 ], [ 1259612.7958999984, 5360311.937799998 ], [ 1259662.9045999981, 5360380.809100002 ], [ 1259637.8502000012, 5360621.279299997 ], [ 1259687.958900001, 5360861.755900003 ], [ 1259738.0676000006, 5360964.4855 ], [ 1259837.8603999987, 5360998.923699997 ], [ 1259887.9692000002, 5361136.677100003 ], [ 1260037.8707000017, 5361239.409900002 ], [ 1259962.7074999996, 5361617.6630000025 ], [ 1260162.7177999988, 5361858.1652000025 ], [ 1260162.7177999988, 5361961.489600003 ], [ 1259938.0779, 5361961.489600003 ], [ 1259862.9147000015, 5362029.789499998 ], [ 1259837.8603999987, 5362167.558200002 ], [ 1259713.0132, 5362236.443400003 ], [ 1259713.0132, 5362442.518200003 ], [ 1259862.9147000015, 5362614.153300002 ], [ 1259887.9692000002, 5362614.153300002 ], [ 1259962.7074999996, 5362614.153300002 ], [ 1259962.7074999996, 5362648.597400002 ], [ 1260187.7721999995, 5362511.405299999 ] ] ]
 }
 }, {
 "attributes" : {
 "ID" : "0",
 "OBJECTID" : 2,
 "StdGeographyLevel" : "IT.Regions",
 "StdGeographyName" : "Toscana",
 "StdGeographyID" : "09",
 "sourceCountry" : "IT",
 "aggregationMethod" : "Query:IT.Regions",
 "HasData" : 1,
 "TOTPOP" : 3710157,
 "TOTHH" : 1580024,
 "AVGHHSZ" : 2.35,
 "TOTMALES" : 1772655,
 "TOTFEMALES" : 1937502
 }
 }, {
 "attributes" : {
 "ID" : "0",
 "OBJECTID" : 3,
 "StdGeographyLevel" : "IT.Postcodes1",
 "StdGeographyName" : "Firenze",
 "StdGeographyID" : "5",
 "sourceCountry" : "IT",
 "aggregationMethod" : "Query:IT.Postcodes1",
 "HasData" : 1,
 "TOTPOP" : 3710173,
 "TOTHH" : 1580030,
 "AVGHHSZ" : 2.35,
 "TOTMALES" : 1772664,
 "TOTFEMALES" : 1937509
 }
 }, {
 "attributes" : {
 "ID" : "0",
 "OBJECTID" : 4,
 "StdGeographyLevel" : "IT.Country",
 "StdGeographyName" : "Italy",
 "StdGeographyID" : "01",
 "sourceCountry" : "IT",
 "aggregationMethod" : "Query:IT.Country",
 "HasData" : 1,
 "TOTPOP" : 59929192,
 "TOTHH" : 24574680,
 "AVGHHSZ" : 2.44,
 "TOTMALES" : 28950567,
 "TOTFEMALES" : 30978625
 }
 } ]
 } ]
 }
 } ],
 "messages" : [ ]
}
0 Kudos
SimoneGadenz1
Deactivated User

Thanks Daniel Staining‌ for reply.

I tested your URL and it does not work using a token I got with my user Simone Gadenz, both using proxy or not.

This is the reply:

{   "results" : [ {     "paramName" : "GeoEnrichmentResult",     "dataType" : "GeoEnrichmentResult",     "value" : {       "version" : "2.0",       "FeatureSet" : [ ]     }   } ],   "messages" : [ {     "description" : "Study area at [0] was ignored. Failed to build network service area. Internal error.",     "id" : 46975,     "type" : "unknown"   } ] }

Any additional test I can do?

Best


S

0 Kudos
chakreshsahu
Occasional Contributor

Hi Simone,

Same issue, i was facing. Reducing DriveTimeBuffer has resolved the issue

0 Kudos