Error creating sharepoint page as an Teams app with App Studio

New Contributor

Hi,

 

I have tried to follow this guide https://docs.microsoft.com/en-us/sharepoint/dev/features/embed-pages-to-teams to add a "intranet" button on the left sidebar in Teams. 

 

When I try to install the app, I get an error message that says: Something went wrong. If you want more information go to aka.ms/teamsdocs.(translated from norwegian).

ppedersen85_0-1612882170044.png

When testing the app I only get this error message:

ppedersen85_1-1612882212427.png

If I remove "https://nmasno.sharepoint.com" from the resource info under it says:

  • MPNID cannot be empty
  • StaticTabs are only supported in personal scope

 

Here`s the app manifest:

 

{
  "$schema": "https://developer.microsoft.com/en-ushttps://techcommunity.microsoft.com/json-schemas/teams/v1.9/MicrosoftTeams.schema.json",
  "manifestVersion": "1.9",
  "version": "1.0.0",
  "id": "bd35e7e3-50b0-403b-82f3-6a9943aa1099",
  "packageName": "com.nmas.portal.app.nyttiginfo",
  "developer": {
    "name": "Nerliens Meszansky",
    "websiteUrl": "https://www.nmas.no",
    "privacyUrl": "https://www.nmas.no/om-oss",
    "termsOfUseUrl": "https://www.nmas.no/om-oss"
  },
  "icons": {
    "color": "color.png",
    "outline": "outline.png"
  },
  "name": {
    "short": "Nyttig info",
    "full": "Interninfo til ansatte i Nerliens Meszansky"
  },
  "description": {
    "short": "Intern side for nyttig info",
    "full": "Dette er en Teams app som peker til en Sharepoint-side som samler all nyttig info internt i NMAS.\n- Patrick P."
  },
  "accentColor": "#FEAE25",
  "staticTabs": [
    {
      "entityId": "1971917",
      "name": "FirmaHub",
      "contentUrl": "https://nmasno.sharepoint.com/sites/intranett/_layouts/15/teamslogon.aspx?SPFX=true&dest=/sites/intranett/SitePages/Home.aspx",
      "scopes": [
        "personal"
      ]
    }
  ],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "nmasno.sharepoint.com"
  ],
  "webApplicationInfo": {
    "id": "00000003-0000-0ff1-ce00-000000000000",
    "resource": "https://nmasno.sharepoint.com"
  }
}

 

 

Attached you will also find the app package

 

I have tested this inn App studio for Teams in MacOS 11.2 and Teams in Windows 10.

19 Replies

@ppedersen85 same error for me

I think it's temporary error, it worked yesterday

I'm getting the same issue - before this, I got a perpetual loading circle in the desktop app, but in web version it worked fine.
Now I can't publish at all.
I have an open ticket with Microsoft to investigate

@ppedersen85  We have the same issue. It was working last week. I guess it is a temporary problem.

@Ramy_Bouslimi 

 

Hi. It works now so probably something that needs to activate before using it.

 

Is this a app solution stable? Im thinking about using this app as a main button for our company portal (intranet) like a one-stop shop for internal information, policies and routines.

I hope that this app (sharepoint page on the left sidebar) is a stable solution!

 

Does anyone know more about it?

So you have changed nothing and it works? I am still getting this message.

I'm getting this now - what is going on??

 

Pjones82_0-1612971046533.png

 

We're experiencing the same issue.

@ppedersen85 

 

Same issue. Started on Monday and couldn't have happened at the worst possible time.

Anyone found a solution?

There is a Workaround for this. Just Upload the application directly through the admin center. Even if the App is throwing exceptions (and even if they are not valid). You are still able to deploy the app in your tenant through the admin center.

Greetings
Ramy

@Ramy_Bouslimi Thanks - but the app fails to work in the desktop client, it only works in the teams on the web

Then you have to check your single sign on settings. Furthermore to access sharepoint within the teams desktop app, you have to authenticate through teams logon like this : https://[domainUrl]/_layouts/15/teamslogon.aspx?SPFX=true&dest=[pageUrl]

@Ramy_Bouslimi thanks for your guidance, i already tried that though

Pjones82_0-1613131589942.png

 

initially it was the 'show loading spinner' setting. I unticked that, but now get a different, larger spinner

@Pjones82 Same problem here.

Not able to upload app through Teams admin center.

Error when uploading

anyone else noticed it just started working?

not sure if it's just a fluke!

@Pjones82 spoke to soon - restarted teams and now i have the circle of doom again. Something odd going on with authentication i think

Looks like you need to visit a Sharepoint embedded Teams channel first to establish a cookie. Not sure if theres a real solution apart from this workaround. Cross posted for reference:

https://gorovian.000webhostapp.com/?exam=t5/teams-developer/sharepoint-page-embed-on-app-studio-authentic...
www.000webhost.com