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

Posted Monday, December 15, 2008 12:18 PM by CoreyRoth

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

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

Monday, December 15, 2008 11:07 PM by KyleKelin

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

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

Saturday, November 5, 2011 3:25 AM by Aditya Reddy

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

Leave a Comment

(required)
(required)
(optional)
(required)