POST
|
Heather Gonzago We are currently on 3.21. Can or will the fix be implemented on 3.21?
... View more
08-23-2018
12:43 PM
|
0
|
0
|
1198
|
POST
|
Just found out today we are affected by this also. Chrome v68 and JS API 3.21. Do we need to actually contact ESRI support or should I just monitor this thread for updates?
... View more
08-22-2018
02:19 PM
|
0
|
1
|
1198
|
POST
|
I work with Josh and I just tried this renderer and it's starting to work, however it always uses the renderer's default symbol... a green mostly transparent circle with a black outline. I noticed a couple changes in the json property names between the 3.23 and 4.x APIs that I have modified. Namely, "uniqueValueInfos" is just "infos" at 3.23, "field" is "attributeField" at 3.23 etc. I'm not sure if I've found all of the differences and I'm fairly annoyed they are different! As Josh stated, we are required to use 3.21 - so if there are differences between 3.23 and 3.21 we may be in trouble as I can't find a 3.21 specific API reference. As for the rotation concern, it has no affect if the "visualVariables" node is present or not in the renderer... it still shows the green default symbol like it could not match the groupid. One thing that has me curious is the location of the fields we need to key off of. The "groupid" field that determines the desired color of the renderer is nested in the "attributes" node of the stream output. I'm not familiar if these stream outputs are standardized in any way - how does the renderer know to look for "groupid" inside of "attributes" - do we need to specify that in the "infos" markup in the renderer (EG: use a JSON path expression)? If it helps those reading, below is a sample from our stream output (scrubbed data). ASB Group: {
"geometry": {
"x": -99.9999999,
"y": 99.9999999999999,
"spatialReference": {
"wkid": 4326
}
},
"attributes": {
"objectid": null,
"deviceid": "9999999999",
"x": -99.9999999,
"y": 99.9999999999999,
"speed": 0,
"heading": 169.7,
"ismoving": 0,
"gpsstatus": 1,
"gpstimestamp": 1515273625000,
"userid": "XXXXX",
"lastuserid": "",
"idletime": 390,
"userfullname": "REMOVED",
"groupid": "ASB",
"district": "REMOVED",
"status": null,
"onmdt": "REMOVED",
"technicianid": 9999,
"workassignment": null,
"vehiclenumber": null,
"insertdate": 1515273625395,
"hdop": 0.9,
"pdop": 1.2,
"fixtype": "GPS Fix",
"satellitecount": 10,
"sequencenumber": 1122
}
} WG Group: {
"geometry": {
"x": -99.9999999,
"y": 99.9999999999999,
"spatialReference": {
"wkid": 4326
}
},
"attributes": {
"objectid": null,
"deviceid": "9999999999",
"x": -99.9999999,
"y": 99.9999999999999,
"speed": 31,
"heading": 41.1,
"ismoving": 1,
"gpsstatus": 1,
"gpstimestamp": 1515273624000,
"userid": "XXXXX",
"lastuserid": "",
"idletime": 0,
"userfullname": "REMOVED",
"groupid": "WG",
"district": "REMOVED",
"status": null,
"onmdt": "REMOVED",
"technicianid": 99999,
"workassignment": null,
"vehiclenumber": null,
"insertdate": 1515273624814,
"hdop": 0.9,
"pdop": 1.2,
"fixtype": "GPS Fix",
"satellitecount": 10,
"sequencenumber": 1122
}
} Here is the renderer now that is showing default symbols (the defined green symbol, not esri's blue dots). It's using the properties specified for 3.23 as noted above. {
"type": "uniqueValue",
"attributeField": "groupid",
"visualVariables": [{
"type": "rotationInfo",
"field": "heading",
"rotationType": "geographic"
}],
"defaultSymbol": {
"color": [100,255,50,64],
"size": 12,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0,0,0,255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
}
},
"infos": [{
"value": "ASB",
"symbol": {
"color": [255,0,0,100],
"size": 12,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0,0,0,255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
},
{
"value": "WG",
"symbol": {
"color": [0,0,255,100],
"size": 12,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0,0,0,255],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
}]
}
... View more
01-06-2018
01:47 PM
|
1
|
1
|
904
|
POST
|
First, the data sources validate fine in both ArcCatalog as well as the ArcGIS Server Manager site. We did notice that the log message, after publishing failure, contained an Instance parameter set to some "DSID=<GUID>". When we opened the dsconnections.lst file, we are seeing the Instance parameter showing a value of "sde\:oracle11g\:<instance name>.<server name>" - the <instance name>.<server name> is what we have in our tnsnames.ora file fyi - again, all validations work. That line in the lst file was prefixed with the same GUID - it's like it's replacing the Instance parameter value with the guid... not sure how or why or if it even should (swizzle service problem?)??? Also, it should be noted that we do not have the 11g client installed as shown in the lst file, it's the 12c client. We have 2 virtual machines. One for Desktop (ArcGIS 10.2.1 and 32-bit 12c Oracle client - no 64 bit client on this machine) and another for Server (ArcGIS Server 10.5.1 and 64-bit 12c Oracle client).
... View more
08-03-2017
02:07 PM
|
0
|
1
|
1571
|
POST
|
We have 10.5.1 and are seeing the Swizzle failed error...
... View more
08-03-2017
11:51 AM
|
0
|
4
|
1571
|
POST
|
I inherited an older Sever Object Extension that was written for ArcGIS Server 10 and I need to reuse it now in a 10.3.1 ArcGIS Server. It's used for creating printouts (pdf) and in the code the map needs to be placed into the template. For which, there is a method to get and return the map to the template. The logic basically takes an IServerObject and casts it to an IMapServer object. The IMapServer object is then cast to IMapServerObjects. From the IMapServerObject, the Map property was returned and later inserted into the print template. I read somewhere that IMapServerObject was deprecated and now when this code executes, the IMapServerObjects object is null... and therefore no Map to return. I'm relatively unfamiliar with ArcObjects, but I feel like I'm missing something obvious. How do I get the map? I can create the IMapServer object, and it has a MapCount of 1 so it seems like it's there... just not sure how to capture it. Old code looked like this and used to work... public static IMap GetMap(this IServerObject source, string mapName)
{
if (source == null) return null;
var mapServer = source as IMapServer;
if (mapServer == null) return null;
var mapServerObjects = mapServer as IMapServerObjects2;
if (mapServerObjects == null) return null;
IMap map = mapServerObjects.get_Map(mapName);
return map;
}
... View more
09-16-2016
10:10 AM
|
0
|
0
|
618
|
POST
|
I'm able to successfully register an SOE that was originally developed for ArcGIS Server 10.0 on 10.3.1, but when I try to enable the SOE on a map service, it fails and throws the error : ClassFactory cannot supply the requested class. My assumption based off the lacking error message is that a library/dll is not being placed correctly somewhere but the message doesn't say what class, or what directory it's looking in for it. Can someone tell me what happens after you add an extension in Server Manager? Does it take dll files in the SOE bundle and copy them to the GAC, ArcGIS Server install bin directory, or somewhere else? I've been spinning my wheels on this for 4 days. I've tried manually placing all referenced dlls in the GAC manually at the suggestion of the esri support tech, but that doesn't have any effect and I feel like they are guessing anyway. I know the SOE works because it's running in production on a 10.0 version of ArcGIS Server. What needs to be done to reuse this SOE on 10.3.1. Also, I've ensured that the extension support was installed as part of the ArcGIS Server installation - I know that was the problem for some with this error. Also, ESRI.ArcGIS.SOESupport (v10.3.0) is in the GAC. Please help
... View more
08-08-2016
09:58 AM
|
0
|
1
|
1582
|
POST
|
Hoping this helps someone at some point. Resolved this issue. In our application we launch a print preview window in which a new map control is displayed. All of the layers and graphics in the application map are cloned and placed into the preview window's map control. When the window is closed, I was working off the assumption that the preview map and contents would be disposed of and they simply are not. Plus, they don't seem to be independent objects which could be an issue with our cloning process but I'm not sure how as all of the layers and graphics are instantiated as "new" objects. Yet if the preview map's graphics are not cleared before closing the preview window, the application will crash when trying to move graphics in the application's map. I'm clearing them prior to closing and now the application continues without issue.
... View more
08-14-2015
09:33 AM
|
0
|
0
|
809
|
POST
|
I'm currently working on a project that allows the user to add graphics to a map. The graphics are symbolized as SimpleTextSymbols. Since this is a labeling tool and we have multiple types of labels, I create an extra Graphic attribute (key value pair) to distinguish them in code. This all works fine and I am able to add multiple graphics to one GraphicsLayer. I noticed though, when I tried to use the hi-resolution print service that the extra attribute would cause the print to fail as the attribute key that I added is not a part of the Graphic's schema. So, to remedy this, I temporarily strip the attribute off any Graphic in the GraphicsLayer that has it and notate it's point location so that I can add it back later. At this point, the print service does it's thing and I have a pdf that I can print and all of my Graphic text labels are in the pdf. Now, I add the attributes back to the graphics. This completes successfully. Here is where things go bad. I need the ability to edit (move / edit font size / rotate) the graphics at any time. Prior to printing I can do this by using an editor control to select the Graphics and perform the desired edit. However, after printing them, I cannot move the Graphics. I can rotate or change the font size without a problem, but the second I click on a selected graphic(s) and drag, it throws the "Value does not fall within the expected range" exception and the app crashes. Below is the stack trace it generates: at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData) at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual) at System.Windows.UIElement.TransformToVisual(UIElement visual) at ESRI.ArcGIS.Client.Map.getFullViewExtent() at ESRI.ArcGIS.Client.Map.layer_OnLayerChanged(Object sender, EventArgs args) at ESRI.ArcGIS.Client.Layer.OnLayerChanged() at ESRI.ArcGIS.Client.GraphicsLayer.<CompositionTarget_Rendering>b__0() I added an event handler to the PropertyChanged event on the GraphicsLayer that houses all of my Graphics. When I attempt the move the selected graphics, the FullExtent property of the layer changes probably 25+ times when there are 7 graphics in the layer. This seems excessive A, and B, why would that crash the application? I have read a bit on other posts that this exception is common when trying to add something to the Visual Tree that has the same name as something already present in the tree. I don't see how that is the case in this scenario. I'm trying to move Graphics in a GraphicsLayer.... I'm not adding any objects to anything in the application. I've inspected the map, map layers, this graphics layer, the graphics in the layer, and attributes on the graphics... everything looks identical compared to the working status prior to the print. What is OnLayerChanged() doing??? Have no idea what CompositionTarget_Rendering.... refers to either. Please help! TIA.
... View more
07-24-2015
04:27 PM
|
0
|
1
|
4432
|
POST
|
I'm getting an identical stack trace on an error in my application. You mentioned your map was in a transient state and you believe that was part of the problem. Is there any event you've been able to attach to / break on to monitor the map status? In my scenario, I'm getting this error after requesting a server side high-resolution print. The print completes successfully and I have a pdf of the map. However, my map has user added graphics that comprise of simple text symbols. If the user selects the graphics and wants to move them, the error is triggered.One thing to note is that I have added custom attributes to the graphic so that I can recognize them in code for other purposes. These attributes are stripped away prior to sending them to the server for printing as the print will not complete if they are there. Once the print completes, I re-add them back to the graphics. Any attempt to move them after this generates the worthless "Value out of expected range..." error. I have no idea what is doing this. I've seen many google posts stating this is caused by attempting to add multiple objects to the visual tree where an item name already exists but I can't figure out what object that is. If this were related to my adding back of the graphic attribute, I would expect it to fail while attempting to add the attribute to the graphic but it does not. Oh, and to further complicate this problem, this error only happens in IE. If browsing in Firefox or Chrome there is no error.
... View more
07-21-2015
02:59 PM
|
0
|
0
|
467
|
POST
|
I have a Silverlight application where I am creating new GraphicsLayers and adding simple line graphics representing line features to each layer. Each individual GraphicLayer will actually have 3 different line styles (solid, dashed, and dotted) included within it depending on the feature type. This works great until I try programmatically zooming to one of the created layers. The way I'm approaching the zoom is by selecting the GraphicsLayer I want by name and then iterating through the graphics contained in the layer and manually build the extent I should zoom to. Once I have the extent, I call ZoomTo(extent) on the map control. When this happens, it zooms to the correct location but sometimes some of the graphics on the map shift or offset themselves from where they should be. It can happen on the GraphicsLayer I'm zooming to or on a different GraphicsLayer that I have added to the map. After the offset occurs, if I pan the map, the incorrect graphics location persists, but if I zoom in or out, the graphics redraw in their correct location. Why would zooming to an extent cause some graphics to move in the first place? Do I need to somehow redraw all my graphics layers after the zoom completes - that seems foolish? I should also mention that I call expand on the extent I build to buffer it a bit in the browser window.
... View more
03-16-2015
04:25 PM
|
0
|
1
|
3677
|
POST
|
So... I've ended up creating a new js file that is referenced in index.html of the application. The first thing I do when my widget opens is pass the map reference to a global variable in the new js file. From there, I'm assigning onclick methods to my button controls within instruction.html, which calls functions inside the new js file. Within the method in the new js file, I'm executing my querytask in a non-dojo / standard js way. This is getting results from my map service and plotting them in the map. This doesn't seem like the "best practice" way of doing things but I'm on a time crunch and it's working. I'd like to see more documentation and better examples on the api / web appbuilder sites because they leave a little too much guess work on *how* to perform many things. The querytask example they share doesn't have a map component at all... just displays feature attributes in a table... which doesn't go far enough in my mind... ok... getting off soap box. Thanks for you help today.
... View more
02-18-2015
04:26 PM
|
0
|
0
|
569
|
POST
|
Yep... already using it. Do you think my approach to this is flawed? Is there an easier way I'm overlooking?
... View more
02-18-2015
12:38 PM
|
0
|
2
|
569
|
POST
|
It is loaded into a ContentPane within the widget by setting the href property of the ContentPane. When the widget opens... here is what happens 1. AccordionContainer dijit created. 2. Tab Container created. 3. ContentPane dijit created. href property set to instruction.html. 4. ContentPane in step 3 added to Tab Container created in step 2. 5. Repeat 3 & 4 for overview.html 6 Tab Container added to the Accordion Container created in step 1. 7. Repeat 1-6 for all other work orders. End result is an accordion control, each accordion item has a tab control with two tabs - overview and instructions. Yes, this does work. It does render the contents of instructions.html and overview.html in the respective tabs.
... View more
02-18-2015
11:49 AM
|
0
|
4
|
569
|
POST
|
If not why do you have a instructions.html at all, why not have the content of this file as part of the widget.html? That seems like a static approach. Widget.html contains the layout and tab container and tabs. But I'm not sure how to make the tab contents dynamic without my approach.
... View more
02-18-2015
11:36 AM
|
0
|
0
|
569
|
Title | Kudos | Posted |
---|---|---|
1 | 02-13-2015 08:17 AM | |
1 | 01-06-2018 01:47 PM | |
2 | 08-23-2013 01:08 PM | |
1 | 02-10-2015 05:12 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|