SSIS Wizard new mapping file not found

Marshall, Richard J 1 Reputation point
2022-02-14T20:11:32.557+00:00

Hi

I am attempting to migrate a Sybase ASA database to SQL Server using the 'SQL Import and Export Wizard' within Visual Studio 2019. I am able to run the wizard and create a package but the datatype mappings are not correct, e.g. datetime is mapped to smalldatetime. I have created two new mapping files (NetODBCToSSIS10.xml and NetODBCToMSSQL.xml) but I have been unable to get the wizard to recognize the new files.

I am using the following settings in the wizard:

  1. Data source: DSN = Sybase DSN (created using the 'SQL Anywhere 17' ODBC driver)
  2. Destination: MS OLE DB Provider for SQL Server
  3. Copy data from one or more tables or views
  4. All tables are displayed but the datatype mappings are not correct so I am unable to import the data.

The Wizard displays a dialog showing the following:

[Source Information]
Cannot locate the mapping file to map the provider types to SSIS types

[Destination Information]
Destination Location : localhost
Destination Provider : SQLOLEDB
Mapping file (to SSIS type): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\SSIS\150\MappingFiles\MSSQLToSSIS10.XML

[Conversion Table]
SSIS conversion file: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\SSIS\150\binn\DtwTypeConversion.xml

I have tried modifying the 'SourceType' at the start of the mapping files to include 'Sap.Data.SQLAnywhere.SAConnection' and 'System.Data.Odbc.OdbcConnection' but it is not found.

The following asks a similar question but there is no satisfactory response:

https://social.msdn.microsoft.com/Forums/en-US/dfce5ec6-c862-416f-b06d-eb6078e9958b/how-to-add-a-new-mapping-file?forum=sqlintegrationservices

Please let me know what I need to do to get the new mapping files recognized.

Regards,
Richard

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,590 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 37,441 Reputation points
    2022-02-15T07:11:52.593+00:00

    Hi @Marshall, Richard J ,

    If you edit an existing mapping file, or add a new mapping file to the folder, you have to close and reopen the SQL Server Import and Export Wizard or SQL Server Data Tools (SSDT) to load the new or changed mapping file.

    See data-type-mapping-in-the-sql-server-import-and-export-wizard.

    Also try to change the Destination Provider to SQL Server Native Client 11.0 to see if it could be helpful.

    Here is a same thread you may take a reference.

    trying-to-add-odbc-to-ssis11-xml-mapping-file-in-ssms

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.