LinkReplaceTimerJob threw an exception after running Update-SPInfoPathUserFileUrl

* A .rsds file is a shared data source file published to SharePoint by users to allow SQL reports to run properly in SSRS integrated mode with SharePoint. Often, customers deploy the shared data source file to a Data Connection library since the file defines a data connection to a data source.

Reference: http://msdn.microsoft.com/en-us/library/bb326288.aspx

* Publish a shared Data source file to a data connection library (or simply upload an existing .rsds file if you don't have SSRS running)
-
* Run the following PowerShell command:
Get-SPWebApplication http://sp2010 | Update-SPInfoPathUserFileUrl -find "http://sp2007" -replace "http://sp2010"

* From the event viewer on the server, you will see the following error:

"The Execute method of job definition Microsoft.SharePoint.Utilities.LinkReplaceTimerJob threw an exception. Object reference not set to an instance of an object."
Below is what I have gathered from Reflector and ULS logs:
• From Microsoft.SharePoint.Utilities.SharePointLinkReplace

o SharePoint will call FixList on all the lists

o If the list is a Data connection library, call FixUDCFileon every file if the file is not .aspx

o FixUDCFile will process the file (ULS log: "Processing data connection file" was called before exception was thrown), then call FixUdcXML and then FixXML, which will then callPerformChecksOnXMLDocument

o Once in PerformChecksOnXMLDocument, because the .rsds file has a different xml structure than both XSN and UDCX files, the code looks for nodes that cannot be found, hence resulting in an Object reference not set to an instance of an object exception.

Resolution:

• Before running the PowerShell command, remove or rename the .rsds file to aspx so that the timer job will skip processing rsds files

Comments

Popular posts from this blog

"There's a configuration problem preventing us from getting your document. If possible, try opening this document in Microsoft Word." Office WebApp Error

"We’re sorry. We ran into a problem completing your request. Please try that again in few minutes." Excel Service SharePoint

Deployment error "The web.config is invalid on this IIS Web Site"