web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

Rejecting Flows

(0) ShareShare
ReportReport
Posted on by
I'm getting the error: "Cannot generate Power Platform API endpoint because the environment identifier contains invalid host name characters, only alphanumeric and dash characters are expected: ~default"
 
How do I fix this? As I am trying to make a monthly reminder for certification expiry dates at work.
Categories:
I have the same question (0)
  • wyattdave Profile Picture
    493 Moderator on at
    Hi, can you share a screenshot of the error and the inputs.
    But it looks like input for environment has ~ which is not allowed.
  • Suggested answer
    sannavajjala87 Profile Picture
    515 Super User 2026 Season 1 on at
    Hi,
     

    This error happens because your Power Platform environment name contains invalid characters. The system expects the environment host name to use only letters, numbers, and dashes but your environment is named ~default, which includes the tilde (~), so Power Automate can’t generate the API endpoint. 

    How to Fix It 

    You must create a new environment with a valid name because the built‑in Default environment cannot be renamed. 

    Steps: 

    • Go to Power Platform Admin Center â†’ Environments. 

    • Select New Environment. 

    • Give it a name using letters, numbers, or dashes only (e.g., certification-reminders). 

    • Create or use a Dataverse database if needed. 

    • Build your flow inside this new environment. 

    Once you switch to an environment with a valid hostname, the error disappears and you can continue building your monthly reminder flow. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard