Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

Excel file import fails with one user

$
0
0

Hi,

I have SSIS package that loops through all excel files in a folder and reads data to target sql table.

This is running very well if I run from SSISDB or Agentjob as me(current user).

I have created database credential and proxy using the same credentiails. Recently, we got service account. So, I have created new credential and proxy using service account.

When I run the package using service account, I am getting error "The file is readonly and already opened by another user" but actuall runs well with my user.

The service account has access to that folder.

What could be the issue?

Thanks in advance


SSIS Package Failing After Upgrade to Office 365

$
0
0

I have an SSIS package that connects both to Excel and SQL Server that worked fine up until our office upgraded to Office 365. I created "Connection Managers" for both of the connections (Excel and SQL Server) after researching and finding this might be the solution, but to no avail. I've adjusted the Properties Configuration Properties/Debugging and set Run64BitRuntime to False - another thread I found indicated to do this. I am not experienced in SSIS beyond just running packages - I inherited this from a co-worker when they retired. Following is the error message:

SSIS package "c:\docusign bh pdv triage\sql server\ssis\docusign bh pdv macro output\BH_PDVM_OutputToExcel.dtsx" starting.
Executing ExecutePackageTask: c:\docusign bh pdv triage\sql server\ssis\docusign bh pdv macro output\BH_PDVM_CreateExcelWorkbook.dtsx
Executing ExecutePackageTask: c:\docusign bh pdv triage\sql server\ssis\docusign bh pdv macro output\BH_PDVM_CreateExcelFileFromTemplateFile.dtsx
Executing ExecutePackageTask: c:\docusign bh pdv triage\sql server\ssis\docusign bh pdv macro output\BH_PDVM_CreateExcelWorksheets.dtsx
Information: 0x4004300A at Create Worksheet 1099, SSIS.Pipeline: Validation phase is beginning.
Error: 0xC0202009 at BH_PDVM_CreateExcelWorksheets, Connection manager "Excel Template": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "External table is not in the expected format.".
Error: 0xC020801C at Create Worksheet 1099, WORKSHEET - 1099 [147]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Template" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error: 0xC0047017 at Create Worksheet 1099, SSIS.Pipeline: WORKSHEET - 1099 failed validation and returned error code 0xC020801C.
Error: 0xC004700C at Create Worksheet 1099, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Create Worksheet 1099: There were errors during task validation.
Error: 0xC0022102 at EXEC PKG BH_PDVM_CreateExcelWorksheets: Error 0xC0012050 while executing package from project reference package "BH_PDVM_CreateExcelWorksheets.dtsx". Package failed validation from the ExecutePackage task. The package cannot run.
.
Task failed: EXEC PKG BH_PDVM_CreateExcelWorksheets
Warning: 0x80019002 at BH_PDVM_CreateExcelWorkbook: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (6) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
Task failed: EXEC PKG BH_PDVM_CreateExcelWorkbook
Warning: 0x80019002 at For Each Batch Macro File: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (6) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
Warning: 0x80019002 at BH_PDVM_OutputToExcel: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (6) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "c:\docusign bh pdv triage\sql server\ssis\docusign bh pdv macro output\BH_PDVM_OutputToExcel.dtsx" finished: Failure.
The program '[16304] DtsDebugHost.exe: DTS' has exited with code 0 (0x0).

Any help/insight would be much appreciated.

SSIS Importing Excel .xlsx file onto SQL server

$
0
0
Hi, I am importing and .xlsx and the SSIS package does not fail, there are no error messages what so ever . But it is only loading a portion of the total file ..
There are over 1,000 records in the file, but it only loads 964 .. Again no failure. .. I have tried a number of times and ways and always stops at 964 . If you copy the content of the .xlsx into a new excel and save it , it then loads the full file. Any ideas on how to fix this issue ? thanks

laptop dtsconfig causing azure ssis runtime error

$
0
0

