SQLXMLBULKLOAD Error.log path is invalid

Posted on 2009-12-29
Last Modified: 2012-08-14
I am running SQLXMLBULKLOAD and getting the following message "The error log file could not be created. Make sure you have the appropriate permissions and that the ErrorLogFilePath is valid. "

The error.log file is mapped as objbl.ErrorLogFile = "C:\error.log".
 I have tried with this empty and also creating this empty file prior to running the page. I have also tried running this with the file located in the project files as  "C:~/Data/error.log" as this still come with the same message.
So I believe the path is correct, therfor can you give assistance on finding the appropriate permissions.

Kind regards
Question by:Simon Cripps
    LVL 26

    Expert Comment

    The folder (not the file) has to exist before you run the import he user under the application is running, be it a VBscript in Windows (in this case will be your windows account so should not be any problems here)  or ASP page, has to have permission to write on that folder. If you are using an ASP page to do that the user set in the IIS for the application has to be given writing permissions to that folder. If you are using a folder that the ASP website is using should work as well.
    LVL 26

    Accepted Solution

    I missed some words there, I meant:

    The folder (not the file) has to exist before you run the import and the user the application is running under, be it a VBscript in Windows ...

    Author Comment

    by:Simon Cripps
    Thank you permisions have change and the program does not fal over on this point any more.
    many thanks

    Author Closing Comment

    by:Simon Cripps
    Solution was to look at the folder on windows explorer and change the permisions to write. Many thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
    In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
    Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now