Hi Austin,
Thanks for the help so far. I am going to have to do some deeper
debugging of this problem. It is strange that it worked earlier and
then suddenly stopped. (I tried earlier versions of Firefox, and that
does not help the problem either).
Can you please help me with more detailed information about that error
message. What causes that error?
Thanks,
Dan
On May 19, 4:55 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
> 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 <[EMAIL PROTECTED]> 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)" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > wrote:
>
> > > > Hi Austin,
>
> > > > Do you have any update on this?
>
> > > > Thanks,
> > > > Dan
>
> > > > On May 18, 10:09 pm, Dan <[EMAIL PROTECTED]> 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)" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]
>
> > > > 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.
>
> > > > > > > Thanks,
> > > > > > > Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---