Hi,

     This is really odd and I can replicate this.   I start with a vs 2015 built ssis package.  We have recently upgraded to vs 2017 enterprise, ssdt 15.1.x, ssis 15.x  if I change the label on a task and move the .dtsx file to azure, it runs, so a vs 2017 built .dtsx file runs on our azure.   If I delete one of the current dtsconfigs and add a new one, move that package to azure and run it, it fails with a teradata login error.  Can anyone think of a way that specifying a laptop dtsconfig file can cause an azure runtime execution error?  The dtsconfig files in the azure environment are completely different than our laptop dtsconfig files, we've used them in 1000's of executions so they seem correct.

     In my mind a dtsconfig file just sets variable values for a given ssis session or execution.  A dtsconfig file does not affect the executing logic or code in a .dtsx package.   How specifying a dtsconfig file (I don't even exit and get back in to get the values from the laptop dtsconfig) can affect the azure runtime environment is beyond me.

     Our Azure is the in house kind of Azure, probably pretty old (a couple of years old).

Not able to see ODBC 64bit drivers in SSIS connection manager drop-down list.

$
0
0
I am not able to see ODBC 64bit drivers in SSIS connection manager drop-down list? only 32bit drivers are appearing in Visual Studio 2017 SSIS project. Any solution to see list of available DSN 64bit ODBC drivers?

error when trying to connect to flat file source

$
0
0

Hi,

I have  just installed VS SSDT 2017 and trying to connect to a csv flat file.

I am getting the following error: "flat file source output column requires a code page to be set but a zero value was passed".

I know that the issue is probably due to default code page not set correctly - but I cant find where to set it.

Thanks,

Dani

Running SSIS package once a month

$
0
0

I have around 10 packages, one of which needs to be run once a month.

I don't have SQL server agent in my SSMS, was wondering if at all it is possible to schedule a package to run once a month(maybe with the help of procedures). As of now don't have any restrictions on what the date should be, so lets assume it has to run at the start of the month. Please help.

Upgrade and migrate SSIS 2017 to 2019 SQL server --deploy errror

$
0
0

I am working on to migrate databases from a SQL server 2017 to 2019 new SQL server.

Other databases work fine. But I have errors when running packages in the SSIS catalog.

So I though I  need to upgrade the packages in MS Data tool first.

I open VS 2019 data tool, and changed the project that has these packages to deploy to TargetServerVersion SQL server 2019.

I  can see it  converts those packages, I guess  that is the process of upgrade packages.

By the way after that, I also tried Right click the SSIS packages folder, and click upgrade all packages, but there is existing packages showing there, so I guess the packages have already been upgraded.

Now I build the project and try to deploy it to my new server.  But at last step of the deployment wizard, it says:

TITLE: SQL Server Integration Services
------------------------------

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: 
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException: 
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean 

.....

What does the  bolded errror message mean? 

How to fix this.

Thanks in advance

 

Thanks


cannot upgrade SSIS catalog to 2019 after migration from 2017 server

$
0
0

I move a SSIS database and other user databases  from SQL server 2017 to a new server 2019.

Other databases work fine. SSISDB does not work as expected.

I restored the SSIS database and master key, successfully.

But When I try to run database upgrade from SSMS by right click SSISDB -- Database upgrade I got an error:

The system cannot find the file specified (System)

Then I tried from the wizard directory on the file system

D:\Program Files\Microsoft SQL Server\150\DTS\Binn\ISDBUpgradeWizard, 

TITLE: SQL Server Integration Services
------------------------------

The version of the sql server instance (15.0.4043.16) doesn't match with the version of the upgrade tool(15.0.2000). (Microsoft.SqlServer.IntegrationServices.ISServerDBUpgrade)

So I still cannot upgrade the SSIS from 2017 to 2019.

If I validate the package it will gives the error noting 2019 not available still 2017:

TITLE: Microsoft SQL Server Management Studio
------------------------------

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
(Microsoft SQL Server, Error: 10314)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=15.00.4043&EvtSrc=MSSQLServer&EvtID=10314&LinkId=20476

Please help how to fix this,

 

Thanks much in advance


Thanks

Retrieving data from Salesforce, but DT_WSTR error in SSIS

$
0
0

I am trying to retrieve data from salesforce via SSIS per a specific date value which keeps changing as only new data is to be loaded. So i have a variable in the Execute SQL task as AccountLastModdate = select max(lastmodifieddate) from Account. Within the Salesforce Source object, i have the statement/expression as "select accountnumber, accountsource from Account where lastmodifieddate >"+ @[User::AccountLastModDate] but i keep getting the below error. 


The AccountlastModdate is fed by this query SELECT CONVERT(NVARCHAR,max(lastmodifieddate),126) from account as SF needs the date to be in a specific format. From reading in forums, issue seems to be datatype related. I see that the variable is of datetime , but it is in the format as per Salesforce. Looks like i've two issue, (1) is with the datetime conversion and (2) is the syntax for the expression. Please advise on how to resolve this. 

thank you.

Job failed with error when calling SSIS package in sql agent job.

$
0
0

Hello,

I have created a ssis packages using server administrator login in SSIS 2016  and i deployed that project in to ssis integration catalog.  

then i created a job and calling these packages in to sql agent job.But while executing that job i am getting below error.

may i know what i the issue here. any one can help to fix the issue.

Message
Executed as user: XXXXERPServer\Administrator. Microsoft (R) SQL Server Execute Package Utility  Version 13.0.5026.0 for 64-bit  Copyright (C) 2016 Microsoft. All rights reserved.    Started:  9:52:13 AM  Package execution on IS Server failed. Execution ID: 215279, Execution Status:4.  To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report  Started:  9:52:13 AM  Finished: 9:52:19 AM  Elapsed:  5.75 seconds.  The package execution failed.  The step failed.

Integration of corporate email voting with SQL database

$
0
0

Hi, is anyone familiar with development of integration between corporate Outlook email voting buttons with logging in SQL database?
Process involves sending automatized voting email by ITEM_ID (probably part of subject email) to multiple voters (executive board members). This SQL table represents voting topics aka ITEM_ID's. After each of them votes, SQL is logging their answers with time, answer and ITEM_ID because emails are sent frequently based on ITEM_ID.  

I searched and found only possible solutions as separate web page and email with links, or .NET application.

kind regards,

Unable to connect to SSIS SSRS and SSAS

$
0
0

I have installed sqlexpress with sql server 2014 and MSMS 2018.

I tried to connect SSIS and getting error as unable to connect to server and unable to find the server

As per windows help document, I gave my computer name still the error.

If the error pertains to the version, where can I get the same version for both since I am unable to locate the same version for both

If it is different, what and where is the problem and how to resolve it?

how to pass SSIS parameter to fetch the every month end date?

$
0
0

Hi All,

right now i am using for loop container to load everyday data , below is the parameter i am using.

@[User::SelectDate4]<=dateadd("DAY",-1,getdate())

now ,actually my requirement got changed and we want run this every month last date , it has to loop every month last date for the particular year.

can you please advise me to do this.

Thanks ,

Hi Respected community

$
0
0

I am a fresher in ssis,

Not sure if this community is active or not?


Unable to connect to SSIS SSRS and SSAS

$
0
0

Trying to connect with SSIS using SSMS but ok button is not getting enabled and grayed out. What could be the problem?

Slowly changing dimensions and ODBC connection

$
0
0

Hi,

I'm trying to implement a slowly changing dimension (SCD) with the wizard but noticed that it only allows for OLE DB type of connections. Since I have PostgresQL with an ODBC connection, I was looking at options to make this happen.

I was thinking of creating one myself as I read that the standard SCD component does not scale well with dimensions that for example have 10-30 million records however most of the custom made solutions that involve lookups and conditional splits in the end also require an OLE DB object to perform an update or insert statement that an ODBC destination component does not offer (at least I didn't see any option for that). 

Is the only solution to get a commercial license for an OLE DB connector to PostgresQL (corporate standard)?

Roland

Microsoft.ACE.OLEDB.12.0 is not registered

$
0
0

Dear All

I know this issue has been discussed many times, however I went through many of them and it still does not work. 

I am trying to create package in SSDT to import Excel file (tries xls and xlsx)  however in Connection Manager "No tables or Views could be loaded" and when trying to use SQL Command I can see following error: 

"Exception from HRESULT: 0xC020801C
Error at Package [Connection manager "Excel Connection Manager"]: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered. If the 32-bit driver is not installed, run the package in 64-bit mode. Error code: 0x00000000.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".

Error at Package [Connection manager "Excel Connection Manager"]: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=219816

Error at Data Flow Task [Excel Source [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager 1" failed with error code 0xC0209302.  There may be error messages posted before this with more information on why the AcquireConnection method call failed."

I have installed Microsoft Access Database Engine 2016 32 bit on my local Machine (the same as SSFT tools). 

I was trying to change Run64BitRuntime to False in SSIS project.

I have Office 365 32 bit installed.

Can you please help what can be the issue here? 

SSIS Expression to load data for last day of every month

$
0
0

Hi All,

i have a requirement to load data for last day of every month in loop like 10 years data.for that i have created a varaible 

[selectdate]='3/31/2005' , so here it need to start execute from 31st March 2005 and next 30th April 2005 , 31st may 2005 so on.....below is the screenshot for forloop container. would you please suggest me what expression i need to use in assign expresiion to execute like end of evry month. right now i am using below expression , but it is loading continuously '3/31/2005".


@[User::SelectDate]=(DT_DBTIMESTAMP)(DT_DBDATE)DATEADD("d", -DAY(@[User::SelectDate]), DATEADD("m", 1, @[User::SelectDate]))

SSIS Error Oracle.DataAccess.Client.OracleConnection

$
0
0

Hi,

I'm havinng an error on a SSIS job that execute a select query from Oracle.and returns this error message:

ADO NET Source has failed to acquire the connection {A7300166-E45B-403B-A1EC-E0BDE51ED35A} 
with the following error message: "The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.".

After 4 days that I deployed the package, it was executing perfectly and then suddenly on day 5 any select from Oracle returns this error above. And the provider used is ODP.Net.


Any ideia what could be the error? Could it be the Server Oracle (Origin) or the Sql Server (Destination) ?


Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>