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 / expects an "OptionSetV...
Power Apps
Answered

expects an "OptionSetValue (Status ())" type

(0) ShareShare
ReportReport
Posted on by

hi all,
I've created a canvas app with a screen from scratch for a table "Mittel_1" and I got this error message:

 

Issue. Incompatible type. The "Status" template in the data source to be updated expects an "OptionSetValue (Status (Mittel_1))" type, but you are using an "OptionSetValue (Status (Symptome_1))" type

 

Storage location
DeleteConfirmBtn3.OnSelect

 

Well there exists a table Symptome_1 and it's screen has the same layout as for table Mittel_1. But why does this error come up?
I don't reference table Symptome_1 in the screen for table Mittel_1! The Delete action is created by the template.

 

The DeleteConfirmBtn3.OnSelect entry has this code:

 

Remove(Mittel_1; selectedRecord);; If(IsEmpty(Errors(Mittel_1; selectedRecord)); UpdateContext( { CurrentItem: First(Mittel_1); itemSelected:false; editMode:false; newMode:false; deleteMode:false}));;

 

And I even don't do anything with the Status field in the screen😩 And in the table Mittel_1 the column Status looks like it is in table Symptome_1, where it simply works.

 

There are 3 other error messages, i.e.

 

The "Remove" function has invalid arguments

 

Any ideas?

thx

I have the same question (0)
  • ivan_apps Profile Picture
    2,189 Moderator on at

    You state you created a canvas app and then received the error - however you need to provide a little more information as to what you added to the screen in order to get that error. Do you have a form, gallery, text field, etc.

     

    You said the Delete action is created by the template - what template is that? 

     

    What I'd really like to know is what does 'selectedRecord' reference? If a gallery is there and you are selecting a row - sometimes a full reference to that record isn't made available. In which case you could use the RemoveIf() function and ask it to remove only if ID = selectedRecord.ID (whatever your GUID value is). 

     

    You could also do a Remove(Mittle_1, LookUp(Mittle_1, [Mittle_1.GUID_field] = selectedRecord.[Guid_field])

  • candide Profile Picture
    on at

    @ivan_apps 

    the template I used:
    New Screen - Layouts - Empty - start pages - with data

    DeleteConfirmBtn3.OnSelect looks like this:
     

     

    Remove(Mittel_1; selectedRecord);; If(IsEmpty(Errors(Mittel_1; selectedRecord)); UpdateContext( { CurrentItem: First(Mittel_1); itemSelected:false; editMode:false; newMode:false; deleteMode:false}));;

     

    and is generated by the template.
    When I create a new screen for test then this generated function looks same
    and these two function expressions are marked red:
     

     

    Remove(Mittel_1; selectedRecord)
    (Errors(Mittel_1; selectedRecord)

     

     
    and the gallery named MittelBrowseGallery05_2 has the Default CurrentItem
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    2024-01-24_Pic012-Mittel_1_ScreenMittelCRUD_Error DeleteConfirmBtn3_V03.png
    2024-01-24_Pic019-ScreenMittel_TEST Function_DeleteConfirmBtn3.OnSelect is OK_V02.png
  • Verified answer
    candide Profile Picture
    on at

    This seems to complicated for a beginner.

    So I started from scratch - with new environment and a clear table naming etc.

    thanks so far😊

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard