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

Unable to execute package after removing AttunitySSISOraAdaptersSetup software

$
0
0

I am using SSDT 2017 and database as oracle.

i have installed oracle data components for oracle client and AttunitySSISOraAdaptersSetup software, then it is working fine.

Recently i have uninstalled the  AttunitySSISOraAdaptersSetup(don't want to installl again) , after that i am not able to execute the SSIS package.

When i try to execute the package it is throwing error like 'exception deserializing the package"value does not fall within expected range" '

Thanks in advance.



sardarbaji


SSIS Variable Scope error and ForEach Loop Container Assigning Exact value instead of Fully Qualified

$
0
0

Hi People,

I have many package variables and set the value from the project parameters when I validate the package that is deployed as project it says variable is not in scope...

XML file (In Excel) to SQL Server Tables

$
0
0

Hello everyone,

I'm trying to convert XML file in Excel format to SQL Server Tables (2008 version).

Trying to figure it out using SSIS, but i can't use Excel as data source nor XML File as data source. Any help would be appreciated. 

Thanks in Advance


Thanks, Cool Mind -- If you find my answer helpful, please mark it as Answer.

Integration Services -- Error

$
0
0

I recently installed SQL Server 2016 in the company, and after a few days I noticed that I can not get into Integration Services, after checking the error, it seems to me that it is a problem in the SSMS version, the version I installed was V.18 (15.0 .18) 

For the error I had, and in searches on the internet, it seems that another version of SSMS needs to be installed, I would like to know which version would be the correct one? and if I need to uninstall this version I'm using now, because I do not know if it has any impact on the uninstallation.

Thank you


MCP - MCTS - MCTS AD

OLE DB Destination

$
0
0

Hi,

When view existing data for the table the following error I received : 

There was an error displaying the preview.
------------------------------
ADDITIONAL INFORMATION:
The system cannot find message text for message number 0x80040e51 in the message file for OraOLEDB. (OraOLEDB)

CDC for Oracle by Attunity stuck at status Logger

$
0
0

Hi, I have asked this question on the MSDN Server Tools forum (CDC for Oracle byAttunity stuck at status Logger), where I was advised to post in the SSIS forum, and on the Attunity forum (ORACDC514E:Failed to add redo log with sequence xxx) where I have not received a response.

Note: The issue below was not identified using the SSIS approach to CDC.  In any case, someone may be able to help as the issue appears to be with reading the Oracle logs...?

Oracle CDC instance has started but then goes to status LOGGER with status message "Trying to retrieve next change record from source database".

The trace shows entries

  • type ERROR ORACDC514E:Failed to add redo log with sequence xxx
    • where xxx is a value one more than the current log sequence on the Oracle database
  • type TRACE ORACDC000T:Error encountered at set position - EOF simulated
  • type ERROR ORACDC511E:The Oracle CDC failed to position

What causes this?  And what do I do to resolve it?

Thanks in advance!

SSIS Package failing with Conversion failed when converting date and/or time from character string

$
0
0

Hi,

I have a Dataflow task which takes data from one database and puts in a different database on same server.

I am using the Data Access Mode as SQL Command in OLEDB Source.

That query is trying to cast a data field but when the data field has bad data my SSIS Package is failing even if I point the error records to Error Output. can someone help me.( Pics shown below)

Error Message:

[Extract DataStoreSales [44]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E07.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E07  Description: "Conversion failed when converting date and/or time from character string.".

Message "A request to establish a connection with the transaction manager was denied" during the transaction start

$
0
0

We have two oledbproviders, both runnign on top of miscellaneous providers also with SQLOLEDB.

First provider is inproc library, which works without problems in all activieties also these requiring Transactions changing db content.

Another provider is implemented as a client-server. A client is inproc library running in the address space of its host process, and a server is a separate local32 process. The server works  exactly in the same way as the first provider only it has its own memory space. This configuration works OK by read-only access but fails on the TransactionStart with the message

error 0x8004d01d:  A request to establish a connection with the transaction manager was denied

The global transaction coordinator is active.

I also tried DtcGetTransactionManager() but then I have the same message during the invocation ofJoinTransaction().

These server however successfully processes the transactions of other providers as msjet, access, oracle. The only problem is SQLOLEDB.

The mistake occurs also when both a client and a server possesses elevated  previlegies.

What could be reasons for that?

A there ways to get additional information regarding this rejection?





script task in VS 2017 error Please suggest a way out

$
0
0

Message
Executed as user: EHNP\EH-NP-SSISUSR. Microsoft (R) SQL Server Execute Package Utility  Version 13.0.4522.0 for 64-bit  Copyright (C) 2016 Microsoft. All rights reserved.    Started:  12:21:03 PM  Error: 2019-06-12 12:21:03.54    Code: 0x00000003     Source: Script Task Script Task     Description: There was an exception while loading Script Task from XML: System.Exception: The Script Task "ST_751ee6342c4c4d5e80849219476e4411" uses version 15.0 script that is not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services.     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)  End Error  Error: 2019-06-12 12:21:03.63    Code: 0x00000003     Source: SCR - Build Error Message SCR - Build Error Message     Description: There was an exception while loading Script Task from XML: System.Exception: The Script Task "ST_d020f61254c1482484ceab3a2332e79e" uses version 15.0 script that is not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services.     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)  End Error  Error: 2019-06-12 12:21:36.24     Code: 0x00000003     Source: Script Task      Description: The Script Task is corrupted.  End Error  Error: 2019-06-12 12:21:36.24     Code: 0xC0024107     Source: Script Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:21:03 PM  Finished: 12:22:55 PM  Elapsed:  111.813 seconds.  The package execution failed.  The step failed.

what is the latest thinking on oledb, odbc, ado.net and native connectors?

$
0
0

Hi I'm running ssis 2017.  There was always debate and confusion on the relevancy , speed etc of these connector technologies in the context of ssis.  

Last I heard ODBC is faster than oledb in rdms's that support both.  Is that true?  and oledb migh be on its way out.  and not all technologies including file system even support oledb.

Its never been clear to me where ado.net and native come into the picture.  Perhaps ado.net is especially useful for scripts and maybe ssas tasks?

is there an accurate comparison and explanation of these things anywhere?  perhaps written in the last year or so?

do merge join inputs have to be sorted?

$
0
0
Hi I run 2017 developer.  I know merge inputs need to be sorted.  Is the same true for the merge join component?  I've heard and read conflicting answers.

Converting rtf to html in SSIS

$
0
0

Hi guys,

Please I need to convert rtf column to html in SSIS. 

Can someone help me with a code that hep me achieve this using script component.

Thanks


me

SSIS Connection to SAP OData v4

$
0
0
Hi Experts,

I have a SSIS to SAP  HANA XSA OData v4 issue, which i have been struggling for a while. Looking for your valuable suggest.

1. We have no issue when using web browser or postman to the odata services (both v4 and v2). Details for v4:

--Collection URL: https://hxehost:51028/catalog/

OData Service Log: 

5/14/19 10:43:18.000 PM [RTR] OUT   192.168.56.1 - - to hxehost:51028 "GET /catalog/ HTTP/1.1" 200 sent 152 in 20 by 010-045569cd-c7b2-4770-8475-f518001482c1

Collection:

{
    "@odata.context": "$metadata",
    "@odata.metadataEtag": "W/\"l4Y9nfxmXiS3w2Lh6W7806U2/5vwswKjb0opSMPEy18=\"",
    "value": [
        {
            "name": "BookInfo",
            "url": "BookInfo"
        }
    ]
}



--Metadata URL: https://hxehost:51028/catalog/$metadata

OData Service Log: 

5/14/19 10:41:52.000 PM [RTR] OUT   192.168.56.1 - - to hxehost:51028 "GET /catalog/$metadata HTTP/1.1" 200 sent 2305 in 43 by 010-045569cd-c7b2-4770-8475-f518001482c1

