Msteams-docs: Fix validation errors - error message isn't displayed

Created on 7 Jul 2021  路  22Comments  路  Source: MicrosoftDocs/msteams-docs

Hi,
I've been importing a chatbot from the same zip file for over a year, and it worked great.
Today suddenly when I tried to import the same zip file, I got the Fix validation errors pop up, and no errors were displayed.
What is the possible cause for this error? And how can i fix this?
Adding a screenshot, Thanks in advance!
Screenshot_1

needs-triage teams-developer-support

All 22 comments

Hi DanielLevy0705! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Some dirty fix for me:

  1. Remove groupchat from bots.scopes in manifest.json.
  2. Zip up the manifest.json files as usual
  3. Go to Developer Portal (Preview)
  4. Click Apps on the Developer Portal
  5. Click Import app on the Apps page
  6. After the successful message shown, go back to Teams --> App Studio
  7. You should find your app on the Manifest editor page in App Studio
  8. Click on the app to go for Edit
  9. Click every single pages on the Manifest editor -> edit page of your app (i.e. all the pages shown on left hand-side menu). This action is just for triggering the manifest validation
    image
  10. On the editor menu, go to Test and distribution
  11. Install the application for testing
  12. Here you go :)

Followed the above steps but getting the error shown below:
image

Is there any log or errors on the browser console? It might be hidden in Verbose

We have two finding from error logs:

  1. Mustache Values in manifest.json is not replacing from .env files. For example, "{{PUBLIC_HOSTNAME}}", "{{MICROSOFT_APP_ID}}"

Error while reading manifest.json: Invalid value(s) specified for validDomains[1]: "{{PUBLIC_HOSTNAME}}"

  1. It is showing error for Configurable tabs if I have selected two scopes.

Invalid value(s) specified for configurableTabs[0].scopes.length: "2"

@wilsonvolker I didn't have groupchat scope in my json, it was added manually afterwards when editing the bot in app studio.
I'll try following these steps with my current json.

@wilsonvolker I already got the app installed, when importing to Developer portal (step 5) It asks me if I'd like to duplicate or replace it. Getting error messages for both actions.
Replace - Failed to duplicate app (console logs 404 error for action POST to appdefinitions API)
Duplicate - Failed to get app definitions (console log 404 error for action GET to the same API)

I was also getting the same error. So I have created new GUID for "id" value in manifest.json

I was also getting the same error. So I have created new GUID for "id" value in manifest.json

can you please instruct me how to do it?

Short cut to do that is in manifest.json on line number 3, you can alter last two/three number which will consider as new GUID.
image

Thanks, after changing the id, I got this Failed to upload App error message.
In the console I can see error code 500 as a response to Post action to API https://dev.teams.microsoft.com/api/appdefinitions/apppackage

@DanielLevy0705 ,

could you please share your manifest?

manifest_json_img
@Meghana-MSFT

@Meghana-MSFT , I am also facing the above same issue.

We want a bot for personal, teams and channel scope.
We want a configurable tab for teams and channel scope.
We want a static tab for personal scope.

We are facing this issue from yesterday onwards. Kindly help us to resolve this issue as soon as possible.

Manifest.json details:

{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.9/MicrosoftTeams.schema.json",
"manifestVersion": "1.9",
"id": "fc9f2a14-e48e-4261-a455-294c95696633",
"version": "2.0",
"packageName": "com.abc.teams.extension",
"developer": {
"name": "ABC",
"websiteUrl": "https://abc.com",
"privacyUrl": "https://abc.com/privacy",
"termsOfUseUrl": "https://abc.com/terms"
},
"name": {
"short": "ABC",
"full": "ABC"
},
"description": {
"short": "Short description of ABC App.",
"full": "Full description here"
},
"icons": {
"outline": "icon-outline.png",
"color": "icon.png"
},
"accentColor": "#0079bf",
"configurableTabs": [
{
"configurationUrl": "https://f88958ab1092.ngrok.io/abctab/config.html?name={loginHint}&tenant={tid}&group={groupId}&theme={theme}",
"canUpdateConfiguration": true,
"scopes": [
"team",
"groupchat"
]
}
],
"staticTabs": [
{
"entityId": "bf580x80-zf2e-11eb-b64d-d37a434fc344",
"name": "ABC",
"contentUrl": "https://f88958ab1092.ngrok.io/abctab/",
"scopes": [
"personal",
"team"
]
}
],
"bots": [
{
"botId": "63f2a7d0-a4d0-4fff-8c20-b2eb21c6c8d8",
"needsChannelSelector": true,
"isNotificationOnly": false,
"supportsFiles": false,
"supportsCalling": false,
"supportsVideo": false,
"scopes": [
"team",
"personal",
"groupchat"
],
"commandLists": [
{
"scopes": [
"team",
"personal"
],
"commands": [
{
"title": "help",
"description": "Shows help information"
}
]
}
]
}
],
"connectors": [],
"composeExtensions": [
{
"botId": "63f2a7d0-a4d0-4fff-8c20-b2eb21c6c8d8",
"commands": [
{
"id": "createCard",
"context": [
"compose"
],
"description": "Command to run action to create a Card from Compose Box",
"title": "Create Card",
"type": "action",
"parameters": [
{
"name": "title",
"title": "Card title",
"description": "Title for the card",
"inputType": "text"
},
{
"name": "subTitle",
"title": "Subtitle",
"description": "Subtitle for the card",
"inputType": "text"
},
{
"name": "text",
"title": "Text",
"description": "Text for the card",
"inputType": "textarea"
}
]
}
],
"messageHandlers": [
{
"type": "link",
"value": {
"domains": [
"*.botframework.com"
]
}
}
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": [
"f88958ab1092.ngrok.io"
],
"showLoadingIndicator": true,
"defaultInstallScope": "personal"
}

@DanielLevy0705 , @shahid-se

There seems to be an issue with the app studio. As a work around please try uploading your app using below options.

  1. Developer portal (preview) in app studio
  2. Upload a custom app from apps.

We have raised a bug and the concerned team is looking into it.

@Meghana-MSFT Thank you! is there any link of an issue that we can follow its progress?

@DanielLevy0705,

We will update this thread once bug is resolved

I have had similar problems trying to follow these instructions: https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-nodejs-app-studio?tabs=DP, to deploy the hello-world-app. I had unknown validation issues using app studio and then APP_ID already exists in organisation for dev portal with no explanation as to how to fix it.

@DanielLevy0705 , @shahid-se

There seems to be an issue with the app studio. As a work around please try uploading your app using below options.

  1. Developer portal (preview) in app studio
  2. Upload a custom app from apps.

We have raised a bug and the concerned team is looking into it.

@Meghana-MSFT

  1. Developer portal (preview) in app studio - It is creating issue of duplicate app id
  2. Upload a custom app from apps. - This option is working fine. We were able add our App successfully from here.

@DanielLevy0705 @Meghana-MSFT ,
It seems like App Studio issue is resolved. Today I was able to install my App from there without any issue.

Agreed, I've managed to install my app using AppStudio. Thanks! this issue can be closed.

Tell us about your experience!

Hi DanielLevy0705! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.

Best regards,
Teams Platform

Was this page helpful?
0 / 5 - 0 ratings