-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Existing items being shown as "new" repeatedly #88
Comments
The IDs are not created by the script but from where you are getting the sourcefile from.
This definitely seems to be the case. I will work on your suggestion #87 as soon as i get the time, this should reduce the amount of emails sent quite a bit (good suggestion by the way!).
newEvent.start.date is only set for all day events, 'normal' events use newEvent.start.dateTime.
As the log shows, the script is skipping the second event as it is recognized to be unchanged. So it is definitely working as expected on that event. I don't really know why Outlook would randomly change the id of event 1 and 3 but not on event 2. If possible please share the definitions of 1 and 3, maybe they help. |
Thanks for the pointer to the dateTime. I'll be able to follow through which appointments these are specifically and look at the ical file. I did assume the ids were iCal generated ones, so it does look like Outlook for some reason is recreating these on a regular basis (at least hourly, if not more). I can look at that separately. |
OK, there's definitely something odd happening in my ical output - so this isn't a bug for here. I've just run the process twice within a few minutes, making no changes to the source calendar at all. It's easy to see that entries created in the first pass are then given different IDs in the second pass, and that the first pass ID entries are then deleted in the second pass. So your code is handling this perfectly, it's just my ical source which is screwy somehow. It does seem to be limited to a number of specific entries, so I'll see if I can make any changes to them with any success. I seem to remember that these entries were made by me copying and pasting within Outlook calendar, but I can't for the life of me work out why that would make a difference!! Here's the outputs for completeness, I'll close the bug report. Pass 1
Pass 2
Deletions shown in pass 2
|
Just to wrap this up, I've looked through the iCal file and retrieved it twice within a matter of minutes. I can confirm that for some (but not all!) appointments, the Outlook 365 operation is creating UIDs which change each time the file is fetched. But with others, the UID is not changeing. Events with IDs in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are the ones which change, events with the IDs NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN do not. I need to see if I can amend / delete the problem instances - this is definitely an outlook issue. This bug for another app referred to it https://theeventscalendar.com/support/forums/topic/duplicate-ical-import-still-a-problem/ with Outlook365 not following the standard. It just occurs to me now that when I dropped in these appointments I did it via an excel upload of a file, so the nature of these appointments are different. So I'll probably need to change the source data and see if they disappear! |
See if you can try reporting this to Outlook/Microsoft somehow otherwise I start a new job at Microsoft in a couple weeks and I'll see what I can do ;) |
I'll see what I can do!! Good luck with MS!
The oddity is that from the front end client (i.e. Outlook) I can't see any
difference between the two calendar entries - ones that were "uploaded"
from a spreadsheet and ones that were manually entered by either myself or
someone in my organisation.
It seems it's an issue that others have encountered in similar fashions:-
https://social.msdn.microsoft.com/Forums/en-US/e1714a15-1ef7-4868-a701-f53c5ceae1ad/ews-api-differences-in-icaluid-returned-when-appointments-are-created-by-office-365-account-vs?forum=exchangesvrdevelopment
I wonder whether this article though has food for thought in terms of which
unique ID you're using to match appointments:-
https://stackoverflow.com/questions/36737596/why-differs-the-icaluid-in-length
…On Wed, 18 Dec 2019 at 14:22, Derek Antrican ***@***.***> wrote:
See if you can try reporting this to Outlook/Microsoft somehow otherwise I
start a new job at Microsoft in a couple weeks and I'll see what I can do ;)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#88?email_source=notifications&email_token=AOAEASMU5J54FKBBIEXHIRTQZIW3DA5CNFSM4J4H6L22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHGIOWA#issuecomment-567052120>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOAEASMXG26VSQYHEV65ZZTQZIW3DANCNFSM4J4H6L2Q>
.
|
As a consequence of using the email alerts for new items, I've been seeing the same items added continually each time the script runs. The GCal looks right at the end (i.e. it's not duplicating the entries), but it does seem to create new ones with new IDs each time the script runs - and I think as a consequence it's exceeding the number of emails allowed too!
I've added a couple of logging lines to the if loop around lines 177-190ish (lines may have moved) as follows:-
The typical output is as follows:
The next hourly run reports the following, without any changes being made to the "Balliol Patrol" entries:-
I've not been able to capture the specific dates of these entries (hence the "undefined" at the end), so I can't be certain which events in the ical file are causing this. If you can help me tie the events to a specific entry I can provide more info. One thing is true, that the event ids reported above are NOT found in the ical file, so I don't know if something is changing regularly at the ical generation end by Outlook somehow.
The text was updated successfully, but these errors were encountered: