Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run create app task in teams toolkit #12384

Closed
ShubhamSengar29 opened this issue Sep 12, 2024 · 13 comments
Closed

Not able to run create app task in teams toolkit #12384

ShubhamSengar29 opened this issue Sep 12, 2024 · 13 comments
Assignees

Comments

@ShubhamSengar29
Copy link

I have created multiple tab project and every time i am getting the same below error. I created a new microsoft Id and the issue is there. before i was using contoso account and it was working fine but with new account, even newly created apps are not starting.

[2024-09-12T12:07:19.592Z] [Info] - Executing lifecycle provision
[2024-09-12T12:07:19.596Z] [Info] - Executing action aadApp/create
[2024-09-12T12:07:19.597Z] [Info] - Environment variable AAD_APP_CLIENT_ID already exist, skipping new Microsoft Entra app creation step.
[2024-09-12T12:07:19.597Z] [Info] - Environment variable SECRET_AAD_APP_CLIENT_SECRET already exist, skipping new Microsoft Entra app creation step.
[2024-09-12T12:07:19.597Z] [Info] - Action aadApp/create executed successfully
[2024-09-12T12:07:30.611Z] [Error] - Failed to Execute lifecycle provision due to failed action: teamsApp/create. TeamsAppCreateConflict:Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.. Env output: {}
[2024-09-12T12:07:30.614Z] [Info] - Execution summary:

Summary:
(×) Error: Lifecycle stage provision failed.
(√) Done: aadApp/create was executed successfully.
(×) Error: teamsApp/create failed.
(×) Error: Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.
(!) Warning: script was not executed.
(!) Warning: aadApp/update was not executed.
(!) Warning: teamsApp/validateManifest was not executed.
(!) Warning: teamsApp/zipAppPackage was not executed.
(!) Warning: teamsApp/validateAppPackage was not executed.
(!) Warning: teamsApp/update was not executed.
(!) Warning: teamsApp/extendToM365 was not executed.

[2024-09-12T12:07:30.862Z] [Error] - code:AppStudioPlugin.TeamsAppCreateConflict, message: Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.
Help link: https://aka.ms/teamsfx-switch-account-or-subscription-help

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Sep 12, 2024
@ryotien111100
Copy link

i have the same issue , pleaese help me resolve it :((

@ShubhamSengar29
Copy link
Author

Issue is still not fixed after a week is passed

@IAM5K
Copy link

IAM5K commented Sep 17, 2024

I am also facing the same issue, same errors. We are running late for delivery because the deployment cannot be done.
Thanks in advance

@huimiu
Copy link
Contributor

huimiu commented Sep 17, 2024

Hi @ShubhamSengar29, @ryotien111100, @IAM5K, sorry for the late reply. The issue occurs because you created a Teams app (T1) in account A, and then switched to another account (B). When you run the same project again, it tries to create a Teams app using T1 in account B, but the app ID cannot be duplicated, so it fails.

To resolve this, after switching accounts, please modify the TEAMS_APP_ID value in env/.env.local or env/.env.dev to avoid duplication. Alternatively, you can delete the value of TEAMS_APP_ID, and Teams Toolkit will automatically assign a unique ID to create a new Teams app.

@huimiu huimiu removed the needs attention This issue needs the attention of a contributor. label Sep 17, 2024
@ShubhamSengar29
Copy link
Author

Hi @huimiu, I am trying with new app also and it's producing the same error and one of my colleague also tried but he is facing same issue. I tried clearing the value in env.local then this issue comes and if i try with same id then i get "something went wrong" error popup.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Sep 18, 2024
@huimiu
Copy link
Contributor

huimiu commented Sep 18, 2024

Hi @ShubhamSengar29, would you mind share what app you created and the subsequent detailed steps until you encountered the error? I'll try to repro this issue to see what's the cause is.

@huimiu huimiu removed the needs attention This issue needs the attention of a contributor. label Sep 18, 2024
@ShubhamSengar29
Copy link
Author

Hi @huimiu, I selected the option created new app from teams toolkit then selected the tab as application i want to create then selected React with fluentUI then language as Typescript then the path where i want to save application then name of application.
the new app will open in new window and after either goto debug section in vs code and click on play button or use F5 to start debugging.
when debugging starts and it comes to create teams app id task it fails with the error failed to create app id

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Sep 18, 2024
@huimiu
Copy link
Contributor

huimiu commented Sep 19, 2024

@ShubhamSengar29 thanks for your detailed explanation. I'll try to reproduce the issue, and I'll let you know if there are any updates.

@huimiu huimiu self-assigned this Sep 19, 2024
@huimiu huimiu added investigating and removed needs attention This issue needs the attention of a contributor. labels Sep 19, 2024
@ShubhamSengar29
Copy link
Author

Please help with this issue because the issue is still same.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Sep 24, 2024
@MrKSchmitz
Copy link

Should be easy to reproduce, since all you have to do is attempt to create a new app using the VS Code Teams toolkit.
This will fail with the same error.

Apps fail when attempting to launch debugger.
Fails at "teamsApp/create".

This seems to happen fairly often (plenty of duplicates):
#12089

@anchenyi
Copy link
Contributor

hi @ShubhamSengar29 @ryotien111100 @IAM5K @MrKSchmitz, this is an known issue and has been fixed in the prerelease version. Please follow the screenshots below to switch to the prerelease version. We are also working with high priority to fix this in the stable version. We apologize for the inconvenience.

image

@MrKSchmitz
Copy link

@anchenyi
Tested the pre-release and can confirm this seems to provision, deploy & debug as expected. Thanks.

@huimiu huimiu removed needs attention This issue needs the attention of a contributor. investigating labels Sep 25, 2024
@huimiu
Copy link
Contributor

huimiu commented Sep 25, 2024

As the issue is resolved close it now.

@huimiu huimiu closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants