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 Platform Community / Forums / Power Apps / Cannot read properties...
Power Apps
Answered

Cannot read properties of undefined (reading 'replace') when importing solution to new envirorment

(0) ShareShare
ReportReport
Posted on by 30

Hi all experts. Hope one of you can help med with a strange behaviour, when importing a solution to a new envirorment.

 

I have createt an solution with data connections to SharePoint lists and a Power App. After import to the new envirorment I get some strange "errors". The data connections report there is an error in the connection, but it works fine 🤔. 

SPerror.png

 

The error says "Cannot read properties of undefined (reading 'replace')", but it seems that the dataconnections works as intended, and that I do not understand. And I do not know how to fix it even if everything works okay.

 

Has anyone tried anything like that? I have followed the instructions in creating connection variabels in the solution, and followed the steps in exporting/importing a solution, but the error is stille there, eventhough the solution works fine!!!

 

Is this a MS bug or have I done something wrong in my solution? I cannot find any data about this behavior.

 

/Frank

Categories:
  • narayan225 Profile Picture
    2,547 Moderator on at

    @venseben 

    you can try removing that connection and adding a new one for the app. It should work fine after that.

  • venseben Profile Picture
    30 on at

    Yes I think I can do that. But I do not know why this happens. I would like to avoid it form happening another time. But I think I somewhere have read that it is a bug, but cannot find any information about it. Should I change the data conncetion in the solutions variables or directly in the  app?

     

    /Frank

  • Verified answer
    narayan225 Profile Picture
    2,547 Moderator on at

    @venseben 

     

    You can directly remove the existing one from your app and add a new one. You can package that later if you need to switch through the packing file.

     

    Cheers!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard