SSIS query to Oracle date column - sql-server

On Windows 2016 server, SQL Server 2016 and VSDT 2017. Oracle start_date value (yyyy-mm-dd) but defined vachar2(10).
select ...
start_date
...
[OLE DB Source] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E14 Description: "ORA-01861: literal does not match format string".
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-01861: literal does not match format string".
I set it with Unicode string [DT_WSTR] in input/output column properties. There are other columns defined as varchar2 in same query with no issue. I get an "ORA-1861" error when I tried using TO_DATE.

Related

SSIS 2012 development error while selecting oledb destination table in dataflow task

I am in dataflow destination (OLE DB Destination) screen. I am able to connect to the database and I see the destination tables in the dropdown.
When I click the 'Mappings' option the left, or if I click on 'View existing data' button, I get an error :
Validation error. Data Flow Task: Data Flow Task: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Unspecified error". An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Communication link failure".
Validation error. Data Flow Task OLE DB Destination [31]: Failed to open a fastload rowset for "[dbo].[xxxxxxxx]". Check that the object exists in the database. xxxxxxxxxxx.dtsx 0 0
Resolved after I closed and reopened Visual Studio. Hadi's solution looks like a good permanent fix.

Error In ssis Oledb Source

I am trying to get data from oleDB and load it into Excel. But when I put sql Command in the OleDB Source it is giving me the following error. But the Command works fine in SQl Server.
SQL Statement : Exec ImpGetOrderDefaults_Ins_PatLoc_Site '0001','-1'
TITLE: Microsoft Visual Studio
Error at Ins_PatLoc_Sites [OLE DB Source [16]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Incorrect syntax near the keyword 'AND'.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Incorrect syntax near the keyword 'WHERE'.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Incorrect syntax near the keyword 'WHERE'.".
Error at Ins_PatLoc_Sites [OLE DB Source [16]]: Unable to retrieve column information from the data source. Make sure your target table in the database is available.
ADDITIONAL INFORMATION:
Exception from HRESULT: 0xC020204A (Microsoft.SqlServer.DTSPipelineWrap)
BUTTONS:
OK

SQL Server Export To Excel 2010 bigger 255 character

I'm trying to export a SQL server table to an Excel .xlsx file, but when bigger 255 character row, I get an error:
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred.
Error code: 0x00040EDA.
An OLE DB record is available.
Source: "Microsoft Office Access Database Engine"
Hresult: 0x80040E21
Description: "The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.".
Could you share any recommendation about fixing this problem?

Error in SSIS when trying to move package from .txt to SQL Server

I'm trying to move files from .txt to SQL Server and got these errors
[OLE DB Destination [35]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid character value for cast specification".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid character value for cast specification".
[OLE DB Destination [35]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[effdate] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value could not be converted because of a potential loss of data.".

Using Tablename as variable in ssis

I am trying to build a dynamic export using SSIS.
I set up a variable TableName-string and scoped to the package.
I set up a sql task to find the table name I wanted and mapped the result set to above variable. (This task completes fine)
Then I have added another variable as SQL("SELECT * FROM [CRDATA].[dbo]."+#[User::TableName]) -string and scoped to the package and set up a dataflow task. Inside dataflow I add an OLEDB source and set up the input to SQL Variable and selected the above variable. This task fails.
The Error is:
Error at Data Flow Task [OLE DB Source [1]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0
Hresult: 0x80040E14 Description: "Statement(s) could not be prepared..
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0
Hresult: 0x80040E14 Description: "Incorrect syntax near '+'..
------------------------------
ADDITIONAL INFORMATION:
Exception from HRESULT: 0xC0202009 (Microsoft.SqlServer.DTSPipelineWrap)
I have set up delay validation to true on the sql task, dataflow and set the validatemetadata to false in the OLEDB Source property.
I have a feeling I made some mistake in the SQL Variable. Any help here would be very much appreciated.

Resources