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

Import NULL GUID - SSIS Help needed

$
0
0

Hi Everyone,


I am a newbie here. I am trying to import data from flat file to SQL DB using SSIS. I have GUID data which i am importing into uniqueidentifier field.

My flow is as "Source File" -> Derived Column (Convert to GUID) -> Data Conversion -> OLEDB destination

It works fine as far as there is a valid GUID data in the source, but it fails when there is a "NULL / Empty". However i made that field to ignore failure and it successfully passed by.

But I feel it's not an optimal solution to ignore the error and pass through. Please advice.

Any suggestions would be much appreciated except "Not Possible :P" as I seen enough.

I tired --  User == "" ?  "" :
(DT_GUID)("{" + User + "}")

but it has a syntax error

Version using SQL 2012.


Thanks in advance,
newbie
:)



Viewing all articles
Browse latest Browse all 24688


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