Select to view content in your preferred language

How can I create an MPK file that has VBScript label expressions

2312
3
02-26-2013 04:17 AM
teamIgal
Deactivated User
When I try to create an MPK file (ArcMap10.1->File->Share As->Map Package...), for use with my ArcGIS Runtime WPF based application, I get an error that says "Expression uses VBScript and you are publishing to ArcGIS for Server (Linux)(166 items)".

I have hundreds of layers with VBScript label expressions, and this is crucial for me. Changing each expression manually and converting it to JavaScript or Python is not an option.

Is there any way I can create an MPK file with these existing VBScript expressions?
Without this, my whole WPF application has no use.
0 Kudos
3 Replies
KevinHibma
Esri Regular Contributor
No you can't use VBScript in the Runtime packages
It only supports the Python parser.
Unfortunately you'll have to update your expressions or remove the layers.

Just a note, I think we've enhanced the error message in a newer version. When I run the analyzer, I get this title:
00174: Expression uses VBScript, this is not supported in the ArcGIS Runtime
0 Kudos
teamIgal
Deactivated User
OK.

Do you have an idea on how to automate the process of migrating hundreds of VBScript label expressions to JavaScript/Python label expressions?

Thanks.
0 Kudos
JonPasher
New Contributor
Actually in the ArcGIS Runtime for WPF v10.1.1 labels will only show if you use the jscript parser...not the python parser.
Cheers
0 Kudos