- Remove From My Forums
-
Question
-
Hi,
I am using below sql command to import the excel file (created in excel 2007).
SELECt * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0′,’Excel 12.0;Database=C:File1.xlsx’, ‘SELECT * FROM [Sheet1$]’);
This command is working fine on the machine which have the office 2007. But, I am getting following error message when I run this command on the server on which the office 2007 is not installed:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider «Microsoft.ACE.OLEDB.12.0» has not been registered.
Is there is need to install the office 2007 on the server. or there is any alternative for this.
Thanks.
Answers
-
You can download and install only the ACE provider from the following link, this supports office 2007 files both xls and xlsx file.http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
- Remove From My Forums
-
Question
-
Hi,
I am using below sql command to import the excel file (created in excel 2007).
SELECt * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0′,’Excel 12.0;Database=C:File1.xlsx’, ‘SELECT * FROM [Sheet1$]’);
This command is working fine on the machine which have the office 2007. But, I am getting following error message when I run this command on the server on which the office 2007 is not installed:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider «Microsoft.ACE.OLEDB.12.0» has not been registered.
Is there is need to install the office 2007 on the server. or there is any alternative for this.
Thanks.
Answers
-
You can download and install only the ACE provider from the following link, this supports office 2007 files both xls and xlsx file.http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
-
All forum topics -
Previous Topic -
Next Topic
![]()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2017
08:48 AM
Hello all.
I have this strange error. I say strange because I can refresh the data on the Query Editor but I can’t connect it to the model when I do «Apply». I get the 0x80040E4E error and I have literally no idea why. I just know it started occuring after I grabbed data from a folder and I created a function to get the filename in a column.
Any thoughts?
Thanks in advance!
Error
Funtion
Message 1 of 31
324,096 Views
1 ACCEPTED SOLUTION
![]()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2017
06:32 AM
@v-qiuyu-msft
After messing around with the file, I solved it. It has to do with character support, as I had cubic and degree sign on the code and it was read as «?». I changed the encoding to Western Europe and it is solved. But it was not intuitive, as the error code did not point to this. Anyway, I hope this may help someone with the same problem.
Thanks for your support.
Message 4 of 31
335,440 Views
-
All forum topics -
Previous Topic -
Next Topic
30 REPLIES 30
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022
08:10 AM
I’m pulling from a Dataflow and getting this same error and the same vaguely helpful error message.
Would be excellent if the error identified the fields in question.
Whatever is going wrong here is also not being caught by Table.RemoveRowsWithErrors() either.
Message 31 of 31
71,491 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022
08:40 AM
I had the same issue, i had duplicated a table iun power query and this issue poppedup.
It worked for me when i cleared everything in the duplicated table advanced editor and replaced the content from first table(which i duplicated from), then it worked.
Hope this helps.
Message 30 of 31
83,586 Views
![]()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022
06:22 PM
I followed these steps
Step 1: Go to the Model section from the left side of the Power BI Desktop
Step 2: Delete all the relationships amongst the tables that have been created by Power BI itself while you were working with the Power Query Editor
Step 3: Click ‘Refresh visual and data’ option in Home (besides the Transform Data button)
It worked and loaded the new data and also applied the automations done in the query editor.
Message 24 of 31
102,262 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2022
10:42 AM
This worked for us as well. In addition to the OLE ODBC error we were getting a note about not being able to find data sources we had deleted months ago and were not mentioned anywhere in the model. Thanks!
Message 28 of 31
67,443 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2021
01:15 PM
Hey there, I ended up through a naive search on the same issue. The ‘Solution’ post gave me the right indication. It turned out be cause by the filename of the csv files, I was collecting from a sharepoint. Renaming the files, using alphanumeric characters only, solved it for me.
Message 23 of 31
192,270 Views
![]()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019
11:43 PM
Hi,
I came across a similar problem but its source was duplicate data on a column that created a relationship with a different table. Even worse, he didn’t appear on the table causing the error.
Message 21 of 31
206,867 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017
10:47 PM
I am trying to get data from Google Analytics to Power Bi but for page and page views field I am getting ‘ failed to save modifications to the sever . Error returned: ‘OLE DB or ODBC error: [DataSource.Error] There was an internal error.. ;. Can you please help me with this issue
Message 20 of 31
321,385 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2017
11:03 PM
Hi @Anonymous,
It seems that the error throws out when you apply the changes, right? In your scenario, please try to update the desktop to the version 2.42.4611.901 released in 1/20/2017.
If issue persists, please try to share the sample folder data source and sample .pbix file to reproduce the issue if possible.
Best Regards,
Qiuyun Yu
Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Message 2 of 31
323,403 Views
![]()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2017
06:32 AM
@v-qiuyu-msft
After messing around with the file, I solved it. It has to do with character support, as I had cubic and degree sign on the code and it was read as «?». I changed the encoding to Western Europe and it is solved. But it was not intuitive, as the error code did not point to this. Anyway, I hope this may help someone with the same problem.
Thanks for your support.
Message 4 of 31
335,441 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2022
02:23 AM
I don’t understand this solution but have a similar problem. One of my errors is
So no mention of any column. And by the way there are no data type changes in the query editor.
Do you have any ideas how to fix? I may post this in a few places.
Thanks
Rob
Message 17 of 31
62,284 Views
![]()
- Remove From My Forums
-
Question
-
Hi,
I am using below sql command to import the excel file (created in excel 2007).
SELECt * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0′,’Excel 12.0;Database=C:File1.xlsx’, ‘SELECT * FROM [Sheet1$]’);
This command is working fine on the machine which have the office 2007. But, I am getting following error message when I run this command on the server on which the office 2007 is not installed:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider «Microsoft.ACE.OLEDB.12.0» has not been registered.
Is there is need to install the office 2007 on the server. or there is any alternative for this.
Thanks.
Answers
-
You can download and install only the ACE provider from the following link, this supports office 2007 files both xls and xlsx file.http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
- Remove From My Forums
-
Question
-
Hi,
I am using below sql command to import the excel file (created in excel 2007).
SELECt * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0′,’Excel 12.0;Database=C:File1.xlsx’, ‘SELECT * FROM [Sheet1$]’);
This command is working fine on the machine which have the office 2007. But, I am getting following error message when I run this command on the server on which the office 2007 is not installed:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider «Microsoft.ACE.OLEDB.12.0» has not been registered.
Is there is need to install the office 2007 on the server. or there is any alternative for this.
Thanks.
Answers
-
You can download and install only the ACE provider from the following link, this supports office 2007 files both xls and xlsx file.http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
Как разрешить «Не удалось найти устанавливаемый ISAM». ошибка для поставщика OLE DB «Microsoft.ACE.OLEDB.12.0»
Яндекс.Директ
СМС рассылка без абонплаты!
Решения LoRaWAN для ЖКХ и города
Получите Допуск СРО! Акция — От 55т.р!
Я пытаюсь импортировать данные из файлов Excel 2007 (.xlsx) в SQL Server 2008 с помощью команды T-SQL OpenRowset() с поставщиком OLE DB «Microsoft.ACE.OLEDB.12.0» , и я получаю постоянная ошибка «Не удалось найти устанавливаемый ISAM». Все аппаратные средства 32-разрядные.
[Пересмотрено 1/10/12, чтобы попытаться более резко сосредоточиться на аномалиях)
Следующий оператор T-SQL создает ошибку:
SELECT * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0’,
‘Data Source=C:workTestData.xlsx;Extended Properties=»Excel 12.0 XML;HDR=YES»‘,
‘SELECT * FROM [Sheet1$]’
)
Если я сохраню файл Excel в формате Excel 97-2003 (.xls) и использую более старый поставщик Microsoft.Jet.OLEDB.4.0 для импорта данных, он работает нормально. Это заставляет меня думать, что это не проблема безопасности или другая экологическая проблема.
SELECT * FROM OPENROWSET(‘Microsoft.Jet.OLEDB.4.0’,
‘Excel 8.0;Database=C:workTestData.xls;HDR=YES’,
‘SELECT * FROM [Sheet1$]’
)
Однако, когда я пытаюсь создать файл *.xls с поставщиком Microsoft.ACE.OLEDB.12.0, который должен быть обратно совместим с форматом *.xls, он снова терпит неудачу с той же ошибкой:
SELECT * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0’,
‘Data Source=C:workTestData.xls;Extended Properties=»Excel 8.0;HDR=YES»;’,
‘SELECT * FROM [Sheet1$]’
)
Кроме того, интересно, когда я использую мастер SSMS «Импорт данных…», он отлично работает. Я сохранил вывод мастера импорта данных в виде пакета SSIS и просмотрел файл SSIS, чтобы попытаться выяснить, как он работает, и он успешно использует поставщика Microsoft.ACE.OLEDB.12.0. Это строка соединения из пакета SSIS:
<DTS:Property DTS:Name=»ConnectionString»>
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:workTestData.xlsx;Extended Properties=»Excel 12.0 XML;HDR=YES»;
</DTS:Property>
Я также выполнил соответствующую конфигурацию SQL Server, чтобы разрешить распространенный запрос OPENROWSET:
sp_configure ‘show advanced options’, 1
reconfigure
GO
sp_configure ‘Ad Hoc Distributed Queries’, 1
reconfigure
GO
Если я также установил следующие значения * sp_MSset_oledb_prop * (которые я нашел в сообщении где-нибудь)…
USE [master]
GO
EXEC master.dbo.sp_MSset_oledb_prop N’Microsoft.ACE.OLEDB.12.0′, N’AllowInProcess’, 1
GO
EXEC master.dbo.sp_MSset_oledb_prop N’Microsoft.ACE.OLEDB.12.0′, N’DynamicParameters’, 1
GO
… тогда ошибка изменится на «Unspecified error»:
OLE DB provider «Microsoft.ACE.OLEDB.12.0» for linked server «(null)» returned message «Unspecified error».
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider «Microsoft.ACE.OLEDB.12.0» for linked server «(null)».
Однако я не уверен, что это ошибка восходящего или нисходящего потока. (Теперь он находит «устанавливаемый ISAM», но впоследствии не работает?)
Я пробовал это с несколькими файлами Excel на двух разных машинах/операционных системах (Windows Server 2003, Windows XP SP3). Обе машины 32-разрядные.
Я также попытался переустановить версии AccessDatabaseEngine.exe для Office 2007 и Office 2010 (http://www.microsoft.com/download/en/details.aspx?id=23734 и http://www.microsoft.com/download/en/details.aspx?id=13255, соответственно), безрезультатно.
Подводя итог:
«Microsoft.Jet.OLEDB.4.0» работает с использованием T-SQL, но «Microsoft.ACE.OLEDB.12.0» этого не делает.
«Microsoft.ACE.OLEDB.12.0» работает с помощью мастера «Импорт данных…» (насколько я могу сказать из сохраненного файла задания SSIS).
Настройка свойств «AllowInProcess» и «DynamicParameters» на «1» изменяет ошибку на «Unspecified error». (Это шаг вперед?!)
Любые мысли?
+18
tsql excel-2007 oledb openrowset isam
Martin_ATS 10 янв. ’12 в 2:48
источник
поделиться
7 ответов
ПОПРОБУЙТЕ это, это может вам помочь:
установите path и strFileType согласно требованию
string connString = «»;
// string strFileType = Path.GetExtension(UpfileName.FileName).ToLower();
// string path = UpfileName.PostedFile.FileName;
if (strFileType.Trim() == «.xls»)
{
connString = «Provider=Microsoft.Jet.OLEDB.4.0;Data Source=» + path + «;Extended Properties=»Excel 8.0;HDR=Yes;IMEX=2″»;
}
else if(strFileType.Trim() == «.xlsx»)
{
connString = «Provider=Microsoft.ACE.OLEDB.12.0;Data Source=» + path + «;Extended Properties=»Excel 12.0;HDR=Yes;IMEX=2″»;
}
+1
Sagar R 30 янв. ’14 в 9:42
источник
поделиться
Хай также столкнулся с такой ситуацией, я решил ее
решаемые
string ConeectionString = String.Format(@»Provider=Microsoft.ACE.OLEDB.12.0;Data Source=» + txtFlp.Text
+ «;Extended Properties=»Excel 12.0 Xml;HDR=YES»»);
OleDbConnection oconn = new OleDbConnection(ConeectionString);</b>
0
user4049619 17 сент. ’14 в 9:03
источник
поделиться
другие ответы
Связанные вопросы
2
Не удалось найти устанавливаемый ISAM. Ошибка сервера в приложении
1
Соединение OLEDB с базой данных Access с паролем: «Не удалось найти устанавливаемый ISAM»
0
сохраняйте это исключение System.Data.OleDb.OleDbException(0x80004005) 😕
0
VB.NET Microsoft.ACE.OLEDB.12.0 — Выберите команду col
Похожие вопросы
66
Поставщик Microsoft.ACE.OLEDB.12.0 не зарегистрирован
11
Поставщик Microsoft.ACE.OLEDB.12.0 больше не может открывать .mdb под Windows 8
1
Как узнать причину разрешения поставщика OLE на SQL Server?
1
Агент SQL Server не может выполнить запрос OPENROWSET, но я могу — «Microsoft.ACE.OLEDB.12.0» для связанного сервера «(null)» сообщила об ошибке
0
Экспорт данных из SQL Server 2014 в Excel
0
Поставщик OLE DB «Microsoft.ACE.OLEDB.12.0» вернул сообщение «Неопределенная ошибка»
0
«Не удалось найти Installable ISAM» С# Exception после чтения xls файла
0
Ошибка. Поставщик «Microsoft.ACE.OLEDB.12.0» не зарегистрирован на локальном компьютере.
0
Поставщик «Microsoft.ACE.OLEDB.12.0» не зарегистрирован на локальном компьютере. Microsoft Excel 2016
0
не удалось найти устанавливаемый isam [vb.net]
НАКОНЕЦ, решение!
Проверьте это: Msg 7302, уровень 16, состояние 1, строка 1 Невозможно создать экземпляр поставщика OLE DB «Microsoft.ACE.OLEDB.12.0» для связанного сервера «(null)»
В принципе, вы переходите к
Панель управления > Администрирование > Службы компонентов
затем разверните
Службы компонентов > Компьютеры > Мой компьютеp > Конфигурация DCOM
находка
MSDAINITIALIZE
перейдите к
Свойствa > Безопасность > Разрешения запуска и активации
нажмите
Настроить > Изменить…
добавьте свое имя пользователя или «все», если вы предпочитаете
отметьте ВСЕ поля «разрешить» для нового пользователя/группы
и нажмите ОК на обеих страницах
Теперь посмотрите, работает ли ваша команда OpenRowSet/OpenDataSource
Благодаря Ramesh Babu Vavilla (vr.babu) с сайта social.technet.microsoft.com для ссылки
0
Hamid Sadeghian 19 мая ’14 в 10:30
источник
поделиться
Это сработало для меня:
SELECT * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0’,
‘Excel 12.0;HDR=NO;Database=C:tempfile.xlsx;’,[sheetname$])
0
Simon Turner 18 июл. ’17 в 11:27
источник
поделиться
Попробуйте это
SELECT * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0’,
‘EXCEL 12.0;DataBase=C:TEMPtest.xlsx;Extended Properties=»EXCEL 12.0 Xml;HDR=YES’, [Sheet1$])
0
Gurm 26 февр. ’13 в 17:01
источник
поделиться
Я думаю, что ответ скрывается в информации о пакете SSIS, которую вы опубликовали. Новый формат файла xlsx хранит данные в формате XML вместо старого. Посмотрите на это снова. Он читает… Расширенные свойства = «Excel 12.0 XML; HDR = YES
Не пропустите этот XML после стандартного материала. (Для чего это стоит, я также прочитал, что вам нужно «Excel 12.0 Macro» для подключения к файлу xslm.)
Попробуй. Странно, но, надеюсь, это работает.
0
IHateScreenNamesToo 27 апр. ’12 в 18:16
источник
поделиться
Я решил с этим запросом:
SELECT * FROM OPENROWSET(‘Microsoft.ACE.OLEDB.12.0’,
‘Excel 12.0;HDR=NO;Database=D:Filename.xlsx;’,
[SheetName$])
Кажется, sql не нравится раздел «Расширенные свойства»…
I am trying to import Excel sheet into SQL server through SSIS
The file was generated by SQL Server import task from another machine.
but when I try to run it the SSIS on my machine/Server
I get this error
TITLE: Package Validation Error
Package Validation Error
ADDITIONAL INFORMATION:
Error at Data Flow Task 1 [Source — ‘detail_report (4)$’ [53]]: SSIS
Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The
AcquireConnection method call to the connection manager
«SourceConnectionExcel» failed with error code 0xC0209302. There may
be error messages posted before this with more information on why the
AcquireConnection method call failed.Error at Data Flow Task 1 [SSIS.Pipeline]: Source — ‘detail_report
(4)$’ failed validation and returned error code 0xC020801C.Error at Data Flow Task 1 [SSIS.Pipeline]: One or more component
failed validation.Error at Data Flow Task 1: There were errors during task validation.
Error at MobUp02 [Connection manager «SourceConnectionExcel»]: The
requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered.
If the 32-bit driver is not installed, run the package in 64-bit mode.
Error code: 0x00000000. An OLE DB record is available. Source:
«Microsoft OLE DB Service Components» Hresult: 0x80040154
Description: «Class not registered».Error at MobUp02 [Connection manager «SourceConnectionExcel»]: The
‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local
machine. For more information, see
http://go.microsoft.com/fwlink/?LinkId=219816(Microsoft.DataTransformationServices.VsIntegration)
I googled that and changed Run64bitRuntime to False, yet problem still exist
Anyone know how to fix that??