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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps - Error when...
Power Apps
Unanswered

PowerApps - Error when import Excel and CSV as DataSource

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I am trying to connect my .xlxs / csv file as a data source for a Model-Driven-App. Since I followed the docs provided by PowerApps, everything runs perfectly until the penultimate step "Refresh settings". I always encounter the error "We encountered an unexpected error." regardless of the typing (xlxs or csv) of data source. Below is the Mashup text I received:

 

section Section1;
shared Query = let
Source = Csv.Document(Web.Contents("CORRECT-FILE-PATH/Documents/MOCK_DATA.csv"), [Delimiter = ",", Columns = 6, QuoteStyle = QuoteStyle.None]),
#"Promoted headers" = Table.PromoteHeaders(Source, [PromoteAllScalars = true]),
#"Changed column type" = Table.TransformColumnTypes(#"Promoted headers", {{"id", Int64.Type}, {"first_name", type text}, {"last_name", type text}, {"email", type text}, {"gender", type text}, {"ip_address", type text}})
in
#"Changed column type";

 

Also, here is the Session and Request ID:

Session ID: 063d0a92-71f0-4506-bcd8-19b7268dee5f
Request ID: 0c829383-2fdc-46a1-9f26-ee5b976754f4
 
Could you advise me on how to further proceed in this situation?
 
Thank you very much and best regards,
Tien Vu
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @tienvu1402 

    You can't directly connect to a source other than DavaVerse tables (formerly CDS) to a Model Driven app.  You can however embed a canvas app inside of Model driven app.  The embedded canvas app can be connected to another data source.  For the details of how this is done, see https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/embed-canvas-app-in-form 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard