diff -r 360d55486d7f -r 5de72ea7a065 pimappservices/calendar/server/src/agsalarm.cpp --- a/pimappservices/calendar/server/src/agsalarm.cpp Fri Jun 11 13:37:54 2010 +0300 +++ b/pimappservices/calendar/server/src/agsalarm.cpp Wed Jun 23 18:11:28 2010 +0300 @@ -680,8 +680,15 @@ else { aAlarmInfo.iRecurrenceId = entry->RecurrenceId().UtcL(); - } - aAlarmInfo.iGlobalIdentifier = iModel->GetEntryGuidL(*entry); + } + + // Check the length of the Uid from the entry if it is less than the + // the supported length assign it to the aAlarmInfo. + // as per the RFC we are supporting 256 chars most of app UID is within this range + // in future if anyone supports more than this length we need to handle this here . + if (iModel->GetEntryGuidL(*entry).Length() <= KAgnEntryMaxGuidLength) + aAlarmInfo.iGlobalIdentifier = iModel->GetEntryGuidL(*entry); + CleanupStack::PopAndDestroy(entry); }