Hi,
I've created some new security roles with associated privileges and permissions in a test environment. I now want to export them and import them to a higher environment.
I've exported the following entities
- System security role
- System security privilege
- System security permissions
But when I attempt to import using those 3 entities I get the following 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: "Violation of PRIMARY KEY constraint 'I_12192STAGINGIDX'. Cannot insert duplicate key in object 'dbo.SYSTEMSECURITYROLESTAGING'. The duplicate key value is [PII data removed].".
SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (47) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (60). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
Failed to insert record into staging table. The keys of the record are DEFINITIONGROUP, EXECUTIONID, PARTITION, SECURITYROLEIDENTIFIER. Duplicate records must be removed from the file prior to import.-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: "Violation of PRIMARY KEY constraint 'I_12192STAGINGIDX'. Cannot insert duplicate key in object 'dbo.SYSTEMSECURITYROLESTAGING'. The duplicate key value is [PII data removed].".
'0' 'System Security Role' record(s) inserted in staging
I've tried importing with and without the SECURITYROLEIDENTIFIER and SECURITYPRIVILEGEIDENTIFIER fields populated with exported data but no luck either way.
Any suggestions?
Thanks