Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Problem with PB 11.5 and MailSession Object

2 posts in Objects Last posting was on 2010-03-23 11:46:28.0Z
Adi Shachar Posted on 2010-03-23 07:36:57.0Z
Sender: 299.4ba86f73.1804289383@sybase.com
From: Adi Shachar
Newsgroups: sybase.public.powerbuilder.objects
Subject: Problem with PB 11.5 and MailSession Object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4ba86f99.2a2.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Mar 2010 23:36:57 -0800
X-Trace: forums-1-dub 1269329817 10.22.241.41 (22 Mar 2010 23:36:57 -0800)
X-Original-Trace: 22 Mar 2010 23:36:57 -0800, 10.22.241.41
Lines: 23
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9980
Article PK: 737108

Lately we upgraded the PB from 9.0.3 (Build 8784) to 11.5.1
(Build 4608).
We're using the MailSession object to open the mail address
book with mailResolveRecipient function.
The function worked great with PB 9, in the workspace and
also in the EXE.
After the upgrade - the function fails only in the EXE (in
the workspace it works just fine) - and only if the name
that we're looking for isn't unique, i.e there is more than
one result that matches the name that we sent to the
mailResolveRecipient function. In that case - the function
returns MailResultFailure!.
After some research we found that the failure happens only
if we connect to Oracle DB before executing the function.
The failure doesn't happen when we connect to ODBC (access)
DB.

We searched the problem over the internet and didn't come up
with any solution.
Can anyone know how to fix the problem?

Thank you!
Adi.


Ivaylo Ivanov Posted on 2010-03-23 11:46:28.0Z
From: "Ivaylo Ivanov" <n0_S_p_a_m_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4ba86f99.2a2.1681692777@sybase.com>
Subject: Re: Problem with PB 11.5 and MailSession Object
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4ba8aa14$1@forums-1-dub>
Date: 23 Mar 2010 03:46:28 -0800
X-Trace: forums-1-dub 1269344788 10.22.241.152 (23 Mar 2010 03:46:28 -0800)
X-Original-Trace: 23 Mar 2010 03:46:28 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9981
Article PK: 737110

Adi, please do not post your question to multiple newsgroups. Choose the one
that matches your question at most ;-)

<Adi Shachar> wrote in message news:4ba86f99.2a2.1681692777@sybase.com...
> Lately we upgraded the PB from 9.0.3 (Build 8784) to 11.5.1
> (Build 4608).
> We're using the MailSession object to open the mail address
> book with mailResolveRecipient function.
> The function worked great with PB 9, in the workspace and
> also in the EXE.
> After the upgrade - the function fails only in the EXE (in
> the workspace it works just fine) - and only if the name
> that we're looking for isn't unique, i.e there is more than
> one result that matches the name that we sent to the
> mailResolveRecipient function. In that case - the function
> returns MailResultFailure!.
> After some research we found that the failure happens only
> if we connect to Oracle DB before executing the function.
> The failure doesn't happen when we connect to ODBC (access)
> DB.
>
> We searched the problem over the internet and didn't come up
> with any solution.
> Can anyone know how to fix the problem?
>
> Thank you!
> Adi.