I have the following SP which works correctly when ran on its own:
USE [Orders]
GO
SET FMTONLY OFF;
CREATE PROCEDURE [dbo].[Get_Details_by_Type]
@isArchiv
If anyone is still facing this issue, I solved what appears to be a similar problem with ssrs and dynamic sql.
sp_YourStoredProc @Parameter1....@ParameterNBTW, I'm using SQL 2012
Hope this helps.