As i have given the message in the else part,
i am getting entry null has been failed.

for (GoogleBaseEntry entry1 : result.getEntries()) {
       logger.info("entry1"+entry1);
      logger.info("entry ID"+entry1.getId());
       if (BatchUtils.isSuccess(entry1))
          {
               logger.info("Entry " + entry1.getId() +" has been added
successfully.");
                                               inserted++;
                                               tinserted++;
          }
       else
          {
               logger.info("Entry " + entry1.getId() +" has been failed.");
                                               failed++;
                                               tfailed++;
           }
}

On Wed, Oct 15, 2008 at 6:01 PM, Tom Wilson
<[EMAIL PROTECTED]>wrote:

>
> What failure message are you actually getting ?
>
> Tom Wilson
> Freelance Google Base Developer and Consultant
> www.tomthedeveloper.com
>
> Google Base Tools - http://dev.tomthedeveloper.com/googlebase
> Featured Project :
> http://google-code-featured.blogspot.com/2008/02/google-base-competitor-analysis.html
>
> On Oct 15, 7:49 am, sridevi <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Six months back I have written  code in java to post the products to
> > google base. I was able to post all of the products successfully to
> > google base. Now i tried to use the same program to post the items.  i
> > did not chnage anything in the program. I just execute the program now
> > but unable to insert the items. I am getting insertion failed.
> > for (GoogleBaseEntry entry1 : result.getEntries()) {
> >         logger.info("entry1"+entry1);
> > logger.info("entry ID"+entry1.getId());
> >         if (BatchUtils.isSuccess(entry1))
> >            {
> >                 logger.info("Entry " + entry1.getId() +" has been added
> > successfully.");
> >                                                 inserted++;
> >                                                 tinserted++;
> >            }
> >         else
> >            {
> >         logger.info("Entry " + entry1.getId() +" has been failed.");
> >                                                 failed++;
> >                                                 tfailed++;
> >                                    }
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base 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-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to