8 messages in com.googlegroups.google-calendar-help-dataapiRe: problem with gd:extendedProperty ...
FromSent OnAttachments
Dan16 May 2008 12:06 
Austin (Google)16 May 2008 13:07 
Dan18 May 2008 22:09 
Dan19 May 2008 16:14 
Austin (Google)19 May 2008 16:31 
Dan19 May 2008 16:39 
Austin (Google)19 May 2008 16:54 
Dan20 May 2008 12:24 
Subject:Re: problem with gd:extendedProperty -- Please help!
From:Austin (Google) (api.@google.com)
Date:05/19/2008 04:54:53 PM
List:com.googlegroups.google-calendar-help-dataapi

I am using the Java client library and I was able to append a name/pair to an existing event -

public CalendarEventEntry getOneEvent(String text) throws Exception {

URL feedUrl = new URL(" http://www.google.com/calendar/feeds/default/private/full");

CalendarQuery query = new CalendarQuery(feedUrl); query.setFullTextQuery(text); query.setMaxResults(1);

CalendarEventFeed resultFeed = calendarService.query(query, CalendarEventFeed.class);

CalendarEventEntry entry = null;

Iterator iter = resultFeed.getEntries().iterator();

while (iter.hasNext()) { entry = (CalendarEventEntry) iter.next(); break; }

return entry; }

public void appendExtendedProp() throws Exception {

URL feedUrl = new URL(" http://www.google.com/calendar/feeds/default/private/full");

CalendarEventEntry entry = getOneEvent(CLIENT_NAME);

String name = "http://mySticky.com/schemas/2007#sticky.text"; String value = "test%20textaaa";

ExtendedProperty prop = new ExtendedProperty(); prop.setName(name); prop.setValue(value);

entry.addExtendedProperty(prop);

entry.update(); }

There isn't any changes on the server that im aware of, let's take a look at the code snippet that you use to perform the update, maybe that can help narrow down the cause. Thanks.

Austin

On Mon, May 19, 2008 at 4:39 PM, Dan <Dani@gmail.com> wrote:

Hi Austin,

Thanks for the reply. No, I am not using the extq query parameter. I am using a PUT.

How are you adding the name/value to an existing event?

Can you tell me what the error means? Why are value and XML mutually exclusive?

How do I generate an XML trace?

Last, is there anything that changed on the Google server side? This code worked for 1 year with no problem, but started failing a couple of weeks ago.

Thanks, Dan

On May 19, 4:31 pm, "Austin (Google)" <api.@google.com> wrote:

Hi,

I don't have problem adding your name/value as extended property to an event. Are you retrieving the entry that contains this name/value pair using the extq query parameter? if that's the case, you need to url encode the name/value because it has unsafe characters on it.

Austin

On Mon, May 19, 2008 at 4:14 PM, Dan <Dani@gmail.com> wrote:

Hi Austin,

Do you have any update on this?

Thanks, Dan

On May 18, 10:09 pm, Dan <Dani@gmail.com> wrote:

Hi Austin,

Thanks for the reply. Sorry for the delay in getting back to you. (I just returned from out of town).

Here is the info you requested:

-I am getting the error from an update (I am adding a new extendedProperty value to an existing entry).

-The name/value is custom to my application. It is: <gd:extendedProperty name="http://mySticky.com/schemas/ 2007#sticky.text" value="test%20text"> </gd:extendedProperty>

-How do I generate an XML trace? Please let me know and I will send you the trace ASAP.

Can you please tell me what is the meaning of the error message? Why are value and XML mutually exclusive?

Thanks, Dan

On May 16, 1:08 pm, "Austin (Google)" <api.@google.com> wrote:

Hi,

Could you give us the XML trace for this entry? and how are you

getting

this

error, from update or retrieval? and also what is the name/value

for

this

extendedProperty?

Thanks, Austin

On Fri, May 16, 2008 at 12:06 PM, Dan <Dani@gmail.com

wrote:

I have a Google Calendar gadget that has been working well for the past year. I use extendedProperty to store some custom data in the calendar entry.

Within the past few weeks, something has changed on the Google server side and I now get an error when I update the entry.

I now get this error:

Line 94, Column 26, element gd:extendedProperty] g:extendedProperty/ @value and XML are mutually exclusive

-->>What does this mean? Why are value and XML mutually exclusive? Why did this suddenly stop working?

Any help is greatly appreciated.