Metadata:

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
    <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
        <edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
    </edmx:Reference>
    <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Measures.V1.xml">
        <edmx:Include Alias="Measures" Namespace="Org.OData.Measures.V1"/>
    </edmx:Reference>
    <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml">
        <edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
    </edmx:Reference>
    <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Aggregation.V1.xml">
        <edmx:Include Alias="Aggregation" Namespace="Org.OData.Aggregation.V1"/>
    </edmx:Reference>
    <edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/462030211/Analytics.xml?api=v2">
        <edmx:Include Alias="Analytics" Namespace="com.sap.vocabularies.Analytics.v1"/>
    </edmx:Reference>
    <edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470974/Common.xml?api=v2">
        <edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
    </edmx:Reference>
    <edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470971/Communication.xml?api=v2">
        <edmx:Include Alias="Communication" Namespace="com.sap.vocabularies.Communication.v1"/>
    </edmx:Reference>
    <edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470968/UI.xml?api=v2">
        <edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
    </edmx:Reference>
    <edmx:DataServices>
        <Schema Namespace="CatalogService" xmlns="http://docs.oasis-open.org/odata/ns/edm">
            <EntityContainer Name="EntityContainer">
                <EntitySet Name="BookInfo" EntityType="CatalogService.BookInfo"/>
            </EntityContainer>
            <EntityType Name="BookInfo">
                <Key>
                    <PropertyRef Name="ID"/>
                </Key>
                <Property Name="ID" Type="Edm.Int32" Nullable="false"/>
                <Property Name="copiesSold" Type="Edm.Int32"/>
            </EntityType>
        </Schema>
    </edmx:DataServices>
</edmx:Edmx>



2. SSIS Connection Manager (ODATA_TEST). There is no issue. We can test it successfully, either apply authentication or not at the odata backend. Here is the log from OData services.

5/14/19 10:49:33.000 PM [RTR] OUT   192.168.56.1 - - to hxehost:51028 "GET /catalog/ HTTP/1.1" 200 sent 152 in 9 by 010-045569cd-c7b2-4770-8475-f518001482c1



3.  We have issue when it comes to SSIS OData source.

--When select the created OData Connection Manager, it returns error "Unable to load collection for the connection ODATA_TEST, reason: Cannot open this connection".  The log shows that SSIS sent metadata request , and the odata services returned 2305 bytes with successful status 200. Same info as in Postman or Web Browser. 

5/14/19 10:52:38.000 PM [RTR] OUT   192.168.56.1 - - to hxehost:51028 "GET /catalog/$metadata HTTP/1.1" 200 sent 2305 in 7 by 010-045569cd-c7b2-4770-8475-f518001482c1



--When select "Resource Path", it has error "An error occured when detect the document payloadkind". Detail error message go to "Microsoft.SqlServer.ManagedDTS). The odata log shows it just sent request to /catalog.

5/14/19 10:53:37.000 PM [RTR] OUT   192.168.56.1 - - to hxehost:51028 "GET /catalog/ HTTP/1.1" 200 sent 152 in 5 by 010-045569cd-c7b2-4770-8475-f518001482c1



Thanks in advance any information.

Lester


SSIS 2014 Sharepoint Online using ODATA

$
0
0

Hi,

I want to connect to Sharepoint online using ODATA in SSIS 2014. During design time the connection succeeds but during run time it doesn't due to proxy authentication failure. ODATA seems to have no property to setup proxy details. Any idea of how can this be resolved? 

Thanks,

Gayatri

Environment reference Id: NULL. error while executing the job

$
0
0

Hi 

i'm getting an error while executing the job in sql server :

nvironment reference Id: NULL.  Description: Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.  Source: .Net SqlClient Data Provider  Started:  5:00:00 AM  Finished: 5:00:30 AM  Elapsed:  30.078 seconds.  The package execution failed.  The step failed.

The package is on the integration services catalog.

Can anyone please provide me the suggestions for the same. 

thanks in advance 




What is the equivalent function present in MSSQL for Oracles SDO_UTIIL.RECTIFY_GEOMETRY function

$
0
0
What is the equivalent function present in MSSQL for Oracles SDO_UTIIL.RECTIFY_GEOMETRY function

Unable to execute package after removing AttunitySSISOraAdaptersSetup software

$
0
0

I am using SSDT 2017 version 15.9.13.

Recently i have uninstalled oracle provider by attunity.

After that, i am not able to execute my package, getting error like below

Failed to start package, Additional Information: Exception deserializing the package 'Value does not fall within the expected range'(Microsoft.DataIntegrationServices.VsIntegration)

I am using project level connection mangers, if i remove those and create at package level, than i am able to run the package.

But i need to use project level connection managers.

How to solve  this issue.

Thanks in Advance.

 

sardarbaji



Getting data from Package XML

$
0
0

Hello

