Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Cannot import solution containing Dataflow (Error Code: 80040265, DataflowId already exists under a different environment)

(1) ShareShare
ReportReport
Posted on by 401

Hello!

 

I am trying to import a simple unmanaged solution that contains four dataflows in a new environment. The purpose is to move the solution through ALM phases, from DEV to UAT to PROD. The solution import fails and I get the following message:

 

Error code
80040265
Exception message
Code: BadRequest Content: DataflowId already exists under a different environment

 

The error message is a little ironic... of course the Dataflow ID exists in a different environment, that's what ALM is all about.

 

I had previously been able to migrate dataflows between environments, no problem. Any idea what could be the cause?

 

Thanks!

 

Keep 'em flowin'

 

Charles

 

CharlesS_0-1653931685524.png

 

  • PowerUniverse Profile Picture
    2 on at
    Cannot import solution containing Dataflow (Error Code: 80040265, DataflowId already exists under a different environment)
    Hi @Charles,

    How do you determine which dataflow rows are corrupted? The dataflow's ID or name is not specified in the error message or any other location I can think of. This is a critical issue, especially when dealing with numerous dataflows in a solution I am attempting to import. How can we identify the corrupted dataflows?

    So, which records should I remove or replace?

    I am looking forward to your reply,
    Daniel
     
  • v-jefferni Profile Picture
    on at
    Re: Cannot import solution containing Dataflow (Error Code: 80040265, DataflowId already exists under a different environment)

    Hi @CharlesS ,

     

    Cheers! Please consider accept your reply as solution to help others find it.

     

    Best regards,

  • Verified answer
    Charles Seguin Profile Picture
    401 on at
    Re: Cannot import solution containing Dataflow (Error Code: 80040265, DataflowId already exists under a different environment)

    Hello All!

    So I was able to solve my own problem.

     

    Here are what I believe to be the possible causes of the problem (to Microsoft: these causes may be wrong! If they are, please reply to this thread to educate me and fellow community members):

    1. The solution was imported into the environment by a user other than the owner of the dataflow.

    2. Neither that user or the dataflow owner had an existing dataflow created in the target environment when the  solution was imported.

    3. The dataflow was imported in the environment (shown in system Dataflow table), but left in limbo.

     

    Number 3 above kinda explains the error message. There was a Dataflow with that name in the target environment (and in other environments), but I think that that the corrupted entry in the Dataflow table of the target environment was the problem.

     

    This is how I corrected the issue:

    1. Went in the Dataflow system table and deleted the corrupted rows (it says the table is read-only, but you can delete a row when you edit data in Excel)

    2. Created a dummy dataflow, owned by the same user as the user of the dataflows in the solution I am trying to import. 

    3. Created a new solution with the required dataflows.

    4. Imported the solution as the same owner of the dataflows.

     

    All good, dataflows are flowin!

     

    Keep 'em 'flowin!

     

    Charles

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics