Data Migration is not importing previously deleted Google Calendars

I have set up Data Migration to sync with my Google account (I know, I can’t get everybody I know to leave Google…).

I was able to import calendars from the google account, but I mistakenly deleted one of those calendars in the Calendar App, and now when I try to import it again from the Data Migration settings it tells me “0 events have been imported” and there is no entry of that calendar in the Calendar App list.

I then attempted to delete elements in the Calendar app Trash Bin, but I get stuck at the notification that the Trash Bin is Loading Deteled Elements.

Nextcloud version (eg, 20.0.5): 23.0.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.3 LTS x86_64
Apache or nginx version (eg, Apache 2.4.25): nginx/1.18.0 (Ubuntu)
PHP version (eg, 7.4): PHP 8.0.14 (cli) (built: Dec 20 2021 21:22:57) ( NTS )

The issue you are facing:
Unable to import previously deleted google calendars with Data Migration.

Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:

  1. Import Google Calendar with Data Migration
  2. Delete Imported Calendar in Calendar App
  3. Import Google Calendar with Data Migration
  4. Click on Trash bin in Calendar App

The output of your Nextcloud log in Admin > Logging:

No error messages appear in the log when importing the Google Calendar or Accessing the Calendar Trash bin.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '',
  ),
  'datadirectory' => '/usr/share/nginx/nextcloud-data',
  'default_phone_region' => 'CA',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpport' => '465',
  'mail_smtpname' => ',
  'mail_smtppassword' => '',
  'mail_smtpsecure' => 'ssl',
  'maintenance' => false,
  'updater.release.channel' => 'stable',
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'cookbook',
    1 => 'radio',
    2 => 'podcast',
    3 => 'apporder',
    4 => 'flow_notifications',
    5 => 'files_mindmap',
    6 => 'integration_whiteboard',  ),
);

The output of your Apache/nginx/system log in /var/log/____: https://pastebin.com/vGaHzxNc

So it looks like the issue was with having the imported google calendar in my android DAVx5 configuration. After deleting the calendar from DAVx5 I was able to open the Calendar Trash, empty it, and re-migrate the google calendar.