Results 1 to 5 of 5

Thread: Getting Access Denied error while preview infopath form

  1. #1
    Join Date
    Aug 2009
    Posts
    34

    sad Getting Access Denied error while preview infopath form

    Hello Everyone,

    This is the first time I am using Infopath and I got stuck with "Access Denied" error. I created a data connection (to receive data from SQL Server) and then I simply took one drop down

    and bind the dropdown value from external data source column value. When I click on the preview button, I am getting three button :

    1. Work Offline 2. Try to Connect (When I clicked ion this button, I got one popup saying that, Infopath connected to data source but failed to receive data)

    3. Show Details -> when I clicked on this button it shows :

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


    Can anyone please help me as I dont know why I am getting this Access Denied error. Any help would be appreciated......Thanks

  2. #2
    Join Date
    Aug 2009
    Posts
    34

    Re: Getting Access Denied error while preview infopath form

    is anyone there to help me on this regard.............

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: Getting Access Denied error while preview infopath form

    You may check security level of the form in info path. May be this is the reason for error access is denied in infopath. You can also check from following method : Design a new blank form template in infopath and save the template as a test123.xsn to a network share that you should write access to. Then go to the file menu and click on that form then fill out that form task pane and select test. click save on the file menu as a c:\test123form.xml and close infopath. Then start a notepad and then write a script on that :

    objIP = new ActiveXObject("InfoPath.ExternalApplication")
    objIP.Open ("C:\\test123form.xml")

    and save the file name Test123.js. Then double click on that java script file. May be this will help you.

  4. #4
    Join Date
    Aug 2009
    Posts
    34

    Re: Getting Access Denied error while preview infopath form

    Yar, I din't get the sol. Can you please explain in easy way..........
    That will be really helpful............
    Thanks in advance....

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Getting Access Denied error while preview infopath form

    Are you able to connect to the server? When you create the data connection, are you using Windows Authentication? Or SQL? If you are using SQL, are you saving the connection string? You are this error possibly because your template.xml file does not match your form schema. Look at your template.xml file and compare it with your schema and checout if you are missing anything in it.

Similar Threads

  1. Replies: 6
    Last Post: 24-08-2011, 09:24 PM
  2. Not Importing form templates in InfoPath 07
    By AlexisSoft in forum Windows Software
    Replies: 5
    Last Post: 19-11-2010, 11:48 PM
  3. Replies: 4
    Last Post: 11-08-2010, 02:46 PM
  4. Part of the text of an InfoPath form does not Print!
    By desilva in forum Windows Software
    Replies: 5
    Last Post: 16-03-2010, 01:45 AM
  5. Replies: 2
    Last Post: 24-05-2007, 09:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,617,299.85077 seconds with 17 queries