Select to view content in your preferred language

Issues with Print Task and Feature Layer Renderer

2102
0
02-13-2013 09:39 AM
dmacq
by
Occasional Contributor
This should probably go in with the existing export/graphics thread, but thought it might be worth a separate discussion since this is a feature layer issue.  I have the following renderer applied to a feature layer of buildings.

When trying to print (export), I get a generic "Unable to Complete Operation" error.  Looking deeper, I find the following JSON error in Fiddler:

Error executing tool.: Layer "Facilities": Missing 'symbol' in simple renderer.
ERROR: code:400, Unable to complete  operation., Invalid URL, Bad syntax in request.
Failed to execute (Export Web Map).
Failed to execute (Export Web Map Task).


If I remove the renderer from the feature layer, the print runs fine.

 <esri:SimpleRenderer x:Key="SelectFillRenderer">
                <esri:SimpleRenderer.Symbol>
                    <esri:FillSymbol>
                        <esri:FillSymbol.ControlTemplate>
                            <ControlTemplate>
                                <Path x:Name="Element" Stroke="Transparent" Fill="Transparent" Opacity=".5">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal" >
                                                <Storyboard>
                                                    <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="Transparent"  Duration="00:00:00"/>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="DarkBlue" Duration="00:00:00"/>
                                                    <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="DarkBlue" Duration="00:00:00"/>
                                                    <DoubleAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Symbol.StrokeThickness)" To="10" Duration="00:00:00.25" />
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Selected">
                                                <Storyboard>
                                                    <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="Orange" Duration="00:00:00"/>
                                                    <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="Orange" Duration="00:00:00"/>
                                                    <DoubleAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Symbol.StrokeThickness)" To="10" Duration="00:00:00" />
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                </Path>
                            </ControlTemplate>
                        </esri:FillSymbol.ControlTemplate>
                    </esri:FillSymbol>
                </esri:SimpleRenderer.Symbol>
            </esri:SimpleRenderer>
0 Kudos
0 Replies