Showing posts with label english. Show all posts
Showing posts with label english. Show all posts

Wednesday, March 7, 2012

Data Mining Add-Ins doesn't work with non-English regional settings

I tried Data Mining Add-Ins for Office 2007 - CTP December 2006.
Test settings: Windows XP SP2 english with Italian regional settings, Office 2007 english (RTM), SQL Server 2005 Developer (with SP2 CTP Dec06) and Data Mining Add-ins for Office 2007 (CTP Dec06).

If I keep regional settings in Italian, I get error like this:

Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))

If I change regional settings to English, the Add-in works.

I found this description as the possible cause of the problem: http://msdn2.microsoft.com/en-us/library/ms178780(vs.80).aspx - if this is the issue, it would be necessary to change the ExcelLocale1033Attribute on the component.

Is there another workaround other than to install the Office 2007 MUI?

Marco Russo
http://www.sqlbi.eu
http://www.sqljunkies.com/weblog/sqlbi

Hello, Marco

Thank you for letting us know about this. Are you using a localized version of the add-ins? We fixed these problems for the final version of the add-ins. To make sure our fix covers all the situations, could you please tell us which task generated this error? Dos this happen all the time, with any task? Or only for certain tasks?

|||

I think there is still something to change - now I have different results on different machines.

PC 1 - addin gives error with the following configuration, it works if I change regional settings to English

Windows XP SP2 english|||

Thanks a lot, Marco. One more question: are you using English or italian Office? Same for add-ins. Sorry if this is already mentioned above, I did not find it

|||

I forgot to mention it.

In both PC1 and PC2 I have the English version of Windows (XP and 2003) and Office 2007. I have the add-in in English too. The only "localization" is the Regional Settings that I put to Italian on both machines. It is strange to me that the two PCs behaves differently, I was not aware of differences between XP and Server 2003, but may be there is something I am missing...

Let me know if you need other info.

Marco

|||Can you check "Add/Remove Programs" on the computer where you get the error and make sure that you have only one version of the DM Add-ins installed?|||

Yes, I have only one: Microsoft SQL Server 2005 Data Mining Add-Ins for Office 2007 (CTP)

Marco

|||

Did you have previous version of the add-ins installed on the machine where you have problem?

I think this is some problem with setup since add-ins work on one machine and don't work on another machine.

Can you try uninstalling add-ins on the machine where you have problem, then open Excel and make sure that they don't show up and then install add-ins again?

|||

I made the test: I uninstalled the add-in - Excel started without any Data Mining Add-In (I checked in options dialog box too). Then I installed the DM Add-In and it still doesn't work on the XP SP2 machine. I need to change Regional Settings, as I described before.

Let me know if I can make some other test.

Marco

|||

I had the same problem but with a similar application.

I wrote a C# application to manipulate Excel sheets and ran OK, but when I changed the Regional Option to Chinese, the program gives "Old format or invalid library" error. When I set the Regional Option back to English, the program runs OK again.

Regards

Jry

|||

Jry,

change the current thread culture to English before manipulating Excel and reset it back when the operation is complete.

You might find the following class usuful.

Code Snippet

public class ExcelLCIDWrapper : IDisposable

{

static System.Globalization.CultureInfo enusCulture = null;

System.Globalization.CultureInfo oldCulture = null;

public ExcelLCIDWrapper(Microsoft.Office.Interop.Excel.Application excelApp)

{

if (enusCulture == null)

{

enusCulture = new System.Globalization.CultureInfo(1033);

}

if (enusCulture.Name != System.Threading.Thread.CurrentThread.CurrentCulture.Name)

{

oldCulture = System.Threading.Thread.CurrentThread.CurrentCulture;

System.Threading.Thread.CurrentThread.CurrentCulture = enusCulture;

}

}

void IDisposable.Dispose()

{

if (oldCulture != null)

{

System.Threading.Thread.CurrentThread.CurrentCulture = oldCulture;

}

}

}

Constructor of this class sets thread culture to English and destructor resets it back. Wrap the calls to Excel that are failing inside

Code Snippet

using (ExcelLCIDWrapper wrapper = new ExcelLCIDWrapper( excelApp) )

{

...

}

Tatyana

Data Mining Add-Ins doesn''t work with non-English regional settings

I tried Data Mining Add-Ins for Office 2007 - CTP December 2006.
Test settings: Windows XP SP2 english with Italian regional settings, Office 2007 english (RTM), SQL Server 2005 Developer (with SP2 CTP Dec06) and Data Mining Add-ins for Office 2007 (CTP Dec06).

If I keep regional settings in Italian, I get error like this:

Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))

If I change regional settings to English, the Add-in works.

I found this description as the possible cause of the problem: http://msdn2.microsoft.com/en-us/library/ms178780(vs.80).aspx - if this is the issue, it would be necessary to change the ExcelLocale1033Attribute on the component.

Is there another workaround other than to install the Office 2007 MUI?

Marco Russo
http://www.sqlbi.eu
http://www.sqljunkies.com/weblog/sqlbi

Hello, Marco

Thank you for letting us know about this. Are you using a localized version of the add-ins? We fixed these problems for the final version of the add-ins. To make sure our fix covers all the situations, could you please tell us which task generated this error? Dos this happen all the time, with any task? Or only for certain tasks?

|||

I think there is still something to change - now I have different results on different machines.

PC 1 - addin gives error with the following configuration, it works if I change regional settings to English

Windows XP SP2 english|||

Thanks a lot, Marco. One more question: are you using English or italian Office? Same for add-ins. Sorry if this is already mentioned above, I did not find it

|||

I forgot to mention it.

In both PC1 and PC2 I have the English version of Windows (XP and 2003) and Office 2007. I have the add-in in English too. The only "localization" is the Regional Settings that I put to Italian on both machines. It is strange to me that the two PCs behaves differently, I was not aware of differences between XP and Server 2003, but may be there is something I am missing...

Let me know if you need other info.

Marco

|||Can you check "Add/Remove Programs" on the computer where you get the error and make sure that you have only one version of the DM Add-ins installed?|||

Yes, I have only one: Microsoft SQL Server 2005 Data Mining Add-Ins for Office 2007 (CTP)

Marco

|||

Did you have previous version of the add-ins installed on the machine where you have problem?

I think this is some problem with setup since add-ins work on one machine and don't work on another machine.

Can you try uninstalling add-ins on the machine where you have problem, then open Excel and make sure that they don't show up and then install add-ins again?

|||

I made the test: I uninstalled the add-in - Excel started without any Data Mining Add-In (I checked in options dialog box too). Then I installed the DM Add-In and it still doesn't work on the XP SP2 machine. I need to change Regional Settings, as I described before.

Let me know if I can make some other test.

Marco

|||

I had the same problem but with a similar application.

I wrote a C# application to manipulate Excel sheets and ran OK, but when I changed the Regional Option to Chinese, the program gives "Old format or invalid library" error. When I set the Regional Option back to English, the program runs OK again.

Regards

Jry

|||

Jry,

change the current thread culture to English before manipulating Excel and reset it back when the operation is complete.

You might find the following class usuful.

Code Snippet

public class ExcelLCIDWrapper : IDisposable

{

static System.Globalization.CultureInfo enusCulture = null;

System.Globalization.CultureInfo oldCulture = null;

public ExcelLCIDWrapper(Microsoft.Office.Interop.Excel.Application excelApp)

{

if (enusCulture == null)

{

enusCulture = new System.Globalization.CultureInfo(1033);

}

if (enusCulture.Name != System.Threading.Thread.CurrentThread.CurrentCulture.Name)

{

oldCulture = System.Threading.Thread.CurrentThread.CurrentCulture;

System.Threading.Thread.CurrentThread.CurrentCulture = enusCulture;

}

}

void IDisposable.Dispose()

{

if (oldCulture != null)

{

System.Threading.Thread.CurrentThread.CurrentCulture = oldCulture;

}

}

}

Constructor of this class sets thread culture to English and destructor resets it back. Wrap the calls to Excel that are failing inside

Code Snippet

using (ExcelLCIDWrapper wrapper = new ExcelLCIDWrapper( excelApp) )

{

...

}

Tatyana

Data Mining Add-Ins doesn''t work with non-English regional settings

I tried Data Mining Add-Ins for Office 2007 - CTP December 2006.
Test settings: Windows XP SP2 english with Italian regional settings, Office 2007 english (RTM), SQL Server 2005 Developer (with SP2 CTP Dec06) and Data Mining Add-ins for Office 2007 (CTP Dec06).

If I keep regional settings in Italian, I get error like this:

Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))

If I change regional settings to English, the Add-in works.

I found this description as the possible cause of the problem: http://msdn2.microsoft.com/en-us/library/ms178780(vs.80).aspx - if this is the issue, it would be necessary to change the ExcelLocale1033Attribute on the component.

Is there another workaround other than to install the Office 2007 MUI?

Marco Russo
http://www.sqlbi.eu
http://www.sqljunkies.com/weblog/sqlbi

Hello, Marco

Thank you for letting us know about this. Are you using a localized version of the add-ins? We fixed these problems for the final version of the add-ins. To make sure our fix covers all the situations, could you please tell us which task generated this error? Dos this happen all the time, with any task? Or only for certain tasks?

|||

I think there is still something to change - now I have different results on different machines.

PC 1 - addin gives error with the following configuration, it works if I change regional settings to English

Windows XP SP2 english|||

Thanks a lot, Marco. One more question: are you using English or italian Office? Same for add-ins. Sorry if this is already mentioned above, I did not find it

|||

I forgot to mention it.

In both PC1 and PC2 I have the English version of Windows (XP and 2003) and Office 2007. I have the add-in in English too. The only "localization" is the Regional Settings that I put to Italian on both machines. It is strange to me that the two PCs behaves differently, I was not aware of differences between XP and Server 2003, but may be there is something I am missing...

Let me know if you need other info.

Marco

|||Can you check "Add/Remove Programs" on the computer where you get the error and make sure that you have only one version of the DM Add-ins installed?|||

Yes, I have only one: Microsoft SQL Server 2005 Data Mining Add-Ins for Office 2007 (CTP)

Marco

|||

Did you have previous version of the add-ins installed on the machine where you have problem?

I think this is some problem with setup since add-ins work on one machine and don't work on another machine.

Can you try uninstalling add-ins on the machine where you have problem, then open Excel and make sure that they don't show up and then install add-ins again?

|||

I made the test: I uninstalled the add-in - Excel started without any Data Mining Add-In (I checked in options dialog box too). Then I installed the DM Add-In and it still doesn't work on the XP SP2 machine. I need to change Regional Settings, as I described before.

Let me know if I can make some other test.

Marco

|||

I had the same problem but with a similar application.

I wrote a C# application to manipulate Excel sheets and ran OK, but when I changed the Regional Option to Chinese, the program gives "Old format or invalid library" error. When I set the Regional Option back to English, the program runs OK again.

Regards

Jry

|||

Jry,

change the current thread culture to English before manipulating Excel and reset it back when the operation is complete.

You might find the following class usuful.

Code Snippet

public class ExcelLCIDWrapper : IDisposable

{

static System.Globalization.CultureInfo enusCulture = null;

System.Globalization.CultureInfo oldCulture = null;

public ExcelLCIDWrapper(Microsoft.Office.Interop.Excel.Application excelApp)

{

if (enusCulture == null)

{

enusCulture = new System.Globalization.CultureInfo(1033);

}

if (enusCulture.Name != System.Threading.Thread.CurrentThread.CurrentCulture.Name)

{

oldCulture = System.Threading.Thread.CurrentThread.CurrentCulture;

System.Threading.Thread.CurrentThread.CurrentCulture = enusCulture;

}

}

void IDisposable.Dispose()

{

if (oldCulture != null)

{

System.Threading.Thread.CurrentThread.CurrentCulture = oldCulture;

}

}

}

Constructor of this class sets thread culture to English and destructor resets it back. Wrap the calls to Excel that are failing inside

Code Snippet

using (ExcelLCIDWrapper wrapper = new ExcelLCIDWrapper( excelApp) )

{

...

}

Tatyana

Friday, February 24, 2012

Data Lost

Excuse me if my redaction is bad, but I don't speak english very well.
My Question is:
I have a SQL DataBase in which every day I save a lot of records.
I'm sured that the records are in the Database because I can see them.
I made queries in DB using a Windows application but next day I query again
and I can't see the records.
There are no proccess like stored procedures that delete the records; even
the application doesn't have an option to delete them.
First time, I thougt the reason was the DataBase Server wasn't shut down
correctly. But this time Server wasn't shut down.
I really need help because it's very stranger. can somebody help me to find
the phantom?
Thanks!!!
Thats an odd one.
What I would sugest is you run a trace on your database to see who or what
is removing the data.
The thing is it could be justabout anything or anyone.
Something you could do in the meanwhile is to denign delete permission on
the table execpt for DBA's
Peter
"Edward" wrote:

> Excuse me if my redaction is bad, but I don't speak english very well.
> My Question is:
> I have a SQL DataBase in which every day I save a lot of records.
> I'm sured that the records are in the Database because I can see them.
> I made queries in DB using a Windows application but next day I query again
> and I can't see the records.
> There are no proccess like stored procedures that delete the records; even
> the application doesn't have an option to delete them.
> First time, I thougt the reason was the DataBase Server wasn't shut down
> correctly. But this time Server wasn't shut down.
> I really need help because it's very stranger. can somebody help me to find
> the phantom?
> Thanks!!!
|||I will do it, but I'm sure that nothing is deleting the records, this is a
thecnical problem.
Thanks
"Peter Nolan" wrote:
[vbcol=seagreen]
> Thats an odd one.
> What I would sugest is you run a trace on your database to see who or what
> is removing the data.
> The thing is it could be justabout anything or anyone.
> Something you could do in the meanwhile is to denign delete permission on
> the table execpt for DBA's
> Peter
> "Edward" wrote:
|||Hi Edward
Are you inserting the records into a temporary table by any chance?
Can you please send the table structure and the query that you are using to
view the data. Also please check in the database if data is present
thanks and regards
Chandra
"Edward" wrote:

> Excuse me if my redaction is bad, but I don't speak english very well.
> My Question is:
> I have a SQL DataBase in which every day I save a lot of records.
> I'm sured that the records are in the Database because I can see them.
> I made queries in DB using a Windows application but next day I query again
> and I can't see the records.
> There are no proccess like stored procedures that delete the records; even
> the application doesn't have an option to delete them.
> First time, I thougt the reason was the DataBase Server wasn't shut down
> correctly. But this time Server wasn't shut down.
> I really need help because it's very stranger. can somebody help me to find
> the phantom?
> Thanks!!!
|||Hi chandra!!!
If I send you the inserts and updates made in the tables I'll send many
statements, because they are many tables involved in a transaction that is
handled by the same stored procedure, I think that the problem is cause at
transaction level, but I do not understand either, because if the problem
were of this type, the rest of clients applications that works with the
database would be locked.
another thing is happened to me ? The backup log that is made over the
database
every day may cause that the last transactions commited will be losted?
"Chandra" wrote:

> Hi Edward
> Are you inserting the records into a temporary table by any chance?
> Can you please send the table structure and the query that you are using to
> view the data. Also please check in the database if data is present
> thanks and regards
> Chandra

Data Lost

Excuse me if my redaction is bad, but I don't speak english very well.
My Question is:
I have a SQL DataBase in which every day I save a lot of records.
I'm sured that the records are in the Database because I can see them.
I made queries in DB using a Windows application but next day I query again
and I can't see the records.
There are no proccess like stored procedures that delete the records; even
the application doesn't have an option to delete them.
First time, I thougt the reason was the DataBase Server wasn't shut down
correctly. But this time Server wasn't shut down.
I really need help because it's very stranger. can somebody help me to find
the phantom?
Thanks!!!Thats an odd one.
What I would sugest is you run a trace on your database to see who or what
is removing the data.
The thing is it could be justabout anything or anyone.
Something you could do in the meanwhile is to denign delete permission on
the table execpt for DBA's
Peter
"Edward" wrote:

> Excuse me if my redaction is bad, but I don't speak english very well.
> My Question is:
> I have a SQL DataBase in which every day I save a lot of records.
> I'm sured that the records are in the Database because I can see them.
> I made queries in DB using a Windows application but next day I query agai
n
> and I can't see the records.
> There are no proccess like stored procedures that delete the records; even
> the application doesn't have an option to delete them.
> First time, I thougt the reason was the DataBase Server wasn't shut down
> correctly. But this time Server wasn't shut down.
> I really need help because it's very stranger. can somebody help me to fin
d
> the phantom?
> Thanks!!!|||I will do it, but I'm sure that nothing is deleting the records, this is a
thecnical problem.
Thanks
"Peter Nolan" wrote:
[vbcol=seagreen]
> Thats an odd one.
> What I would sugest is you run a trace on your database to see who or what
> is removing the data.
> The thing is it could be justabout anything or anyone.
> Something you could do in the meanwhile is to denign delete permission on
> the table execpt for DBA's
> Peter
> "Edward" wrote:
>|||Hi Edward
Are you inserting the records into a temporary table by any chance?
Can you please send the table structure and the query that you are using to
view the data. Also please check in the database if data is present
thanks and regards
Chandra
"Edward" wrote:

> Excuse me if my redaction is bad, but I don't speak english very well.
> My Question is:
> I have a SQL DataBase in which every day I save a lot of records.
> I'm sured that the records are in the Database because I can see them.
> I made queries in DB using a Windows application but next day I query agai
n
> and I can't see the records.
> There are no proccess like stored procedures that delete the records; even
> the application doesn't have an option to delete them.
> First time, I thougt the reason was the DataBase Server wasn't shut down
> correctly. But this time Server wasn't shut down.
> I really need help because it's very stranger. can somebody help me to fin
d
> the phantom?
> Thanks!!!|||Hi chandra!!!
If I send you the inserts and updates made in the tables I'll send many
statements, because they are many tables involved in a transaction that is
handled by the same stored procedure, I think that the problem is cause at
transaction level, but I do not understand either, because if the problem
were of this type, the rest of clients applications that works with the
database would be locked.
another thing is happened to me ? The backup log that is made over the
database
every day may cause that the last transactions commited will be losted?
"Chandra" wrote:

> Hi Edward
> Are you inserting the records into a temporary table by any chance?
> Can you please send the table structure and the query that you are using t
o
> view the data. Also please check in the database if data is present
> thanks and regards
> Chandra

Data Lost

Excuse me if my redaction is bad, but I don't speak english very well.
My Question is:
I have a SQL DataBase in which every day I save a lot of records.
I'm sured that the records are in the Database because I can see them.
I made queries in DB using a Windows application but next day I query again
and I can't see the records.
There are no proccess like stored procedures that delete the records; even
the application doesn't have an option to delete them.
First time, I thougt the reason was the DataBase Server wasn't shut down
correctly. But this time Server wasn't shut down.
I really need help because it's very stranger. can somebody help me to find
the phantom?
Thanks!!!Thats an odd one.
What I would sugest is you run a trace on your database to see who or what
is removing the data.
The thing is it could be justabout anything or anyone.
Something you could do in the meanwhile is to denign delete permission on
the table execpt for DBA's
Peter
"Edward" wrote:
> Excuse me if my redaction is bad, but I don't speak english very well.
> My Question is:
> I have a SQL DataBase in which every day I save a lot of records.
> I'm sured that the records are in the Database because I can see them.
> I made queries in DB using a Windows application but next day I query again
> and I can't see the records.
> There are no proccess like stored procedures that delete the records; even
> the application doesn't have an option to delete them.
> First time, I thougt the reason was the DataBase Server wasn't shut down
> correctly. But this time Server wasn't shut down.
> I really need help because it's very stranger. can somebody help me to find
> the phantom?
> Thanks!!!|||I will do it, but I'm sure that nothing is deleting the records, this is a
thecnical problem.
Thanks
"Peter Nolan" wrote:
> Thats an odd one.
> What I would sugest is you run a trace on your database to see who or what
> is removing the data.
> The thing is it could be justabout anything or anyone.
> Something you could do in the meanwhile is to denign delete permission on
> the table execpt for DBA's
> Peter
> "Edward" wrote:
> > Excuse me if my redaction is bad, but I don't speak english very well.
> >
> > My Question is:
> > I have a SQL DataBase in which every day I save a lot of records.
> > I'm sured that the records are in the Database because I can see them.
> > I made queries in DB using a Windows application but next day I query again
> > and I can't see the records.
> > There are no proccess like stored procedures that delete the records; even
> > the application doesn't have an option to delete them.
> > First time, I thougt the reason was the DataBase Server wasn't shut down
> > correctly. But this time Server wasn't shut down.
> > I really need help because it's very stranger. can somebody help me to find
> > the phantom?
> >
> > Thanks!!!|||Hi Edward
Are you inserting the records into a temporary table by any chance?
Can you please send the table structure and the query that you are using to
view the data. Also please check in the database if data is present
thanks and regards
Chandra
"Edward" wrote:
> Excuse me if my redaction is bad, but I don't speak english very well.
> My Question is:
> I have a SQL DataBase in which every day I save a lot of records.
> I'm sured that the records are in the Database because I can see them.
> I made queries in DB using a Windows application but next day I query again
> and I can't see the records.
> There are no proccess like stored procedures that delete the records; even
> the application doesn't have an option to delete them.
> First time, I thougt the reason was the DataBase Server wasn't shut down
> correctly. But this time Server wasn't shut down.
> I really need help because it's very stranger. can somebody help me to find
> the phantom?
> Thanks!!!|||Hi chandra!!!
If I send you the inserts and updates made in the tables I'll send many
statements, because they are many tables involved in a transaction that is
handled by the same stored procedure, I think that the problem is cause at
transaction level, but I do not understand either, because if the problem
were of this type, the rest of clients applications that works with the
database would be locked.
another thing is happened to me ¿ The backup log that is made over the
database
every day may cause that the last transactions commited will be losted?
"Chandra" wrote:
> Hi Edward
> Are you inserting the records into a temporary table by any chance?
> Can you please send the table structure and the query that you are using to
> view the data. Also please check in the database if data is present
> thanks and regards
> Chandra