av in 10.1 and 10.5: Could not convert variant of type (UnicodeString) into type (Double). [2 Attachments]

[ Attachment(s) from =?iso-8859-1?Q?B=F6schenstein_Patrik?= included below]

We’d like to compile a PL/SQL package on our customers database. But when
we load it or compile it by F5, this package gives the attached errors:

“Could not convert variant of type (UnicodeString) into type
(Double).”

What I found out so far:

Attachment(s) from =?iso-8859-1?Q?B=F6schenstein_Patrik?=

2 of 2 File(s)

Toad_10_1.txt

Toad_10_5.txt

Patrik,

What DB version is your customer on?

Greg

Greg

The customer uses 11.1.0.7.0

I connect from here, my client seems to be 10201.

Patrik

Von: toad@yahoogroups.com [mailto:toad@yahoogroups.com] Im Auftrag von Gregory
Liss
Gesendet: Dienstag, 4. Mai 2010 18:55
An: toad@yahoogroups.com
Betreff: RE: [toad] av in 10.1 and 10.5: Could not convert variant of type
(UnicodeString) into type (Double).

Patrik,

What DB version is your customer on?

Greg

Patrik,

Can you run this and let me know what you get?

SELECT COLUMN_NAME , DATA_TYPE

FROM ALL_TAB_COLUMNS

WHERE TABLE_NAME = ‘ALL_ARGUMENTS’ AND COLUMN_NAME = ‘POSITION’

Greg

Patrik,

Can you run this and let me know what you get?

SELECT COLUMN_NAME , DATA_TYPE

FROM ALL_TAB_COLUMNS

WHERE TABLE_NAME = ‘ALL_ARGUMENTS’ AND COLUMN_NAME = ‘POSITION’

Greg

Shure:

Patrik

Von: toad@yahoogroups.com [mailto:toad@yahoogroups.com] Im Auftrag von Gregory
Liss
Gesendet: Dienstag, 4. Mai 2010 19:23
An: toad@yahoogroups.com
Betreff: RE: [toad] av in 10.1 and 10.5: Could not convert variant of type
(UnicodeString) into type (Double).

Patrik,

Can you run this and let me know what you get?

SELECT COLUMN_NAME , DATA_TYPE

FROM ALL_TAB_COLUMNS

WHERE TABLE_NAME = ‘ALL_ARGUMENTS’ AND COLUMN_NAME = ‘POSITION’

Greg
image001.png

I think that explains it. That column is supposed to be a NUMBER column. Or
at least that’s what Larry says.

Column Datatype NULL
Description

POSITION NUMBER NOT NULL
If DATA_LEVEL is zero, then this column holds the

                                    Â
                                     
           position of this item in the argument list, or zero

                                    Â
                                     
           for a function return value.  If DATA_LEVEL is

greater

                                    Â
                                     
           than zero, then this column holds the position of

this

                                    Â
                                     
           item with respect to its siblings at the same

DATA_LEVEL.

                                    Â
                                     
           So, for a referenced record field, this is the

index of

                                    Â
                                     
           the field within the record. For a referenced

collection

                                    Â
                                     
           element, this is 1 (because collection elements do

not have siblings.)
image001.png

it is possible your client charset!=database character set (or you have an
incorrectly selected charset)

at dbserver go into sqlplus and type
SQL> select value from nls_database_parameters where
parameter=‘NLS_CHARACTERSET’;

every installed client go into sqlplus and type
SQL> select value from nls_database_parameters where
parameter=‘NLS_CHARACTERSET’;

note any disparities in the charsets for each of the clients and the database
server and adjust accordingly
Martin Gainty


Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n’êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l’expéditeur. N’importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l’information seulement et n’aura pas n’importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

it is possible your client charset!=database character set (or you have an
incorrectly selected charset)

at dbserver go into sqlplus and type
SQL> select value from nls_database_parameters where
parameter=‘NLS_CHARACTERSET’;

every installed client go into sqlplus and type
SQL> select value from nls_database_parameters where
parameter=‘NLS_CHARACTERSET’;

note any disparities in the charsets for each of the clients and the database
server and adjust accordingly
Martin Gainty


Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n’êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l’expéditeur. N’importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l’information seulement et n’aura pas n’importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

