Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

"InfoPath cannot connect to a data source" when designing InfoPath form template using Data Source

瀏覽次數:2,196 次
跳到第一則未讀訊息

Aunko Abdullah

未讀,
2007年2月5日 下午5:12:552007/2/5
收件者:
Hello,

Hope someone can help me with this:

Using Microsoft Office InfoPath 2007 (12.0.4518.1014, part of
Microsoft Office Enterprise 2007). I am executing the following steps:

* Design a form template using 'Database' option, creating a new Data
Source pointing to a database in local SQL Server 2005
* Keep the default template layout (with 'New Record' and 'Run Query'
buttons)
* Drag one query field in the 'Query' layout table
* Select 'Preview' from the toolbar
* Enter a value in the query field
* Click on 'Run Query'
* Receive the following error message:

InfoPath cannot connect to a data source

To try to connect to other data sources, click "Try to connect".
To use previously used data, click "Work offline".

If I click on the 'Show Details' button, I receive the following info:

The query cannot be run for the following DataObject: My
connection
InfoPath cannot run the specified query.
InfoPath cannot connect to the data source.
Access is denied.
Access is denied.

'My Connection' is the connection name that I specified during initial
setup.


A few things to note:

* I tried this with Microsoft Access database, endin up with same
error
* InfoPath can display column information from the table selected, so
I assume it can access the database without problem
* I tried both Integrated Authentication and SQL Server
Authentication, but the behavior remained same


TIA FYH!

Samper@discussions.microsoft.com Geoffrey Samper

未讀,
2007年2月7日 下午5:39:182007/2/7
收件者:
In had something simular when I tried to connect to a webservice. I changed
my Trust level of my form to FULL TRUST and then it was fixed.

Hope it helps

Aunko Abdullah

未讀,
2007年2月8日 中午12:11:462007/2/8
收件者:
Thanks for the reply. I contacted Microsoft Support and thats how they
solved it for me too. However, they agree that the form should not
require full trust. They are working on the issue (already collected
TTT log from me).

On Feb 7, 5:39 pm, Geoffrey Samper <Geoffrey

> > TIA FYH!- Hide quoted text -
>
> - Show quoted text -


Patterson@discussions.microsoft.com Jay Patterson

未讀,
2007年3月28日 上午11:48:022007/3/28
收件者:
I am having a similar problem - Infopath 2007 & Access 2003 MDB, have a
datasource but when I preview the form, I get the same error.

I cannot find anything in the UI related to Full Trust to turn on - can
someone direct me or is this a different problem when using a local access DB.

All this security applied locally really makes the design experience horrible.

databaseflunkyegghead

未讀,
2008年6月25日 下午5:16:332008/6/25
收件者:
Tools->Form Options...

under Security and Trust in the Category Pane, Uncheck "Automatically determine security level (recommended)" click the option button labeled "Full Trust".


mario chaves

未讀,
2011年8月14日 下午1:16:422011/8/14
收件者:
thanks lot sr. at 2011.


>> On Wednesday, February 07, 2007 5:39 PM Geoffrey Sampe wrote:

>> In had something simular when I tried to connect to a webservice. I changed
>> my Trust level of my form to FULL TRUST and then it was fixed.
>>
>> Hope it helps
>>
>>
>>
>>
>> "Aunko Abdullah" wrote:


>>> On Thursday, February 08, 2007 12:11 PM Aunko Abdullah wrote:

>>> Thanks for the reply. I contacted Microsoft Support and thats how they
>>> solved it for me too. However, they agree that the form should not
>>> require full trust. They are working on the issue (already collected
>>> TTT log from me).
>>>
>>> On Feb 7, 5:39 pm, Geoffrey Samper <Geoffrey
>>> Sam...@discussions.microsoft.com> wrote:


>>>> On Wednesday, March 28, 2007 10:48 AM Jay Patterso wrote:

>>>> I am having a similar problem - Infopath 2007 & Access 2003 MDB, have a
>>>> datasource but when I preview the form, I get the same error.
>>>>
>>>> I cannot find anything in the UI related to Full Trust to turn on - can
>>>> someone direct me or is this a different problem when using a local access DB.
>>>>
>>>> All this security applied locally really makes the design experience horrible.
>>>>
>>>> "Aunko Abdullah" wrote:


>>>>> On Wednesday, June 25, 2008 5:16 PM databaseflunky egghead wrote:

>>>>> Tools->Form Options...
>>>>>
>>>>> under Security and Trust in the Category Pane, Uncheck "Automatically determine security level (recommended)" click the option button labeled "Full Trust".


>>>>>> On Sunday, August 14, 2011 1:14 PM mario chaves wrote:

>>>>>> thanks lot ma friend at 2011.in my high school project.

suzy...@gmail.com

未讀,
2013年6月6日 下午3:59:282013/6/6
收件者:
I found if you are using a mapped network drive to the database it will not work, use the UNC \\ServerName\ etc...
0 則新訊息