I have 2 questions …

  1. The code below (Thanks Yitzhak), returns a packages task and connection manager, how do I return the contents of Execute SQL tasks?
  2. Can someone recommend a tutorial on querying XML documents in TSQL,  I thought when I submitted my original question, it would be a one-off, but now we’re using it, I’m getting more questions

DECLARE @xmlXML;

SELECT @xml= XmlDoc  

FROMOPENROWSET(BULKN'C:\ImportTest.dtsx',SINGLE_BLOB)AS Tab(XmlDoc);

-- Data Flow Tasks

;WITH XMLNAMESPACES('www.microsoft.com/SqlServer/Dts'as DTS), rs AS

(

      SELECT col.value('@refId','VARCHAR(1024)')as refId

            , col.value('@connectionManagerRefId','VARCHAR(1024)')as connectionManagerRefId

            , col.value('@connectionManagerID','VARCHAR(1024)')as connectionManagerID

            ,SUBSTRING(PARSENAME(REPLACE(col.value('@connectionManagerID','VARCHAR(1024)'),':','.'), 2), 2,LEN(PARSENAME(REPLACE(col.value('@connectionManagerID','VARCHAR(100)'),':','.'), 2))-2)AS pristineGUID

            --, TRIM('{}' FROM PARSENAME(REPLACE(col.value('@connectionManagerID', 'VARCHAR(100)'), ':', '.'), 2)) AS GUID-- SQL Server 2017 and later

      FROM @xml.nodes('(//pipeline/components/component/connections/connection)')as tab(col)

)

SELECT*FROM rs;

-- Data Flow Tasks

;WITH XMLNAMESPACES('www.microsoft.com/SqlServer/Dts'as DTS), rs AS

(

      SELECT col.value('@refId','VARCHAR(100)')as refId

            , col.value('@name','VARCHAR(1024)')as TaskName

            , col.value('@componentClassID','VARCHAR(1024)')as ExecutableType

            , col.value('(connections/connection/@connectionManagerRefId)[1]','VARCHAR(1024)')as connectionManagerRefId

            , col.value('../@*:SqlStatementSource[1]','VARCHAR(1024)')as SqlStatementSource

      FROM @xml.nodes('//pipeline/components/component')as tab(col)

)

SELECT*FROM rs;

Thanks in advande

Roy

SSIS error- Binary code for the script is not found

$
0
0

I have run into this strange SSIS error where my script component on the server keeps failing with the error -"The binary code for the script is not found. Please open the script and make sure it build correctly". The script build absolutely fine on my local machine. The script component basically refers to 3 additional DLLs , apart from the standard references that you get when you open a script component. These dlls are Microsoft.Hadoop.avro.dll, Newtonsoft.json.dll and Microsoft.Csharp.

The Microsoft.Hadoop.avro and Newtonsoft.json are the ones that I had to download and I have even registered to the GAC, both on the local and the server.

I have tried opening the components, rebuilding them, saving them and deploying them. I have set DelayValidation to False on the Data Flow. I have set "Copy local" to False for the dlls in the reference section. I have re-added the references by explicitly putting in the GAC location i.e. C:\Windows\Microsoft.Net\Assembly\GAC_MSIL.

Basically this script component acts as a destination and writes avro files.

As mentioned , everything works on my local. I have even tried downloading the packages on my local from the SSIS catalog on the server and then executing it and even that works (just to see if during the deployment process something changed or became awry). I am at a loss to explain what is missing here. By the way , this is SSIS 2016, deployed to the catalog (project deployment model) and then I am executing it through a SQL Agent job.

The Target framework of the script component is .Net 4.5.

Anybody on ideas to solve this?

If more information is required, I will be happy to provide it.




DateTime format changes post generating a CSV file from a SQL Table

$
0
0

Hello Everyone,

I need some help in generating a CSV file on top of a SQL Table were the output for the date column is

[ 2019-05-16 07:54:46.000 ].

But we are expecting the output to be like [ 2019-05-16 ].

The below one is the query that generates the output file.

------------------------------------------------------------------------------

Select Name, ID, MAX(Date) as Date

FROM dbo.Products

Group by Name, ID

Having MAX(Date)< Getdate() - 1

Order by MAX(Date)

-----------------------------------------------------------------------------

Viewing all 24688 articles
Browse latest View live


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