cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tonykiefer
Super User
Super User

Conversion failed when converting the nvarchar value 'X' to data type int.

I have a form with a set of Cascading dropdowns/comboboxes on it.

tonykiefer_0-1635445887274.png

The combobox "Component 2" is setup this way...

tonykiefer_1-1635446135437.png

The combobox does retrieve the filtered selection...

tonykiefer_2-1635446199563.png

 

The problem occurs when I filter the view to return a specific column like so...

tonykiefer_3-1635446295100.png

 

The view schema...

tonykiefer_4-1635446340821.png

The query result using the myPLM_BOM_ID onscreen value...

tonykiefer_5-1635446419811.png

and the onscreen error when I change the Items property to include the filter column...

tonykiefer_6-1635446540378.png

It seems I cannot add any additional parameter to the filtered list without getting this error.

I'm not really sure why the Item's Property won't return the filtered record set.  Any help will be appreciated.

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User
Super User

@tonykiefer 

Your filter syntax is incorrect.

Change to the following if you only want one column.

Filter(VW_DELETE_COMPONENT_FROM_BOM, Component=myPLM_BOM_ID).PLM_BOM_RESULT

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

@RandyHayes ...it worked...Thank you very much for the pair of eyes.  I guess I tried applying dropdown syntax to a combobox.

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@tonykiefer 

Your filter syntax is incorrect.

Change to the following if you only want one column.

Filter(VW_DELETE_COMPONENT_FROM_BOM, Component=myPLM_BOM_ID).PLM_BOM_RESULT

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes ...it worked...Thank you very much for the pair of eyes.  I guess I tried applying dropdown syntax to a combobox.

RandyHayes
Super User
Super User

@tonykiefer 

I've done it before not thinking straight...extra eyes always help!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,222)