12 messages in com.googlegroups.google-base-data-apiRe: "[Line 30, Column 134, element li...
FromSent OnAttachments
Eagl...@gmail.com12 Mar 2007 15:40 
Frank Mantek13 Mar 2007 00:54 
Eagl...@gmail.com13 Mar 2007 05:12 
Frank Mantek13 Mar 2007 05:43 
Eagl...@gmail.com13 Mar 2007 06:22 
Frank Mantek13 Mar 2007 06:48 
Eagl...@gmail.com13 Mar 2007 08:34 
Frank Mantek13 Mar 2007 08:52 
Eagl...@gmail.com13 Mar 2007 09:24 
Frank Mantek13 Mar 2007 09:32 
Eagl...@gmail.com13 Mar 2007 11:06 
Frank Mantek14 Mar 2007 02:30 
Subject:Re: "[Line 30, Column 134, element link] Illegal character in path
From:Eagl...@gmail.com (Eagl@gmail.com)
Date:03/13/2007 08:34:45 AM
List:com.googlegroups.google-base-data-api

Ugg. link.href doesn't contain the "%20"

?link.HRef {Google.GData.Client.AtomUri} Content: "http://www.electroexchange.com/Ninja Gaiden - XBOX,itemname,40,id,auctiondetails"

but AbsoluteUri Does

?link.AbsoluteUri "http://www.electroexchange.com/Ninja%20Gaiden%20-%20XBOX,itemname, 40,id,auctiondetails"

May have to go another way?

My orig upload of the data was from a tabbed excel file. The data did not contain the %20 in the urls in my excel file. HTTP must add the %20 during the batch upload process because I can see them when I hover over my Item Titles in "My Items -> Active Items" Does google have to store the %20's in their database or could you guys allow HTTP to take care of this? Any other workaround would be fine though. I could parse the entire XML document to replace %20 with spaces, just not sure if I can capture that before I send it up in service.batch().

Thanks,

Seth

On Mar 13, 9:48 am, "Frank Mantek" <fman@gmail.com> wrote:

So how do you construct this link element? Can't you encode this while constructing it? You could also do the following:

for each link in entry.links AtomUri uripart = link.HRef convertedString = uripart.toString().Replace(...) link.HRef = new AtomUri(convertedString) next..

this is from the top of my head, but something along those lines should work...

Frank Mantek Google

On 3/13/07, Eagl@gmail.com <Eagl@gmail.com> wrote:

it's the link element - I'm trying to replace the %20's with " " (spaces) as I'm pretty sure that's what is blowing it up.

Dim link As New AtomLink For Each link In entry.Links link.AbsoluteUri.Replace("%20", " ") Next

But the AbsoluteUri is read only. I wanted to do this in the PostData(), but can't. I really don't want to mess with the source code of my store to handle my product URLs differently. I am hoping I can clense the URL on the gbase side.

Worst comes to worst I guess I can just get down raw XML and parse that. I'm wondering if there is a way to change permissions on the readonly property. I think I saw a post on here that someone had trouble with ReadOnly properties. I'll take a look. And thanks again for checking this out Frank. You rock!

On Mar 13, 8:43 am, "Frank Mantek" <fman@gmail.com> wrote:

ok, that's the error response. The link Ninja Gaiden etc, is in what element on the update? is this the atom:title? a link element?

Frank Mantek Google

On 3/13/07, Eagl@gmail.com <Eagl@gmail.com> wrote:

Hi Frank,

Here is the XML where the update fails:

<?xml version='1.0' encoding='UTF-8'?><atom:feed xmlns:atom='http:// www.w3.org/2005/Atom'xmlns:openSearch='http://a9.com/-/spec/ opensearchrss/1.0/' xmlns:gm='http://base.google.com/ns-metadata/1.0' xmlns:g='http://base.google.com/ns/1.0'xmlns:batch='http:// schemas.google.com/gdata/batch'><atom:id>http://www.google.com/base/ feeds/items</atom:id><atom:updated>2007-03-13T11:49:47.211Z</ atom:updated><atom:title type='text'>Batch Feed</atom:title><atom:link rel='http://schemas.google.com/g/2005#feed'type='application/atom +xml' href='http://www.google.com/base/feeds/items'></ atom:link><atom:link rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='http://www.google.com/base/feeds/ items'></atom:link><atom:link rel='http://schemas.google.com/g/ 2005#batch' type='application/atom+xml' href='http://www.google.com/ base/feeds/items/batch'></atom:link><atom:entry><atom:id>http:// www.google.com/base/feeds/items/fatal </atom:id><atom:updated>2007-03-13T11:49:47.211Z </atom:updated><atom:title type='text'>Fatal Error</atom:title><atom:content type='text'>Feed processing was interrupted.</atom:content><batch:interrupted reason='[Line 30, Column 134, element link] Illegal character in path at index 36:http://www.electroexchange.com/NinjaGaiden- XBOX,itemname,40,id,auctiondetails' parsed='0' success='0' error='0' unprocessed='0'></batch:interrupted></atom:entry></atom:feed>

All HTTP connections are successful. Just dies on that link. I guess I have to parse the URL to my products, just not sure exactly what point to do it. Thanks for taking a look!

On Mar 13, 3:55 am, "Frank Mantek" <fman@gmail.com> wrote:

Can you capture the HTTP traffic for the update of one item and post it here?

Delete's should not be effected though, as a delete is just an HTTP DELETE against the URI (assuming the URI is ok)...

Frank Mantek Google

On 3/12/07, Eagl@gmail.com <Eagl@gmail.com> wrote:

Hello All,

I'm pretty sure why my inserts, updates and deletes aren't working. II'm using the vb.net google example form working with .NET 2.0 'm getting a

"[Line 30, Column 134, element link] Illegal character in path at index 36:http://www.electroexchange.com/NinjaGaiden-XBOX,itemname, 40,id,auctiondetails"

My status code is still 200 (success), but when I examine the entry.batchdata.interrupt.reason bject I get the above.

Dim returnFeed As GBaseFeed = service.Batch(batchFeed, New Uri(Me.batchFeed.Batch))

For Each entry As GBaseEntry In returnFeed.Entries If entry.BatchData.Status.Code > 300 Then Me.ItemCount.Text = "errors encountered" Application.DoEvents() Exit Sub End If Next

I imagine that I have may have to replace the spaces with %20, but I'm not exactly where or on which object to do this.

Continuing to work away. Thanks for any input.- Hide quoted text

-

- Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -