Skip to content

Microsoft JSON fails validation in prepare dependencies step #13432

Closed
@bzuidgeest

Description

@bzuidgeest

Describe the bug
I added the teams toolkit to visual studio. Created a new project for a message extension. Got a the repair data template. When I do the prepare dependencies step I get an error:
"name": "ManifestValidationFailed",
"message": "Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json, message: Invalid regular expression: /^(?!.[\r\n\f\b\v\a\t])[\S]\.xll$/: Invalid escape",

To Reproduce
Steps to reproduce the behavior:

  • start a new message extension project. Right click teams app and go to teams tookit -> prepare teams app dependencies --> sign in if not and otherwise follow instructions.

Expected behavior
No errors as it's the default template from microsoft.

Screenshots
No screenshot but here is the output from the TEams toolkit

Executing provision

Lifecycle stage: provision(7 step(s) in total). The following actions will be executed:
(1/7) Action teamsApp/create: create Teams app.
(2/7) Action script
(3/7) Action teamsApp/validateManifest: validate Teams app.
(4/7) Action teamsApp/zipAppPackage: build Teams app package.
(5/7) Action teamsApp/validateAppPackage: validate Teams app.
(6/7) Action teamsApp/update: update Teams app.
(7/7) Action teamsApp/extendToM365: acquire Microsoft 365 title with the app package

Executing lifecycle provision
Executing action teamsApp/create in lifecycle provision
Teams app with id e62fea8f-d79f-4320-b306-347cd4b0730e already exists, skipped creating a new Teams app.
Action teamsApp/create in lifecycle provision succeeded with output {"TEAMS_APP_ID":"e62fea8f-d79f-4320-b306-347cd4b0730e","TEAMS_APP_TENANT_ID":"4be23bdd-d690-43b3-a262-068a8ff13c56"}
Executing action script in lifecycle provision
Start to run command: "echo "::set-teamsfx-env OPENAPI_SERVER_URL=https:";" with args: {"shell":"C:\Windows\system32\cmd.exe","cwd":"C:\Users\bzs\source\repos\MyTeamsApp1\MyTeamsApp1\TeamsApp","encoding":"ibm850","env":{"ALLUSERSPROFILE":"C:\ProgramData","API_COPILOT_API_KEY":"false","APPDATA":"C:\Users\bzs\AppData\Roaming","APP_NAME_SUFFIX":"local","CLIENTNAME":"IDEFIXHOME","CommonProgramFiles":"C:\Program Files\Common Files","CommonProgramFiles(x86)":"C:\Program Files (x86)\Common Fi...
[script stdout] "::set-teamsfx-env OPENAPI_SERVER_URL=https:
";

script output env variables: {"OPENAPI_SERVER_URL":"https:*"}
Action script in lifecycle provision succeeded with output {"OPENAPI_SERVER_URL":"https://<>.euw.devtunnels.ms"}
Executing action teamsApp/validateManifest in lifecycle provision
Failed to Execute lifecycle provision due to failed action: teamsApp/validateManifest. ManifestValidationFailed:Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json, message: Invalid regular expression: /^(?!.
[\r\n\f\b\v\a\t])[\S]
.xll$/: Invalid escape. Env output: {"TEAMS_APP_ID":"e62fea8f-d79f-4320-b306-347cd4b0730e","TEAMS_APP_TENANT_ID":"4be23bdd-d690-43b3-a262-068a8ff13c56","OPENAPI_SERVER_URL":"https...
Execution summary:

Summary:
(×) Error: Lifecycle stage provision failed.
(√) Done: teamsApp/create was executed successfully.
(√) Done: Teams app with id e62fea8f-d79f-4320-b306-347cd4b0730e already exists, skipped creating a new Teams app.
(√) Done: script was executed successfully.
(√) Done: Successfully executed command
(×) Error: teamsApp/validateManifest failed.
(×) Error: Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json, message: Invalid regular expression: /^(?!.[\r\n\f\b\v\a\t])[\S].xll$/: Invalid escape
(!) Warning: teamsApp/zipAppPackage was not executed.
(!) Warning: teamsApp/validateAppPackage was not executed.
(!) Warning: teamsApp/update was not executed.
(!) Warning: teamsApp/extendToM365 was not executed.

{
"errorType": "UserError",
"source": "AppStudioPlugin",
"name": "ManifestValidationFailed",
"message": "Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json, message: Invalid regular expression: /^(?!.[\r\n\f\b\v\a\t])[\S]\.xll$/: Invalid escape",
"stack": "ManifestValidationFailed: Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json, message: Invalid regular expression: /^(?!.[\r\n\f\b\v\a\t])[\S]\.xll$/: Invalid escape\n at AppStudioResultFactory.UserError (C:\snapshot\server\lib\index.js)\n at ValidateManifestDriver.validate (C:\snapshot\server\lib\index.js)\n at process.processTicksAndRejections (node:internal/process...
"innerError": null,
"userData": null,
"timestamp": "2025-03-13T14:22:47.643Z",
"displayMessage": "Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json, message: Invalid regular expression: /^(?!.[\r\n\f\b\v\a\t])[\S]\.xll$/: Invalid escape",
"helpLink": "https://aka.ms/teamsfx/whyneedprovision",
"issueLink": null
}

Using:
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.13.2

Hope somebody here knows why this happens.

When I click the Json link in the browser it loads perfectly fine in a browser.

Metadata

Metadata

Labels

TA:E2ETeam Area: E2Eneeds more infoNeed user to provide more infono recent activityThe issue labeled needs more info gets no reply from issue owner in time

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions