Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Source is Flat file.

i am using Multicast to insert data to 6 sql tables using OLEDB destination.

I selected OpenRowSet access mode for destination tables.

while executing the package with the same source different number of rows are getting inserted in each table for each execution.

I am saving error rows with error code and description where it shows error description as "NO Status available" and ErrorCode as -1071607685.

Ex: Suppose in the first time execution, Number of rows inserted to first table is 150

For second execution Number of rows inserted to same table is 145 for the same source file ,

and for your information before each execution I m deleting the complete data from table.
Posted
Comments
Suvendu Shekhar Giri 28-Nov-15 0:44am    
Can you share the data for 146th row and share the table structure.
Member 12093351 30-Nov-15 1:16am    
My 6 tables structure:


CREATE TABLE [dbo].[Rx_Claim](
[CustomerID] [int] NOT NULL,
[ClaimID] [int] NOT NULL,
[PrescriptionServiceReferenceNumberQualifier] [nvarchar](50) NULL,
[PrescriptionServiceReferenceNumber] [nvarchar](50) NULL,
[ProductServiceIDQualifier] [nvarchar](50) NULL,
[ProductServiceID] [nvarchar](50) NULL,
[QuantityDispensed] [float] NULL,
[FillNumber] [nvarchar](50) NULL,
[DaysSupplied] [float] NULL,
[CompoundCode] [nvarchar](50) NULL,
[DispenseAsWrittenCode] [nvarchar](50) NULL,
[DatePrescriptionWritten] [date] NULL,
[PrescriptionOriginCode] [nvarchar](50) NULL,
[SubmissionClarificationCodeCount] [float] NULL,
[SubmissionClarificationCode] [nvarchar](50) NULL,
[OtherCoverageCode] [nvarchar](50) NULL,
[LevelOfService] [nvarchar](50) NULL,
[PriorAuthorizationTypeCode] [nvarchar](50) NULL,
[PriorAuthorizationNumberSubmitted] [nvarchar](50) NULL,
[Formulary] [nvarchar](50) NULL,
[SequenceNumber] [nvarchar](50) NULL,
[RetailMailOrder] [nvarchar](50) NULL,
[DrugName] [nvarchar](50) NULL,
CONSTRAINT [PK_Claim] PRIMARY KEY CLUSTERED
(
[CustomerID] ASC,
[ClaimID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]






CREATE TABLE [dbo].[Rx_Clinical](
[CustomerID] [int] NOT NULL,
[ClinicalID] [int] NOT NULL,
[DiagnosisCodeCount] [float] NULL,
[DiagnosisCodeQualifier] [nvarchar](50) NULL,
[DiagnosisCode] [nvarchar](50) NULL,
[ClinicalInformationCounter] [nvarchar](50) NULL,
[MeasurementDate] [date] NULL,
[MeasurementTime] [nvarchar](50) NULL,
[MeasurementDimension] [nvarchar](50) NULL,
[MeasurementUnit] [nvarchar](50) NULL,
[MeasurementValue] [float] NULL,
CONSTRAINT [PK_Clinical] PRIMARY KEY CLUSTERED
(
[CustomerID] ASC,
[ClinicalID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]




CREATE TABLE [dbo].[Rx_Compound](
[CustomerID] [int] NOT NULL,
[CompoundID] [int] NOT NULL,
[CompoundDosageFormDescriptionCode] [nvarchar](50) NULL,
[CompoundDispensingUnitFormIndicator] [nvarchar](50) NULL,
[CompoundIngredientComponentCount] [float] NULL,
[CompoundProductIDQualifier] [nvarchar](50) NULL,
[CompoundProductID] [nvarchar](50) NULL,
[CompoundIngredientQuantity] [float] NULL,
[CompoundIngredientBasisOfCostDetermination] [nvarchar](50) NULL,
[BG] [nvarchar](50) NULL,
[NABPNumber] [nvarchar](50) NULL,
CONSTRAINT [PK_Compound] PRIMARY KEY CLUSTERED
(
[CustomerID] ASC,
[CompoundID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]




CREATE TABLE [dbo].[Rx_Insurance](
[CustomerID] [int] NOT NULL,
[InsuranceID] [int] NOT NULL,
[PartyId] [int] NULL,
[RoleTypeId] [int] NULL,
[UdCompanyId] [nvarchar](20) NULL,
[UdGroupId] [nvarchar](20) NULL,
[UdDivisionId] [nvarchar](20) NULL,
[UdIndividualId] [nvarchar](20) NULL,
[UdDependentId] [nvarchar](20) NULL,
[UdAlternateIndId] [nvarchar](20) NULL,
[UdAlternateDepId] [nvarchar](20) NULL,
[CardholderID] [nvarchar](50) NULL,
[CardholderFirstName] [nvarchar](50) NULL,
[CardholderLastName] [nvarchar](50) NULL,
[CardholderMiddleName] [nvarchar](50) NULL,
[GroupID] [nvarchar](50) NULL,
[LocationCode] [nvarchar](50) NULL,
CONSTRAINT [PK_Insurance] PRIMARY KEY CLUSTERED
(
[CustomerID] ASC,
[InsuranceID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]




CREATE TABLE [dbo].[Rx_Patient](
[CustomerID] [int] NOT NULL,
[PatientID] [int] NOT NULL,
[PartyId] [int] NULL,
[RoleTypeId] [int] NULL,
[InsuredPartyId] [int] NULL,
[InsuredRoleTypeId] [int] NULL,
[UdCompanyId] [nvarchar](20) NULL,
[UdGroupId] [nvarchar](20) NULL,
[UdDivisionId] [nvarchar](20) NULL,
[UdIndividualId] [nvarchar](20) NULL,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900