Google Earth parse error: not well formed (invalid token)

nwilson's Avatar

nwilson

03 Jan, 2011 03:52 PM

I encounter the error shown in the attached screen capture when exporting some shapefile features to Google Earth via KML. Could someone help me interpret the error?

Arc2Earth 3.0, ArcGIS 9.2.

  1. 1 Posted by nwilson on 03 Jan, 2011 05:22 PM

    nwilson's Avatar

    I have found a polygon that is causing the error and have attached the shapefile. Could someone please evaluate this?

  2. 2 Posted by nwilson on 03 Jan, 2011 05:34 PM

    nwilson's Avatar

    I have determined the problem is related to the "Export KML Schema 2.2 with each feature" option in the Layer/Advanced options. When toggeled off the error ceases. I don't know that I need this option so I'll see if I can get by without it. Still it would be good to know what the issue is.

  3. Support Staff 3 Posted by bFlood on 03 Jan, 2011 05:40 PM

    bFlood's Avatar

    thanks for looking closer at your issue, I can repro the error here however, it looks like the oddball character in your data is causing GE to throw an error (even though the data is in a CDATA section in the xml)

    <![CDATA[408-02-167, Quail Run lot 3]]>

    after 'lot 3', there a weird non standard ascii character in your data. I'm not sure I should strip these automatically so you might have to do it manually (you might want to look at why its there in the first place)

    cheers
    brian

  4. 4 Posted by nwilson on 03 Jan, 2011 05:53 PM

    nwilson's Avatar

    I see the problem now. Something is happening during our database
    export. Thank you very muuch for finding this.

    -----Original Message-----
    From: bFlood
    [mailto:[email blocked]]
    Sent: Monday, January 03, 2011 10:40 AM
    To: Neil Wilson
    Subject: Google Earth parse error: not well formed (invalid token)
    [Problems]

  5. 5 Posted by nwilson on 04 Jan, 2011 09:28 PM

    nwilson's Avatar

    Hello Brian,

    I hope you don't mind my asking for your help direct via email. If you
    prefer I use the website please say so.

    I am using Arc2Earth 3.0 and ArcGIS 9.2. I have linked my polygon
    shapefile to a Microsoft Access database using on ODBC connection. My
    tables are all linked up properly in ArcMap so that all data shows in my
    tables and information inquiries. In my export to Googel Earth options I
    have included fields from both my shapefile and the joined database in
    the Popup Balloons template. When I export to Google Earth via KML, none
    of the database data apears in the pop up balloons. The fields are there
    but the values are blank. This happens with both the Simple Template and
    the Advanced Template options. Could you direct me to information that
    will help me get the joined table data into the KML file?

    Sincerely,

    Neil Wilson

  6. Support Staff 6 Posted by bFlood on 05 Jan, 2011 01:10 PM

    bFlood's Avatar

    hi neil

    so none of the attributes appear, either the shapefile's or the joined data? I'll take a look at this on my end

    cheers
    brian

  7. 7 Posted by nwilson on 05 Jan, 2011 02:56 PM

    nwilson's Avatar

    Brian,

    The shapefile attributes appear but not the joined data. If I merge the
    table with the shapefile then all the data appears, but that defeats the
    purpose of using a join.

    -----Original Message-----
    From: bFlood
    [mailto:[email blocked]]
    Sent: Wednesday, January 05, 2011 6:10 AM
    To: Neil Wilson
    Subject: Google Earth parse error: not well formed (invalid token)
    [Problems]

  8. Support Staff 8 Posted by bFlood on 05 Jan, 2011 02:59 PM

    bFlood's Avatar

    agreed. what v of ArcGIS are you using?

    can you try using the table name as part of the token? so, if the joined table is "MyTable", try [!MyTable.FieldName1]

    thx
    brian

  9. 9 Posted by nwilson on 05 Jan, 2011 03:07 PM

    nwilson's Avatar

    Brian,

    I am running ArcGIS 9.2. I see the topic of this thread is from a
    different issue. I hope that is not confusing you. The problem is not
    related to the "invalid token" error in the topic.

    I'm not clear on what you mean by "using the table name as part of the
    token". Are you suggesting I modify the balloon label template using the
    Advance (HTML) option? I'll give that a try and see if it works.

    -----Original Message-----
    From: bFlood
    [mailto:[email blocked]]
    Sent: Wednesday, January 05, 2011 8:00 AM
    To: Neil Wilson
    Subject: Google Earth parse error: not well formed (invalid token)
    [Problems]

  10. 10 Posted by nwilson on 05 Jan, 2011 03:21 PM

    nwilson's Avatar

    Brian,

    I modified the Balloon Template without success. Please see the attached
    screen captures which show the modified template and the GE results.

    -----Original Message-----
    From: bFlood
    [mailto:[email blocked]]
    Sent: Wednesday, January 05, 2011 8:00 AM
    To: Neil Wilson
    Subject: Google Earth parse error: not well formed (invalid token)
    [Problems]

  11. Support Staff 11 Posted by bFlood on 05 Jan, 2011 03:54 PM

    bFlood's Avatar

    hi neil

    I just tried here with a 9.2 machine and it seems to work as expected. When I Joined data to a layer and then went to Advanced Info Window builder, the default template was created with the proper [!tableName.fieldName] syntax. Likewise, when I exported the values were populated as well

    couple things:
    1) are you using a Join or a Relate?
    2) can you use the Joined data as field in the layer's Renderer? (e.g. you should see the TableName.FieldName syntax in the dropdown)
    3) I can get you the latest version of A2E to see if this was fixed (don't think this is it but its worth a shot)

    cheers
    brian

  12. 12 Posted by nwilson on 05 Jan, 2011 04:08 PM

    nwilson's Avatar

    Per your questions:

    1) I am using a Join.
    2) When I reset the renderer to use the default template I do not see
    the table name in the syntax (See attached screen capture)
    3) I have version 3.0. If there is an update let me know.

    One thought I have is that something is not getting refreshed when
    loading Arc2Earth. I have reconfigured my ODBC connection as well as the
    ACCESS table. I know ArcMap also has problems refreshing when data
    sources change so it could be related. Would you have any suggestions
    about getting a completely fresh arc2Earth export template?

    -----Original Message-----
    From: bFlood
    [mailto:[email blocked]]
    Sent: Wednesday, January 05, 2011 8:54 AM
    To: Neil Wilson
    Subject: Google Earth parse error: not well formed (invalid token)
    [Problems]

  13. Support Staff 13 Posted by bFlood on 05 Jan, 2011 04:24 PM

    bFlood's Avatar

    thanks for the info and screens, they are very helpful

    1) to get a new default Template, you can delete the existing one (select all, delete) and then hit save. Open the Builder window again and it will make a new default template (yea, I should put a button on the toolbar to do this easily :)

    2) Go to ArcMap's Layer property dialog->Symbology tab. Select UniqueValue for the renderer type and click on the Field dropdown. What do the field name's look like there?

    3) We use what's called the DisplayFeatureClass for all layers, so it should seamlessly include all Joins/Relates with their proper names. It worked here on my 9.2 machine but (as is always the case with ArcMap) it may work differently on other machines (and the ODBC connection might be part of it too)

    4) the fact that your shapefile attributes have the proper tableName syntax but the Joins do not is weird. If the Join was somehow missed in the DisplayFeatureClass, I would expect them both to be just the fieldName

    brian

  14. 14 Posted by nwilson on 05 Jan, 2011 05:15 PM

    nwilson's Avatar

    I'm sending screen caps showing both the Shapefile Symbology fields list
    and the Arc2Earth balloon template fields list. Neither has the Join
    table name in the syntax. Since everyrthing works in ArcMap I've never
    paid attention to this before so I don't know what to make of it.

    -----Original Message-----
    From: bFlood
    [mailto:[email blocked]]
    Sent: Wednesday, January 05, 2011 9:25 AM
    To: Neil Wilson
    Subject: Google Earth parse error: not well formed (invalid token)
    [Problems]

  15. 15 Posted by Akrm on 24 Aug, 2011 09:39 AM

    Akrm's Avatar

    i have problem
    i attach the erorr masege
    ArcMap has encountered a problem and need to close

  16. 16 Posted by Iván Alberto Ga... on 23 Oct, 2018 09:18 PM

    Iván Alberto Galeano's Avatar

    Hello, I have a problem with my Google Earth file (KMZ file), I was working and being restarted my PC, and when I opened my file I found the following error that appears on the screen. I need help to recover my file, since I used the tool to restore kml or kmz online but it tells me that the size exceeds the allowed capacity since my file weighs approximately 2.7 mb. I need help .. thank you very much

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Cap_025.jpg 15.9 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac