Skip to Content

C4C Studio: Error message "Change of the party scheme is not allowed"

Hi,

I'm creating an opportunity with some ABSL coding and get the error message in the debugger and frontend every time I am reading data from a Sales Quote:

The code is, for instance:

var op = Opportunity.Create();
var quote = CustomerQuote.Retrieve( quote_id);
// error message is thrown when executing the next statement:
var quote_valid_from = quote.ValidityPeriod.TimePointPeriod.EndTimePoint.Date;
[1:E] Message     (OPPORTUNITY, ROOT) Change of the party scheme is not allowed.

So, although I am reading from a Sales Quote, the Opportunity=>Root node throws an error? And why an error about the party scheme?

Oddly enough, if I create the opportunity after reading the quote data, the error does not appear:

// No error thrown in this order
var quote = CustomerQuote.Retrieve( quote_id);
// error message is thrown when executing the next statement:
var quote_valid_from = quote.ValidityPeriod.TimePointPeriod.EndTimePoint.Date;
var op = Opportunity.Create();

Does anybody have an explanation for this? Or is this an error and I should raise an incident?

Thanks for your help!
Stefan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers