+ Start a Discussion
navya m 23navya m 23 

Error :Incompatible types: NUMERIC and STRING in Compute Expressions

I have created a compute field named x of type text.I used ah field y in compute expression which is of numeric .Basically i want to output to be 'y'+"some text" which would be used as dimension.But the Dataflow fails with Error Incompatible types: NUMERIC and STRING .How to achieve concatenation using compute fields ???
NagendraNagendra (Salesforce Developers) 
Hi Navya,

If you using a formula then use
Text(Numeric_field_Name__C) + text_Field__c
If you are trying it in apex code and want to store result in text field then use
string.valueOf(Numeric_field_Name__C) + text_Field__c
Hope this helps.

Mark this as solved if it's resolved.

Thanks,
Nagendra