Martin I ask myself, why the characterset can change a column type. (sorry,
I’m not a dba) But thanks, we’ll have a look at it. Patrik Von:
toad@yahoogroups.com [mailto:toad@yahoogroups.com] Im Auftrag von Martin Gainty
Gesendet: Dienstag, 4. Mai 2010 19:53 An: TOAD Yahoogroup Betreff: RE: [toad] av
in 10.1 and 10.5: Could not convert variant of type (UnicodeString) into type
(Double). it is possible your client charset!=database character set (or you
have an incorrectly selected charset) at dbserver go into sqlplus and type SQL>
select value from nls_database_parameters where parameter=‘NLS_CHARACTERSET’;
every installed client go into sqlplus and type SQL> select value from
nls_database_parameters where parameter=‘NLS_CHARACTERSET’; note any disparities
in the charsets for each of the clients and the database server and adjust
accordingly Martin Gainty ______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese
Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so
bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder
Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être
privilégié. Si vous n’êtes pas le destinataire prévu, nous te demandons avec
bonté que pour satisfaire informez l’expéditeur. N’importe quelle diffusion
non autorisée ou la copie de ceci est interdite. Ce message sert à
l’information seulement et n’aura pas n’importe quel effet légalement
obligatoire. Étant donné que les email peuvent facilement être sujets à la
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu
fourni.

You might want to verify the definition of the ALL_ARGUMENTS view. If you tell
me your Oracle version I can send you mine for comparison. From:
toad@yahoogroups.com [mailto:toad@yahoogroups.com] On Behalf Of Böschenstein
Patrik Sent: Tuesday, May 04, 2010 1:29 PM To: toad@yahoogroups.com Subject: AW:
[toad] av in 10.1 and 10.5: Could not convert variant of type (UnicodeString)
into type (Double). Martin I ask myself, why the characterset can change a
column type. (sorry, I’m not a dba) But thanks, we’ll have a look at
it. Patrik Von: toad@yahoogroups.com [mailto:toad@yahoogroups.com] Im Auftrag
von Martin Gainty Gesendet: Dienstag, 4. Mai 2010 19:53 An: TOAD Yahoogroup
Betreff: RE: [toad] av in 10.1 and 10.5: Could not convert variant of type
(UnicodeString) into type (Double). it is possible your client charset!=database
character set (or you have an incorrectly selected charset) at dbserver go into
sqlplus and type SQL> select value from nls_database_parameters where
parameter=‘NLS_CHARACTERSET’; every installed client go into sqlplus and type
SQL> select value from nls_database_parameters where
parameter=‘NLS_CHARACTERSET’; note any disparities in the charsets for each of
the clients and the database server and adjust accordingly Martin Gainty
______________________________________________ Verzicht und
Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht
ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung
einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von
Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der
leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt
uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous
n’êtes pas le destinataire prévu, nous te demandons avec bonté que pour
satisfaire informez l’expéditeur. N’importe quelle diffusion non autorisée ou
la copie de ceci est interdite. Ce message sert à l’information seulement et
n’aura pas n’importe quel effet légalement obligatoire. Étant donné que les
email peuvent facilement être sujets à la manipulation, nous ne pouvons
accepter aucune responsabilité pour le contenu fourni.

One of our dba’s - he is new in this job - wracked the view…

But they have fixed it now.

Thanks to all for your help!

Patrik

Von: toad@yahoogroups.com [mailto:toad@yahoogroups.com] Im Auftrag von Gregory
Liss
Gesendet: Dienstag, 4. Mai 2010 19:39
An: toad@yahoogroups.com
Betreff: RE: [toad] av in 10.1 and 10.5: Could not convert variant of type
(UnicodeString) into type (Double).

I think that explains it. That column is supposed to be a NUMBER column. Or at
least that’s what Larry says.

Column Datatype NULL Description

POSITION NUMBER NOT NULL If DATA_LEVEL is zero, then this column holds the

position of this item in the argument list, or zero

for a function return value. If DATA_LEVEL is greater

than zero, then this column holds the position of this

item with respect to its siblings at the same DATA_LEVEL.

So, for a referenced record field, this is the index of

the field within the record. For a referenced collection

element, this is 1 (because collection elements do not have siblings.)
image001.png