Purchase Order, HonorStatus & ApplicationId
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Purchase Order, HonorStatus & ApplicationId




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Purchase Order, HonorStatus & ApplicationId  
Steve H.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-19-07 12:19 AM

Hi,
I am trying to save my basket as Purchase Order. The process completes with
no errors, however I edited the Purchase order schema to allow for 2 weakly
typed properties (1 integer and the other is a string).
When I try to save my order after the values are added the following error
is raised:

System.InvalidOperationException: This overload of PurchaseOrder.Save method
cannot be used when HonorStatus flag is set to true in the configuration
file. Please use the other overload which takes applicationId as parameter.

Here is a code sample:


PurchaseOrder PO = Basket.SaveAsOrder();
PO["CountA"] = 23;
PO["PID"] = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
PO.Save(); // The error is raised here , at this line

Any ideas ?






[ Post a follow-up to this message ]



    Re: Purchase Order, HonorStatus & ApplicationId  
IlkkaP


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-07 12:27 AM

Look at the StatusManager table in the transactionconfig database.
The table indicates who can modify orders that are in a certain state.
I guess you are using the Site application id, which can modify only orders
in NewOrder state.
You can add a new row for Site application id or use PO.Save("LOB Adapter")
to override.
Or disable StatusManager from the web.config. I'd recommend the first
option.

For more info see the documentation of the Save method.



"Steve H." <SteveH@discussions.microsoft.com> ha scritto nel messaggio
news:5BBDD09C-60C0-45A9-B79F-FD827722A5CE@microsoft.com...
> Hi,
> I am trying to save my basket as Purchase Order. The process completes
> with
> no errors, however I edited the Purchase order schema to allow for 2
> weakly
> typed properties (1 integer and the other is a string).
> When I try to save my order after the values are added the following error
> is raised:
>
> System.InvalidOperationException: This overload of PurchaseOrder.Save
> method
> cannot be used when HonorStatus flag is set to true in the configuration
> file. Please use the other overload which takes applicationId as
> parameter.
>
> Here is a code sample:
>
>
> PurchaseOrder PO = Basket.SaveAsOrder();
> PO["CountA"] = 23;
> PO["PID"] = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
> PO.Save(); // The error is raised here , at this line
>
> Any ideas ?
>







[ Post a follow-up to this message ]



    RE: Purchase Order, HonorStatus & ApplicationId  
Steve H.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-07 12:27 AM

Well, I found the answer, I am gonna post it here for those who stumble upon
the same problem.

Open your %website_name%_TransactionConfig database, you should find a table
named: StatusManager, open it and you should found several records.

The default used by the website is called: Site (make sure it exists in the
table).

Use that name "Site" as application Id

"Steve H." wrote:

> Hi,
> I am trying to save my basket as Purchase Order. The process completes wit
h
> no errors, however I edited the Purchase order schema to allow for 2 weakl
y
> typed properties (1 integer and the other is a string).
> When I try to save my order after the values are added the following error
> is raised:
>
> System.InvalidOperationException: This overload of PurchaseOrder.Save meth
od
> cannot be used when HonorStatus flag is set to true in the configuration
> file. Please use the other overload which takes applicationId as parameter
.
>
> Here is a code sample:
>
>
> PurchaseOrder PO = Basket.SaveAsOrder();
> PO["CountA"] = 23;
> PO["PID"] = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
> PO.Save(); // The error is raised here , at this line
>
> Any ideas ?
>





[ Post a follow-up to this message ]



    Re: Purchase Order, HonorStatus & ApplicationId  
atsofttech@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-20-07 06:18 PM

On Jan 19, 5:54 pm, "IlkkaP" <nom...@spam.com> wrote:
> Look at the StatusManager table in the transactionconfig database.
> The table indicates who can modify orders that are in a certain state.
> I guess you are using the Site application id, which can modify only order
s
> in NewOrder state.
> You can add a new row for Site application id or use PO.Save("LOB Adapter"
)
> to override.
> Or disable StatusManager from the web.config. I'd recommend the first
> option.
>
> For more info see the documentation of theSavemethod.
>
> "Steve H." <Ste...@discussions.microsoft.com> ha scritto nel messaggionews
:5BBDD09C-60C0-45A9-B79F-FD827722A5CE@microsoft.com...
>
>
> 
> 
> 
> 
> 
>
> - Show quoted text -


I am new in Commerce Server 2007.
Could you please tell what is LOB Adapter
How to do this?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:47 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register