Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SiteServer inventory scriptor problem.

Status
Not open for further replies.

babak62

Programmer
Oct 8, 2003
1
US
Hello everybody:
Here is the script for my is my script in the last stage of plan.pcf pipeline at the Inventory stage.

function MSCSExecute(config, orderform, context, flags)

for each item in orderform.items

if item.quantity > item.[_product_in_stock] then

orderform.[_purchase_errors].add "We are "

& item.quantity - item.[_product_in_stock]

& " short of SKU " & item.[_product_sku]

& " to fulfill your order"

end if

next

MSCSExecute = 1

end function

This suppose to alert the customer about the item missing in the shopping card. Here is the error message that I got:

Error Type:
Commerce.MtsPipeline (0x80020101)
Unable to report pipeline load failure to event log [Diamonds at Reflecting Concepts]Component Execution failed for component[0x18] hr: 0x80020101 ProgID: Commerce.Scriptor.1 MscsOpen() failed. Error Loading Script. Parsing failed. Expected statement & item.quantity - item.[_product_in_stock] Line: 8.
/i_util.asp, line 74

Any Ideas???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top