Select to view content in your preferred language

Popup info is adding many numbers behind decimal point?

6271
34
09-26-2012 11:37 AM
ReedDavis
Emerging Contributor
I have configured my popup to show percent unemployment for the county that is clicked, the popup displays the information but adds about ten bogus numbers after the decimal on some counties. The source data is configured as follows: The percent unemployment field is float with precision of 6 scale of 2, number of decimal places 2. The same is occurring in the search tool which leads me to believe it is a source data formatting issue. Any Ideas?
Tags (2)
0 Kudos
34 Replies
ReedDavis
Emerging Contributor
Shouldn't matter because the data I am editing is not the same instance, I have been overwriting my service each time I make an update, the data I am attempting to edit is local, the service is on my server. It is my understanding that the service is a copy of the data not a reference to it. Maybe I am misunderstanding the environment?
0 Kudos
ReedDavis
Emerging Contributor
Tried anyway, just to be thorough. Still no field calculator for me.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
RD and Michael,

   It is a copy (sometimes) in 10.1. Are you using 10.1 for ArcGIS Server? I use SDE and FGDB data for my map services and performing a schema change require an exclusive lock on the data and can not be a shared lock. So when I want to add a field to a FC in one of my GDBs that is included in a Map Service I always have to stop that map service, make the change, save the mxd, overwrite the MSD, restart the map service, clear the REST cache.
0 Kudos
ReedDavis
Emerging Contributor
Well, the field calculator is still being moody but I can now manually edit at least, one problem was the source data was not versioned.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
RD,

   So once your data is versioned you can add a field (When NOT Editing) and then when you are editing you can perform a field calculation.
0 Kudos
ReedDavis
Emerging Contributor
Correct, now that I have been able to edit those records I am still having the same issue, the addition of numbers behind the decimal. To elaborate: the only field not returning the error was double, so I add a double field, populate it with the same data as was in the float field(that was returning the error) and it still gives me the error.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Reed,

   Did you overwrite your MSD as well as saving your MXD changes? Did you restart your Map Service? Did you clear your REST Cache by using the REST Service directory admin page? Have you verified that the REST Service directory is reporting the existence of the new double field for that map service? Have you updated the popup xml to use that field instead of the old single field?
0 Kudos
ReedDavis
Emerging Contributor
Yes to all, I believe the cache is cleared automatically in 10.1 and the server is displaying:

PercentUNE ( type: esriFieldTypeDouble , alias: Percent Unemployment )

and now even though I left the precision and scale set to 0,0 they are showing 38,8 respectively in my workspace.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
RD,

   Have you cleared your browsers cache? Have you tried to access the Viewer from a different machine? Short of that, it is time to call esri tech support.
0 Kudos
ReedDavis
Emerging Contributor
Yeah, the Flex Viewer and I have come to an understanding, I don't input any data with decimals(rounded them all off, its not critical for what I'm doing) and it doesn't display bogus numbers behind them. Problem Solved, well not really, but I'm moving on for now.
0 Kudos