We published a map service using 10.6.1 ArcGIS for Server (on Linux) where the label is symbolised by concatenating 3 fields:
[Road_Name] + " " + [Road_Type] + " - " + [Road_Number]
That is, the word "concat" appears in the label, instead of "Prince Hwy - 0000001".
This issue does not appear if using Map Image Layer.
I tried various other ways e.g. using advanced functions, JScript / VBScript etc, no luck.
I want to submit a bug report but there isn't an easy way to do so, hence the post here.
Can someone from Esri take a look please.
Hi @HenryKo2, I think the issue you are seeing is because MapImageLayer uses SQL for the labelExpression:
Whereas FeatureLayer uses Arcade for the labelExpressionInfo:
test-app to see it in action (concatenating labels with a FeatureLayer):
Thanks Noah-Sager for the reply.
I should clarify, we published the map service in ArcGIS for Server with the following, using ArcMap:
The result we got is the screenshot I posted above where "concat" happens.
We don't do anything explicit or special with the labels in JS code.
I would expect the labels to display correctly "out-of-box", regardless of SQL or Arcade expressions.