I'm trying to use SetItemDataSources to set the data source for a report I've uploaded to SSRS to an existing data source. The report and data source are in the folder "/TestFolder/TestProject/" on the RS server. The doc at http://msdn.microsoft.com/en-us/library/reportservice2010.reportingservice2010.setitemdatasources.aspx says ItemPath is "The fully qualified URL of the item including the file name and, in SharePoint mode, the extension" however the error says the path in Native Mode (which is what I have) must be less than 260 characters and start with a slash. The error is:
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: The path of the item /TestFolder/TestProject/Empbase/' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash.
I've tried using "/TestFolder/TestProject/" which fails with the above error. I also tried "/TestFolder/TestProject/Empbase" and "/TestFolder/TestProject/Empbase/" where "Empbase" is the name of the existing data source. All result in the above error.
What is supposed to be used in the ItemPath property for this method call?
Updated information: I added -e Mgmt2010 to my rs.exe command. That pointed out that CreateReport was no longer supported so I converted to:
rs.CreateCatalogItem("Report", reportName, parentPath, False, definition, Nothing, warnings)
But I'm still stuck on "parentPath". The docs say the full HTTP URL to the report. I've tried that, I've tried HTTP URL to the folder in which the report resides. The error still says that in Native mode the path must start with a slash, which an HTTP URL does not. So I tried just the folder/paths as noted above and I'm still getting the same error.