We help IT Professionals succeed at work.

Editing Subscription in SSRS post upgrade to 2012 fails with rsMissingElement error

KThrace
KThrace asked
on
I just upgraded SQL 2005 with SSRS to SQL2012. Everything seems to have gone smoothly with the exception of one thing. The reports that were on SSRS can be ran manually, and the subscriptions can be edited for all except for one batch of reports. When I try to edit the existing subscription for them I receive the following error:

The required field StartDateTime is missing from the input structure. (rsMissingElement)

I can create a new subscription, schedule it, and it runs and processes correctly but I need to be able to edit the current subscription. If it can't be resolved I will need to recreate all the subscriptions, which isn't a huge deal, but am hoping for a less painful fix.
Comment
Watch Question

Commented:
I was able to fix this issue by using SSMS to connect to the ReportServer database. Within the table dbo.subscriptions there is a column 'MatchData', and for some unknown reason the value for some of the subscriptions was set to:

<?xml version="1.0" encoding="utf-16"?><ScheduleDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><StartDateTime>0001-01-01T00:00:00</StartDateTime></ScheduleDefinition>

As you can see, the StartDateTime is slightly off. I used the following queries to obtain all of the Subscriptions that appeared like this, and to then correct them for each SubscriptionID

select * from dbo.Subscriptions where MatchData like '%0001-01-01T00:00%'

Open in new window


Returns all subscriptionIDs with 0001-01-01T00:00 in the MatchData column and then run

update dbo.Subscriptions
set MatchData = '<?xml version="1.0" encoding="utf-16"?><ScheduleDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><StartDateTime>2015-01-01T00:00:00</StartDateTime></ScheduleDefinition>'
where SubscriptionID = 'EB1E31EC-6578-4E65-831B-106277B854E4'

Open in new window



This then allowed me to go into the subscriptions via: http://server/reports and correct the subscription schedule.

Hope this helps someone else.

Author

Commented:
Resolve the issue myself.