Categories: SSRS

SSRS Mobile Reports – JSON error

Just a quick blog post about an error I recently encountered when trying to create a mobile report for SSRS 2016, using the Mobile Report Publisher. I created the following query on top of the Wide World Importers data warehouse:

SELECT
	 c.[City]
	,c.[State Province]
	,c.[Country]
	,c.[Sales Territory]
	,c.[Region]
	,c.[Subregion]
	,c.[Location]
	,[Latitude]		= c.[Location].Lat
	,[Longitude]	= c.[Location].Long
	,u.[Customer]
	,u.[Category]
	,u.[Buying Group]
	,[Order Date]	= [Order Date Key]
	,[Picked Date]	= [Picked Date Key]
	,e.[Employee]
	,[WWI Order ID]
	,[Package]
	,[Quantity]
	,[Unit Price]
	,[Tax Rate]
	,[Total Excluding Tax]
	,[Tax Amount]
	,[Total Including Tax]
 FROM [Fact].[Order]			f
 JOIN [Dimension].[City]		c ON f.[City Key]			= c.[City Key]
 JOIN [Dimension].[Customer]	u ON f.[Customer Key]		= u.[Customer Key]
 JOIN [Dimension].[Employee]	e ON f.[Salesperson Key]	= e.[Employee Key]
 WHERE	[Order Date Key] >= '2016-01-01'
	AND	[Order Date Key] <= '2016-12-31';

I created a shared dataset and stored it on the report server. Then I tried to create a new mobile report using this dataset. I was quickly greeted with the following error:

The error message “The JSON SharedDataSet Table renderer cannot parse the supplied report” doesn’t exactly tell you what’s going on. Apparently it is having issues with the Location column, which is of the geography data type. If you remove it, the dataset will be imported in the mobile report editor. There’s no documentation of which data types are supported or not in the mobile reports. I included the column in the first place to find out if the Mobile Report Publisher could handle it and plot the data on a map. It seems not.

 


------------------------------------------------
Do you like this blog post? You can thank me by buying me a beer 🙂
Koen Verbeeck

Koen Verbeeck is a Microsoft Business Intelligence consultant at AE, helping clients to get insight in their data. Koen has a comprehensive knowledge of the SQL Server BI stack, with a particular love for Integration Services. He's also a speaker at various conferences.

Share
Published by
Koen Verbeeck

Recent Posts

Free webinar – Tackling the Gaps and Islands Problem with T-SQL Window Functions

I'm hosting a free webinar at MSSQLTips.com at the 19th of December 2024, 6PM UTC.…

5 days ago

dataMinds Connect 2024 – Session Materials

The slides and scripts for my session "Tackling the Gaps & Islands Problem with T-SQL…

4 weeks ago

Connect to Power BI as a Guest User in another Tenant

Sometimes your Microsoft Entra ID account (formerly known as Azure Active Directory) is added as…

2 months ago

How to use a Script Activity in ADF as a Lookup

In Azure Data Factory (ADF, but also Synapse Pipelines and Fabric Pipelines), you have a…

4 months ago

Database Build Error – Incorrect syntax near DISTINCT

I wrote a piece of SQL that had some new T-SQL syntax in it: IS…

4 months ago

Speaking at dataMinds Connect 2024

I'm very excited to announce I've been selected as a speaker for dataMinds Connect 2024,…

5 months ago