Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. invalid parameter value on CreateSubscription

invalid parameter value on CreateSubscription

Scheduled Pinned Locked Moved Database
csharpdatabasesql-servercom
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    run4ever_77
    wrote on last edited by
    #1

    Hi, I have to create one subscription via Vb.net for one simple report . Once i try to deploy this subsciprion the system returns this message: "rsInvalidParameter400Value of the parameter 'Parameters' is not valid.http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsInvalidParameter&ProdName=Microsoft SQL Server Reporting Services&ProdVer=10.0.2531.0Microsoft SQL Server Reporting Services10.0.2531.0127OsIndependent1040ReportingServicesLibraryValues of parameter 'Parameters' is not valid." Here is the code i wrote for my report.

    Dim RS As New ReportingService2005
    RS.Credentials = System.Net.CredentialCache.DefaultCredentials
    RS.Url = "HTTP://VIROSQL08/REPORTSERVER/REPORTSERVICE2005.ASMX"

    Dim report As String = "/MYREPORTS/TEST\_REPORT"
    Dim desc As String = "TEST SCHEDULE"
    Dim eventType As String = "TimedSubscription"
    Dim StartDateSchedule As String = Today.ToString("yyyy-MM-dd")
    Dim StartClockSchedule As String = "09:27"
    
    Dim scheduleXml As String = String.Format("<ScheduleDefinition><StartDateTime>{0}T{1}:00</StartDateTime></ScheduleDefinition>", StartDateSchedule, StartClockSchedule)
    
    Dim extensionParams(7) As ParameterValue
    
    extensionParams(0) = New ParameterValue()
    extensionParams(0).Name = "TO"
    extensionParams(0).Value = "CED@MYCOMPANY.COM"
    
    extensionParams(1) = New ParameterValue()
    extensionParams(1).Name = "ReplyTo"
    extensionParams(1).Value = "reporting@adventure-works.com"
    
    extensionParams(2) = New ParameterValue()
    extensionParams(2).Name = "IncludeReport"
    extensionParams(2).Value = "True"
    
    extensionParams(3) = New ParameterValue()
    extensionParams(3).Name = "RenderFormat"
    extensionParams(3).Value = "EXCEL"
    
    extensionParams(4) = New ParameterValue()
    extensionParams(4).Name = "Subject"
    extensionParams(4).Value = "@ReportName was executed at @ExecutionTime"
    
    extensionParams(5) = New ParameterValue()
    extensionParams(5).Name = "Comment"
    extensionParams(5).Value = "TEST SCHEDULE"
    
    extensionParams(6) = New ParameterValue()
    extensionParams(6).Name = "IncludeLink"
    extensionParams(6).Value = "False"
    
    extensionParams(7) = New ParameterValue()
    extensionParams(7).Name = "Priority"
    extensionParams(7).Value = "NORMAL"
    
    Dim parameter As New ParameterValue()
    parameter.Name = "PARAM1"
    parame
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups