in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

InfoPath Task Form: An error occurred accessing a data source.

After building a workflow recently, I noticed I was getting the following error whenever I opened the task form.

An error occurred accessing a data source.

I have seen the error in the past when trying to connect to an external web service when it was down, but this form was much simpler than that.  The only data source it had was ItemMetadata.xml.  The weird thing was everything on the form was working.  At this point, I decided to hit the LOGS folder and see if I could figure out what was going on.  The error wasn't in there, but I found entries for my form along with an error stating that it could not read the ItemMetadata.xml file from the file system.

At this point, the answer was obvious to me.  When I configured the secondary datasource, I somehow didn't set the option "Include this file as a resource in the form template or template part".  I selected this option, republished my form, and then reinstalled the workflow.  To no surprise, I saw that the error went away.

Comments

 

KyleKelin said:

Didn't I answer this for you today? I want credit :)

December 15, 2008 11:07 PM
 

Aditya Reddy said:

Thanks...i was struck into this issue for 3 hrs..

November 5, 2011 3:25 AM

Leave a Comment

(required)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an independent SharePoint consultant specializing in ECM, Apps, and Search.
2015 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems