Hello everyone,
when I try to create an offline area pakaging always fails. DevTools in Microsoft Edge show this message:
"Failed to schedule Map area package refresh job for acf5d7a67e194964afc71c1b35ace31c error ERROR: code:500, Either 'refreshFrequency' or 'cronExpression' is required, but not both., Internal Servererror"
I already contacted Esri Support Germany. They gave me some test data, a tile layer with special tile scheme and a feature layer. both in same coordinate system as my data but different geographical location. Same error again.
They also told me that they have no clue about that error message. So maybe someone her in the community can give me some clues. Any help is really appreciated because offline usage of Field Maps on mobile devices is not possible that way.
System: ArcGIS Enterpise with ArcGIS Server 11.1 and Portal for ArcGIS 11.1 on MS Windows Server 2019
Thanks in advance
Micnow
Solved! Go to Solution.
In fact the base error came from the VMWare Tools version 12.5.0 which caused the CachingController service to crash. We did an update to the newest version 12.5.1 and now it is working. With my project I still have a problem with offline areas but that is only connect to one specific layer now. I will check settings for this layer or publish a new layer and put that one into my web map.
This post might be helpful: Offline Map Area Package Failure assuming you've already checked all the usual requirements:
Take web maps offline—Portal for ArcGIS | Documentation for ArcGIS Enterprise
Prepare maps for download—ArcGIS Field Maps | Documentation for ArcGIS Enterprise
I had a similar experience yesterday. Any attempt to package an offline map for my Field Map failed even though all my layers had sync enabled, were not in shared update groups, etc. I ended up creating a new blank map with just the basemap and was able to successfully package a small offline test map for that. After that, I added in each of the layers in my original map one by one, testing offline map creation after each addition. This allowed me to identify which layer was causing the issues. I still don't know what was wrong with that layer, but I overwrote it from Pro and apparently that shook something loose. (I suspect it had to do with the layer's editing template, which I had configured in Map Viewer Classic since I forgot to set it up prior to publishing from Pro the first time, but I'm not sure.) Now I am able to download offline areas with the new version of that layer included in my original map.
Hi Holly,
I was quite busy with some other stuff this week. Thanks for your quick response. I posted some more details about my problem as a seperate answer to the original post. Please see below.
Micnow
Micnow
These posts here might be helpful:
Your error message sounds like 'refreshFrequency' and 'cronExpression' are both being used, when only one can be used. Here is some other documentation from Esri Developer:
https://developers.arcgis.com/rest/services-reference/enterprise/rest-scheduled-jobs/
Let us know if you make any progress or if you have any other questions!
Hi Alex,
as I'm new to the community I don't know if you only see direct answers or other comments to that post too.
I posted some more details about my problem as a seperate answer to the original post.
Micnow
Hi HollyTorpey_USA, Hi Alex_Moore
thank you so much for your responses.
I have tried it with new data: a point feature layer as hosted feature layer in Portal for ArcGIS and a polygon layer as basemap as hosted tile layer. When I look at the ArcGIS Server Log file I get the following messages:
Submitted job message to Webhooks queue with job id : j294a49e3435d4ccba92127f7c66f9f0eserviceName : CachingControllers serviceType: GPServer message : {"requestProperties":{"folderName":"System","serviceName":"CachingControllers","serviceType":"GPServer","taskName" :"Export%20Cache","serviceId":"","jobId":"j294a49e3435d4ccba92127f7c66f9f0e","submissionTimeInMillis":174601311663 4,"statusURL":"https://OUR_ARCGIS_DOMAIN/arcgis/rest/services/System/CachingControllers/GPServer/Exp ort%20Cache/jobs/j294a49e3435d4ccba92127f7c66f9f0e","events":[{"eventType":"esriJobFailed","when":1746013131874}}]}} Servers
DEBUG Task name found in the job: Export%20Cache Server
DEBUG Submitting job message to Webhooks queue with job id : j294a49e3435d4ccba92127f7c66f9f0eserviceName : CachingControllers serviceType: GPServer taskName : Export Cache Server
SEVERE The contained process for 'System/CachingControllers' job 'j294a49e3435d4ccba92127f7c66f9f0e' has crashed. Server
DEBUG java.lang.Exception: Request could not be processed. Server
DEBUG Exception caught while handling request for service -System/CachingControllers. Server
DEBUG java.lang.Exception: Request could not be processed. at com.esri.arcgis.discovery.admin.rediscovery.actors.RediscoveryAppServer.handleRequestNoWait(RediscoveryAppServer.java:498) at com.esri.arcgis.discovery.admin.rediscovery.actors.GPJobExecutorSingleton.a(GPJobExecutorSingleton.java:390) at com.esri.arcgis.discovery.admin.rediscovery.actors.GPJobExecutorSingleton.access$1300(GPJobExecutorSingleton.java:81) at com.esri.arcgis.discovery.admin.rediscovery.actors.GPJobExecutorSingleton$ExecutorThread.run(GPJobExecutorSingleton.java:588) Server
DEBUG Exception in com.esri.arcgis.discovery.admin.rediscovery.actors.GPServerObjectSyncActor com.esri.arcgis.discovery.admin.rediscovery.util.ArcGISServiceException: Request could not be processed. Server
DEBUG Time (ms): 2 (/arcgis/rest/info) Rest
DEBUG Time (ms): 2 (/arcgis/rest/info) Rest
DEBUG Time (ms): 2 (/arcgis/rest/info) Rest
DEBUG Starting server object construction. CLSID = {a6da33b7-4804-4116-b54d-a72d77dd4081} System/CachingControllers.GPServer
DEBUG End - server object creation - System/CachingControllers System/CachingControllers.GPServer
DEBUG Time (ms): 13 (/arcgis/rest/services/Hosted/basemap_Poly_25832/MapServer/exportTiles/jobs/j294a49e3435d4ccba92127f7c66f9f0e_et) Rest
DEBUG Time (ms): 13 (/arcgis/rest/services/Hosted/basemap_Poly_25832/MapServer/exportTiles/jobs/j294a49e3435d4ccba92127f7c66f9f0e_et) Rest
FINE REST request successfully processed. Response size: 921 characters. System/CachingControllers.GPServer
DEBUG Server object processing time for service request: System.CachingControllers.GPServer is 6 ms. Server
FINE REST request received. Request size: 268 characters. System/CachingControllers.GPServer
FINE Wait time for service request 'System.CachingControllers.GPServer' is 1 millisecond. Server
DEBUG handleRequest() in com.esri.arcgis.discovery.admin.rediscovery.service.ArcSOCGISService called for service: System.CachingControllers.GPServer Server
DEBUG Delegating request to GPServerObjectProxy - System/CachingControllers.GPServer. Server
DEBUG Request type = - System/CachingControllers.GPServer. Server
So the CachingControllers just crashed when trying to create the tiles from the basemap. This happens everytime no matter which size of area I define or which basemap I use.
The point feature layer job was successful done.
As there is VMWare Tools 12.5.0 installed on that server, I'm wondering if there is a connection to the bug report here: https://support.esri.com/en-us/knowledge-base/arcgis-sever-print-service-and-caching-controller-cras...
I checked the job as mentioned in article "Offline packaging failed" bei GlenSheperd.
The result at REST Server Directory is:
"Job Info is null" |
I will try to update VMWare Tools with our IT-specialists on Monday. Second possibility is a that our security software blocks something or causes the crash. I hope I can check that too next week
Kind regards
Micnow
In fact the base error came from the VMWare Tools version 12.5.0 which caused the CachingController service to crash. We did an update to the newest version 12.5.1 and now it is working. With my project I still have a problem with offline areas but that is only connect to one specific layer now. I will check settings for this layer or publish a new layer and put that one into my web map.