Insert Group Calendar WebPart causing error

Terry Naudé 26 Reputation points
2021-05-18T06:44:14.86+00:00

A user reported this error when trying to add a group Calendar in a SharePoint Online Modern Page

Steps:
1- From any page on the site, Edit.
2- Hit Plus sign in between section to add a web part.
3- Select "Group Calendar"
4- Error!

Error Message:
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
TECHNICAL DETAILS

When you click on TECHNICAL DETAILS:
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.TECHNICAL DETAILS
ERROR:
Cannot read property 'offset' of undefined
CALL STACK:
TypeError: Cannot read property 'offset' of undefined
at t._setRegionalSetting (https://spoprod-a.akamaihd.net/files/sp-client/sp-groupcalendar-webpart_en-us_801607585d6000d87d72.js:1:72238)
at t.onInit (https://spoprod-a.akamaihd.net/files/sp-client/sp-groupcalendar-webpart_en-us_801607585d6000d87d72.js:1:63868)
at t._onInViewport (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_0cae5c87d44603e42b4c1842a2fec810.js:65:1622211)
at https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_0cae5c87d44603e42b4c1842a2fec810.js:65:1620164
at new Promise (<anonymous>)
at t._internalFirstTimeRender (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_0cae5c87d44603e42b4c1842a2fec810.js:65:1620082)
at e._renderWebPart (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_0cae5c87d44603e42b4c1842a2fec810.js:65:1653637)
at https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_0cae5c87d44603e42b4c1842a2fec810.js:65:1639491

What I tried

  1. I created a calendar on the site as it had none but this made no difference. (so not an issue related to not having calendar)
  2. Trying adding the group calendar WebPart on a new page within the site causes the same problem. (so not page related)
  3. Tried adding webpart on another site in the same tenancy and did not get the error. (so must be site related)
  4. I have checked site features and compared to a site where it does work found no differences.

I have been looking at this for too long and thought I would put it out here in case I am missing something obvious.

TIA

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,868 questions
{count} votes

Accepted answer
  1. Niclas Rakowsky 86 Reputation points
    2021-08-12T10:42:54.717+00:00

    I was able to fix the same error by adjusting the site collection time zone to match the time zone of the group calendar.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Emily Du-MSFT 42,596 Reputation points Microsoft Vendor
    2021-05-19T03:15:13.507+00:00

    @Terry Naudé

    Have you added some custom codes on the page?

    Whether some users or all users who add the group calendar web part on this site collection page will report an error?

    If some users occur error, please remove these users then re-add them into site collection.


    If an Answer is helpful, please click "Accept Answer" and upvote it
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.