Job SQL For Pkg SSIS

  • Bonjour à tous, 
    je viens vers vous après quelques heures de recherches sur le net. 

    En effet, j'ai quelques packages SSIS que j'ai déployé sur mon serveur et je souhaite automatiser leur Exécution mais je rencontre quelques problèmes. 

    Dans Microsoft SQL Server Management Studio : 

    - Lorsque j’exécute le package depuis Catalogues Intégration Services ( clic droit sur le package --> exécuter ) tout se passe bien --> succès 100% 

    - Lorsque Je créé mon Job SQL --> je configure l’exécution de mon package dans la partie Etape daeavec Exécuter en tant que (Compte de service SQL server Agent ( le seul choix) ) --> je teste mon job --> j'ai un échec avec le message d'erreur suivant : 

    "Pkg_Staging:Erreur : Code d'erreur SSIS DTS_E_OLEDBERROR. Une erreur OLE DB s'est produite. Code d'erreur : 0x80004005.
    Un enregistrement OLE DB est disponible. Source : « Microsoft Access Database Engine » Hresult : 0x80004005 Description : « Le moteur de la base de données Microsoft Access ne peut pas ouvrir ou écrire sur le fichier « D:\DATA\Excel Data_v1.xlsx ». Il est déjà ouvert en mode exclusif par un autre utilisateur, ou vous devez avoir l’autorisation de visualiser et d’écrire sur ses données. »."

    j'ai testé de donner tous les droits au compte NT service\SQLSERVERAGENT mais le problème Persiste, à noter que le fichier en question n'est pas ouvert par un autre user. 
    Si vous avez une idée ou une piste suis vraiment preneur.

  • Bonjour,

    Désolé, mais ce forum utilise la langue anglaise. J'ai dû utiliser le traducteur Google uniquement pour pouvoir vous fournir ce message

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • Here's Google's translation of the original post:
    Hello everyone,
    I come to you after a few hours of research on the net.

    Indeed, I have some SSIS packages that I have deployed on my server and I want to automate their execution but I encounter some problems.

    In Microsoft SQL Server Management Studio:

    - When I run the package from Catalogs Integration Services (right click on the package -> run) everything goes well -> 100% success -

    - When I created my SQL Job -> I configure the execution of my package in the Step part with Run as (SQL Server Agent service account (the only choice)) -> I test my job -> I have a failure with the following error message:

    "Pkg_Staging: Error: SSIS error code DTS_E_OLEDBERROR An OLE DB error has occurred Error code: 0x80004005.
    An OLE DB record is available. Source: Microsoft Access Database Engine Hresult: 0x80004005 Description: "The Microsoft Access database engine can not open or write to the" D: \ DATA \ Excel Data_v1.xlsx "file. It is already open exclusively by another user, or you must have permission to view and write on its data. "."

    I tried to give all the rights to the NT service \ SQLSERVERAGENT account but the problem Persist, to note that the file in question is not opened by another user.
    If you have an idea or a track are really taker.

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • sgmunson - Wednesday, September 27, 2017 8:01 AM

    Here's Google's translation of the original post:
    Hello everyone,
    I come to you after a few hours of research on the net.

    Indeed, I have some SSIS packages that I have deployed on my server and I want to automate their execution but I encounter some problems.

    In Microsoft SQL Server Management Studio:

    - When I run the package from Catalogs Integration Services (right click on the package -> run) everything goes well -> 100% success -

    - When I created my SQL Job -> I configure the execution of my package in the Step part with Run as (SQL Server Agent service account (the only choice)) -> I test my job -> I have a failure with the following error message:

    "Pkg_Staging: Error: SSIS error code DTS_E_OLEDBERROR An OLE DB error has occurred Error code: 0x80004005.
    An OLE DB record is available. Source: Microsoft Access Database Engine Hresult: 0x80004005 Description: "The Microsoft Access database engine can not open or write to the" D: \ DATA \ Excel Data_v1.xlsx "file. It is already open exclusively by another user, or you must have permission to view and write on its data. "."

    I tried to give all the rights to the NT service \ SQLSERVERAGENT account but the problem Persist, to note that the file in question is not opened by another user.
    If you have an idea or a track are really taker.

    Anglaise:
    The problem is likely that the file was opened at a point when they were in some way disconnected from the network.   The file lock was held by the server, and was never released.   You can only fix that on the server itself, by using the NET FILES command, which you can research on the internet for the necessary syntax needed to close out an existing lock.

    Francaise (traducteur Google):
    Le problème est probable que le fichier a été ouvert à un moment où ils étaient en quelque sorte déconnectés du réseau. Le verrouillage du fichier a été détenu par le serveur et n'a jamais été publié. Vous ne pouvez que réparer cela sur le serveur lui-même, en utilisant la commande NET FILES, que vous pouvez rechercher sur Internet pour la syntaxe nécessaire nécessaire pour fermer un verrou existant.

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply