question

Jesper Klügel avatar image
Jesper Klügel asked

Import Data from an other database after creating it from a script of the original database

I am trying to import data from an other database.The database has been created from a script of the original database. I receive the following error message from inport of some the tables, not all. Coult it be som dependency that are the reason why i could not import th data? I have tried to import data from the original database to a new database that are nor generated by a script and that works fine.

The error message:

TITLE: Microsoft.SqlServer.DtsTransferProvider

ERROR : errorCode=-1071636471 description=SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "XML Validation: XML instance must be a document.". helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476


BUTTONS:

OK

  • Copying to [Stages].[Site] (Error) Messages ERROR : errorCode=-1071636471 description=SSIS Error Code DTS_E_OLEDBERROR.
    An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available.
    Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "XML Validation: XML instance must be a document. ". helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

ERROR : errorCode=-1073450974 description=SSIS Error Code DTS_E_PROCESSINPUTFAILED.
The ProcessInput method on component "OLE DB Destination" (2) failed with error code 0xC0202009. 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.

helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

ERROR : errorCode=-1073450975 description=SSIS Error Code DTS_E_THREADFAILED.
Thread "WorkThread0" has exited with error code 0xC0202009. There may be error messages posted before this with more information on why the thread has exited.

helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

Please help me.

sql-server-2005xmlimport-data
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Grant Fritchey avatar image
Grant Fritchey answered

It's hard to tell for sure, but it sounds like you're trying to import XML data into the XML data type and the data you are attempting to import is malformed. I'd suggest taking a look at either the original data to see if it was imported without a schema check originally or if something is wrong with the file you are importing from that might be causing the XML to be incorrectly formed.

10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.