cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Shelter Types not importing choices

I set up a Shelter Types column as a choice with the option to select multiple, assigning each animal type listed in the table as a separate choice with it's own value (values 1 through 9). However, I've tried uploading the spreadsheet after converting it to a csv file multiple times, and the data under Shelter Types is being considered one entry instead of selecting multiple choices. What am I doing wrong here?  

1 ACCEPTED SOLUTION

Accepted Solutions
Anton-X
Advocate II
Advocate II

Hi @MorganG ,

According to Microsoft, multiselect choice columns aren't supported for import into Dataverse.

 

Choice-MultiSelect.jpg

Reference: https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-import-export 

 

What I did to workaround this:

 

1. When uploading/importing your csv, set the mapping for the 'Shelter Types' column to none, so that it doesn't import that column's data. Basically ignoring it.

ShelterTypesNotMapped.jpg

2. Then, manually add the multiselect data yourself for each Shelter. Since there's not that much data, this is doable.

ShelterTypesSelect.jpg

Hope that helps.

Anton

View solution in original post

5 REPLIES 5
Anton-X
Advocate II
Advocate II

Hi @MorganG ,

According to Microsoft, multiselect choice columns aren't supported for import into Dataverse.

 

Choice-MultiSelect.jpg

Reference: https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-import-export 

 

What I did to workaround this:

 

1. When uploading/importing your csv, set the mapping for the 'Shelter Types' column to none, so that it doesn't import that column's data. Basically ignoring it.

ShelterTypesNotMapped.jpg

2. Then, manually add the multiselect data yourself for each Shelter. Since there's not that much data, this is doable.

ShelterTypesSelect.jpg

Hope that helps.

Anton

Thank you @Anton-X, that helped. Frustrating that we were provided choice data to import and were taught how to set up choice columns, but importing choice data is not supported. 

evahas
Advocate II
Advocate II

You can also import by using your model driven app after it is created. I used Export to Excel > Open in Excel Online and separated each choice with a semicolon.

thanks @evahas , that approach worked.

@MorganG , you may want to try this. But, because the data set is so small, it's easier just to manually enter the values as I originally suggested. No need to overcomplicate with this new method.

 

First, I have to say importing data into Dataverse seems to be very non standardized and full of loopholes and workarounds. Plus, when the documentation clearly states you can't import multi-select choice columns, one is likely to believe it (even if it's not completely true). 

 

But I digress.

 

Here are some visuals of how I applied evahas's method. For simplicity, I only tested a 'Shelter Name' column and the multiselect 'Shelter Types' column. Note my table and column naming was just for testing:

 

1. Created the 'Shelter Types' column in the Shelter Table as seen below:

ShelterTypes.jpg:

2. Then created the Model Driven App, and added the Shelter Table to that app:

AddShelterTable2.jpg

 

3. This step is a must. Any columns you plan to import from the csv file, make sure they are included in the Model Driven app's view. Note we are not 'Playing' the app yet. We're still in app edit mode:

 

Click 'Edit columns' in the top right.
EditColumns.jpg

Add the columns you expect to import data to. In this case I'm only going to import the 'Shelter Name' and 'Shelter Types' multi select choice column. You'll have more column when doing the real thing.

AddShelterTable3.jpg

AddShelterTable4.jpg

Publish so when we play the app, our changes will appear:

AddShelterTable5.jpg

Play the app:

AddShelterTable6.jpg

 

Open in 'Excel Online':

PlayShelter1.jpg

PlayShelter2.jpg

 

Excel Online should open. But first,  open your originally provided .csv in Excel and convert the commas to semicolons. (You'll be pasting these values in the Excel Online version that opened up in Power Apps:

PlayShelter3.jpg

Now, copy paste the values from your .csv spreadsheet to the Excel Online sheet that popped up in Power Apps:

PlayShelter4.jpg

 

Click save, then track your progress to see if it imports correctly:

PlayShelter5.jpg

 

SUCCESS!!:

PlayShelter6.jpg

 

You can check by viewing the table at the solution level, or assuming you've added your columns to your forms in the app, you can check to see that it indeed has done the multi selecting for you:

PlayShelter7.jpg

 

ALTERNATIVE METHOD WITHOUT USING EXCEL ONLINE:

Once all your columns are setup in the model driven app view (like we did above) . . . Just before the 'Excel Online' step, you could have instead downloaded a blank Excel file template. That Excel template is pre-configured to handle multiselect choices separated by semicolons. You would just copy paste the data from the PowerUP supplied .csv into this template.

Then, import the Excel template as an Excel file back to the app. See images below for a visual:

 

While playing the app, choose 'Excel Templates':

MultiselectChoiceMapping0.jpg

Then, choose 'Download Template':

MultiselectChoiceMappingDownloadTemplate0-2.jpg

This will download a special Excel file that is in 'Table Format', and has the special considerations for a multiselect choice field (don't forget to use semicolons!):

MultiselectChoiceMapping0-1.jpg

Save this Excel template with your data. Then, we'll upload it back up to the app:

MultiselectChoiceMapping2.jpg

 

Now, notice how nicely all the multiselect choices are mapped. So nice:

MultiselectChoiceMapping1.jpg

Click the 'Finish Import' button, and it should all import correctly.

The moral of the story here is that you can't do this from a .csv. You either have to use the Excel Online method OR download a special Excel (.xlsx) file template, populate it with data, then upload it back. A normal plain .xlsx file will not work.

 

If there's a quicker way. Please share.

Anton

MJAhmed
Regular Visitor

This is life saver.

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.

Users online (658)