Title: Calendar Sync Duplicates Issue
Last modified: February 15, 2020

---

# Calendar Sync Duplicates Issue

 *  Resolved [techstuffempirion](https://wordpress.org/support/users/techstuffempirion/)
 * (@techstuffempirion)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/calendar-sync-duplicates-issue/)
 * Hi,
 * I am setting up a new site to display a calendar showing bookings from AirBNB,
   TripAdvisor and Booking.com and then export the calendar back.
 * I have set up a test page to update the calendars for access via cron and included
   the shortcodes for the ical links for the AirBnB, TA and booking.com.
 * This works for AirBnB and booking.com – the bookings are imported the first time
   the page is loaded and not on subsequent refreshes. However, with TripAdvisor
   every time I refresh the page it will re-import the TA entries although they 
   are already in the database.
 * I believe the re-export is a feature which requires the pro license which is 
   fine but I am not able to buy until the function above is confirmed,
 * Many thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/calendar-sync-duplicates-issue/#post-12440406)
 * Hello.
    Such issue possible because TripAdvisor each time change UID (ID of events,
   which usually have to be the same). Booking Calendar is checking if some event
   was imported or u by such specific UID fields in the events.
 * In your case, in your import shortcode, you can use additional parameter:
    import_conditions
   =’if_dates_free’ So events will be imported only if all dates in the Booking 
   Calendar for such event are available. Example: `[booking-manager-import url='
   https://calendar.google.com/calendar/ical/CALENDAR_ID/public/basic.ics' resource_id
   =1419 import_conditions='if_dates_free' from='today' until='any']` Please check
   more here [https://oplugins.com/plugins/wp-booking-manager/booking-manager-help/#events-import](https://oplugins.com/plugins/wp-booking-manager/booking-manager-help/#events-import)

Viewing 1 replies (of 1 total)

The topic ‘Calendar Sync Duplicates Issue’ is closed to new replies.

 * ![](https://ps.w.org/booking/assets/icon-256x256.gif?rev=3335907)
 * [Booking Calendar](https://wordpress.org/plugins/booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking/)
 * [Active Topics](https://wordpress.org/support/plugin/booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking/reviews/)

## Tags

 * [calendar sync](https://wordpress.org/support/topic-tag/calendar-sync/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/calendar-sync-duplicates-issue/#post-12440406)
 * Status: resolved