ECGrid Forums  

Go Back   ECGrid Forums > Electronic Commerce > ECGridOS > ECGridOS Developer

ECGridOS Developer Development related posts.

Thread Tools Display Modes
Old 08-18-2010, 09:58 AM
ProjectDavid ProjectDavid is offline
New Member
Join Date: Aug 2010
Location: Freelance Contractor
Posts: 3
Default Managing Mailboxes


I am trying to write code which will auto-create a mailbox for a system user if they cannot be found on the system. On our system each user will have an ANA. The logic is as follows:

Search ECGrid for the ANA. If found then return the mailbox ID.
If not found then do the following
1. create a new mailbox
2. assign the ANA to the mailbox as a trading partner object
3. assign a user account to the mailbox

Because this is not an atomic operation then I want to be able to roll it all back should any of the above steps fail. Typically the user account stage fails as ECGrid has lots of validation against a user object.

The problem is that when I try and use the SOAP call MailboxTerminate I get an authorisation error coming back at me:

<faultstring>System.Web.Services.Protocols.SoapExc eption: 2 at api._SystemError(RetCode ErrCode, String ErrItem, String ErrMessage) at api._SessionEventEnd() at api.MailboxTerminate(String SessionID, Int32 MailboxID)</faultstring>
<ErrorInfo xmlns:xsd="" xmlns:xsi="">

<ErrorString>Access Denied</ErrorString>
<ErrorMessage>Probable attempt to change Status on Terminated entry.</ErrorMessage>


The account I create the mailbox with has network level authority, so how can it be OK to create a mailbox but not delete it?

The error message "Probable attempt to change Status on Terminated entry" does not make sense because if I then search for the half-created account by ANA again it comes back as status = active.

Any advise would be most helpful.


Reply With Quote
Old 09-13-2010, 02:39 PM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould


Sorry for the delay on this one.

Could you Private Message me or e-mail me a MailboxID and your User Login Name you are using so I can replicate this on my development system?

I'll get it fixed right up.


Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 12:12 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
ECGrid® is a registered service mark of Loren Data Corp.