Run report and getting no map
Hi everyone,
I have build an applicatie that uses VertiGIS Studio Web, Workflow and Reporting. The webmap I'm using for this app has multiple feature layers and a base map that use the RD-New (WKID 28992) coördinaten system.
When I run a report with the Run Report activity, with the setting Include map set to true, I don't get any map in my report (I got the element in the report but it stays blank).
When I change the basemap to a map with the spatial reference WKID 102100 I do get a map in my report. Including the feature layers that still use the wkid 28992 spactial reference.
My question is: what do I need to do to also get a map in my report with a basemap that has the wkid 28992 spactial reference.
-
This seems a bug to me, or a reprojection issue.
If you have the ticket number (see URL of the report output), you can get more logging info with the URL below. Do you see errors here?
https://<servername>/geocortex/Reporting/service/job/logs.html#logs?ticket=<ticket>&topic=PrintLog
0 -
Hi Nico Burgerhart, thank you for helping me (again)!
I didn't know there was a log service for Reporting, this is really helpful. I see a lot of "Failed to load" (404) errors and some certificates errors. Here is the log:
Information: 0: ChromePrinter: Using ArcGIS API for JavaScript 4.15 [Date: 20200413, Revision: bbc22ffd] ( ) 7aa1fa1ae30b4fdc8b5728495fab5430 Information: 0: ChromePrinter: !!! Heartbeat !!! ( utils.js line=35 column=24 ) 7b88565e0cc84acda32fcce9c9a502e5 Information: 0: ChromePrinter: Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID ( url=https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer/project?f=json&outSR=28992&inSR=4326&geometries=%7B%22geometryType%22%3A%22esriGeometryEnvelope%22%2C%22geometries%22%3A%5B%7B%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%2C%22xmin%22%3A5.2811344775581714%2C%22ymin%22%3A52.074248475054766%2C%22xmax%22%3A5.296617140509415%2C%22ymax%22%3A52.08131833801316%7D%5D%7D ) c855f1b7eab643d8b439d04596aac6a3 Information: 0: ChromePrinter: [esri.WebMap] Error projecting item's extent: ( ) 52a2857b4a3240c294caeb7ebc916cc3 Information: 0: ChromePrinter: Failed to load resource: the server responded with a status of 404 (File Not Found) ( url=http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/1bd737a2fc9a470380e6e3da8f600b82?f=json ) 2dcba75212cb4c9ab890a747553fa768 Information: 0: ChromePrinter: [esri.layers.mixins.PortalLayer] Failed to load layer (Geluidsgevoelige objecten, 461eb5d81ccb48bd841fc03c478ea852) portal item (1bd737a2fc9a470380e6e3da8f600b82) [request:server]: Unable to load http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/1bd737a2fc9a470380e6e3da8f600b82?f=json status: 404 ( ) 6606345f73a5429ebea5470e736335fb Information: 0: ChromePrinter: Failed to load resource: the server responded with a status of 404 (File Not Found) ( url=http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/d32867f9044b4d43b35815e661578e38?f=json ) c2ea92dc708749029704b61e9934c7d7 Information: 0: ChromePrinter: [esri.layers.mixins.PortalLayer] Failed to load layer (TUG ontheffing specifiek locatiegebonden, TUG_ontheffing_intern_specifiek_locatiegebonden_2407) portal item (d32867f9044b4d43b35815e661578e38) [request:server]: Unable to load http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/d32867f9044b4d43b35815e661578e38?f=json status: 404 ( ) 7b7179b077e147b4af658e072d0f5147 Information: 0: ChromePrinter: Failed to load resource: the server responded with a status of 404 (File Not Found) ( url=http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/ba20e866daef4991a08d5cbc01640bd6?f=json ) 2461d8266ff44390961ee4138626d570 Information: 0: ChromePrinter: [esri.layers.mixins.PortalLayer] Failed to load layer (TUG ontheffing locatiegebonden, TUG_ontheffing_intern_locatiegebonden_8213) portal item (ba20e866daef4991a08d5cbc01640bd6) [request:server]: Unable to load http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/ba20e866daef4991a08d5cbc01640bd6?f=json status: 404 ( ) 420c03f76b4e4e2ca377a64e6468bdb4 Information: 0: ChromePrinter: Failed to load resource: the server responded with a status of 404 (File Not Found) ( url=http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/2d58a008737542a592751cf71bc90a0a?f=json ) f6693b3b55cd4853afc4cccbcccd451e Information: 0: ChromePrinter: [esri.layers.mixins.PortalLayer] Failed to load layer (TUG melding, TUG_melding_intern_9462) portal item (2d58a008737542a592751cf71bc90a0a) [request:server]: Unable to load http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/2d58a008737542a592751cf71bc90a0a?f=json status: 404 ( ) f881a4b181a04d778de2513d3efde40b Information: 0: ChromePrinter: Failed to load resource: the server responded with a status of 404 (File Not Found) ( url=http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/fa2327aed95b428691fc09b3a7c35263?f=json ) fce237957eef4673a970b8fc1e73c7e9 Information: 0: ChromePrinter: [esri.layers.mixins.PortalLayer] Failed to load layer (CBS Provincie actueel, c4208ba07ce04655ab66e436906d0376) portal item (fa2327aed95b428691fc09b3a7c35263) [request:server]: Unable to load http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/fa2327aed95b428691fc09b3a7c35263?f=json status: 404 ( ) 7d2ea23862534df9bfa0a2488fad4781 Information: 0: ChromePrinter: Failed to load resource: the server responded with a status of 404 (File Not Found) ( url=http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/b03320574d8446d481afd20babdb7d06?f=json ) b0ee630f116747b288bb04b2c0859ffd Information: 0: ChromePrinter: [esri.layers.mixins.PortalLayer] Failed to load layer (Panden met woonfunctie, 7a5033a36492498db154eb6d7e1c66f4) portal item (b03320574d8446d481afd20babdb7d06) [request:server]: Unable to load http://localhost:61144/a7ea70ec20eb40cd9d5062070e1e8c6e/@geocortex/reporting-default-map-printer/app/.job/arcgis/sharing/rest/content/items/b03320574d8446d481afd20babdb7d06?f=json status: 404 ( ) 6b27cc27054a496cbe492984792482ab Information: 0: ChromePrinter: Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID ( url=https://services.arcgis.com/nSZVuSZjHpEZZbRo/arcgis/rest/services/Kwetsbare_objecten/FeatureServer/0?f=json ) 27d1cfc4ea4a4486b352cd09deef439c Information: 0: ChromePrinter: Unable to load layer Geluidsgevoelige objecten with Id: 461eb5d81ccb48bd841fc03c478ea852. Encountered error: [request:server]: Failed to fetch ( Map.js line=983 column=28 ) be3a65790835433282e9e7d06fe607fb Information: 0: ChromePrinter: [esri.layers.FeatureLayer] #load() Failed to load layer (title: 'Geluidsgevoelige objecten', id: '461eb5d81ccb48bd841fc03c478ea852') ( ) a71f35305c654615b2286311dd3430ae Information: 0: ChromePrinter: Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID ( url=https://services.arcgis.com/nSZVuSZjHpEZZbRo/arcgis/rest/services/CBS_Provincie_actueel/FeatureServer/0?f=json ) b5d8dc3b790f457bb67efac64df2d640 Information: 0: ChromePrinter: Unable to load layer CBS Provincie actueel with Id: c4208ba07ce04655ab66e436906d0376. Encountered error: [request:server]: Failed to fetch ( Map.js line=983 column=28 ) 81d929746b054558a4f2007ecd7ead18 Information: 0: ChromePrinter: [esri.layers.FeatureLayer] #load() Failed to load layer (title: 'CBS Provincie actueel', id: 'c4208ba07ce04655ab66e436906d0376') ( ) dfcacf2e40c646208448f29aa3c889f5 Information: 0: ChromePrinter: Layer 'Geluidsgevoelige objecten' with Id: 461eb5d81ccb48bd841fc03c478ea852 was not loaded and will not be present in the legend. ( Map.js line=262 column=28 ) a7acc0c8d5f14836a4e39e77df8eb9fb Information: 0: ChromePrinter: Layer 'CBS Provincie actueel' with Id: c4208ba07ce04655ab66e436906d0376 was not loaded and will not be present in the legend. ( Map.js line=262 column=28 ) ebd399e42c094debb464b7eae1f2a8f9 Information: 0: MapPrinter.RunAsync took 16776 ms. Information: 0: Print Quit: Print
0 -
The next question is why the layers are failing to load. permissions of the account running Reporting, or firewall issues.
0 -
Well the account that is running Reporting is, in this case, an admin account. So I think it is a firewall issue.
The strange thing is, when I use a basemap with the wkid 102100 spactial reference, I do get a map in my report with layers that, according to the log, fail to load.
0 -
Hi Atze and Nico,
First of all, thanks for the tip regarding the Reporting logs!
I have already encountered this issue a couple of times in different on-premise Reporting environments. No web map is displayed when generating a report using different applications (Geocortex Essentials, VertiGIS Studio Web and preview in Reporting Designer). Does one of you already have more information about this? Is it a bug and/or are there any workarounds? Using a basemap in wkid 102100 did not help in my case.
Thanks,
Marina
0 -
Jumping on this old thread, I'm running into the same issue where layers aren't loading in my map. Thanks for the great logs link. I had to change it to say /printing/ but it gave me a clue. My AGO items have referrer urls limited, so when I saw that it was making http://localhost:##### requests, I added that to the URLs and now my aerial loads on the print. Is there a way to enforce HTTPS?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer