Invalid Expression "Can't identify 'Color' element in Expression"

Hi guys. Good day.


I am currently taking the course on Mobile Development (OutSystem 11), Blocks Exercise [9.2]. I am in this portion where I am supposed to use a tag widget which will change background colors depending on the Priority Id of the Local Input Parameter, LocalToDo. I typed in the instructed expression completely, but it does not work. I changed Entities.Color.Red to Entities.DEPRECATED_Color.Red and it was possible to publish, unlike before. Can someone kindly help me understand why?


Best Regards

Hi Rafael,

Can you share the sample oml or can you share the color entity structure?

Regards,

Manish Jawla

Solution

Hi Rafael,

Please check in Data tab "Outsystem UI" has reference of Color entity

If not than go to manage dependancy and find outsystem ui and take reference 


Hope his will help you

Regards

Rahul Sahu

Solution

Rahul Sahu wrote:

Hi Rafael,

Please check in Data tab "Outsystem UI" has reference of Color entity

If not than go to manage dependancy and find outsystem ui and take reference 


Hope his will help you

Regards

Rahul Sahu

 Oh wow. It was that simple! Your response was spot on. :)

 

If you don't mind me asking, what led you to believe that it was a dependency issue? Is that one of the probable reasons/cases when Invalid Expression error appears?


Thanks again, Rahul!

 

Hi Rafael, 

as you provided screen shot of issue and here see "can't identify 'Color' element in expression" and color is a static entity which is default OS UI static entity. thats why i guess it is dependency issue.


Regards

Rahul Sahu