Skip to Content

SAPUI5 annotation chart error 50005 in analytical list page

Hi,

I am currently devolping an analytical list page fiori element. I want to create a table and a chart.

I created an analytical list page with the template given in the SAP Web IDE Full-Stack. Followed the wizard, binding my oData service and my entity set.

I could create everything, but my table is showing me the "[50005] - valueAxis : does not meet the minimum or maximum number of feeds definition." error. After some analyzation I found out, that the attribute "visibleMeasures" is empty. And the attribute "visibleDimensions" is filled with 5 values.

I don't know where the chart gets the "visibleDimensions" from. In my annotation modeler I have following code:

<Annotations Target="***.user">
	<Annotation Term="UI.LineItem">
		<Collection>
			<Record Type="UI.DataField">
				<PropertyValue Property="Value" Path="Username"/>
			</Record>
			<Record Type="UI.DataField">
				<PropertyValue Property="Value" Path="Duration"/>
			</Record>
		</Collection>
	</Annotation>
	<Annotation Term="UI.Chart">
		<Record Type="UI.ChartDefinitionType">
			<PropertyValue Property="Title" String="Chart"/>
			<PropertyValue Property="Description" String="Chart"/>
			<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Column"/>
			<PropertyValue Property="Measures">
				<Collection>
					<PropertyPath>Duration</PropertyPath>
				</Collection>
			</PropertyValue>
			<PropertyValue Property="MeasureAttributes">
				<Collection>
					<Record Type="UI.ChartMeasureAttributeType">
						<PropertyValue Property="Measure" PropertyPath="Duration"/>
					</Record>
				</Collection>
			</PropertyValue>
			<PropertyValue Property="Dimensions">
				<Collection>
					<PropertyPath>Username</PropertyPath>
				</Collection>
			</PropertyValue>
			<PropertyValue Property="DimensionAttributes">
				<Collection>
					<Record Type="UI.ChartDimensionAttributeType">
						<PropertyValue Property="Dimension" PropertyPath="Username"/>
					</Record>
				</Collection>
			</PropertyValue>
		</Record>
	</Annotation>
</Annotations>

With the UI5 Diagnostics tool in my Chrome browser, I can live change the attributes. After I add "Duration" to the attribute "visibileMeasures" the chart shows up.

My second, less important, issue: My table isn't showing data. It says the "noDataText". There is the problem that the table and smartTable have no Binding Infos. Although I can change the view of the columns, reagarding to the entity set. So some sort of Binding Infos have to be there.

EDIT: my second, less important, issue just resolved by itself. I didn't change anything. But somehow it just works, when I don't include the chart.

I hope someone can help me. If you need any information, just ask.

Thank you very much!

Best Regards,

Dennis.

Add comment
10|10000 characters needed characters exceeded

  • Hi,

    my annotation chart suddenly shows this error out of the blue after running ok for months.

    How did you solve it ?

  • I didn't solve it yet. I am working with viz charts now.

  • Chart would not pick up the dimension/measures from annotation and assign it to visibleDimenions/visibleMeasures automatically so it must be set elsewhere. As you said 5 dimensions were defined as visibleDimension, maybe you could try a global search for "setVisibleDimension"on Chrome Dev tool with debug mode enabled to see who had done such setVisibleDimenison.

  • Follow
  • Get RSS Feed

0 Answers