Increment a cds field with value leads to circularity???

Brass Contributor

Context; making a canvas app based on CDS.

- I created a new entity with a field named StartX (type integer) and Distance (type integer)

- I added a business rule with IF logical test

- evaluating the True branche leads to the formula: StartX = StartX + Distance

 

When I store this business rule, I receive a message that the rule is successfully evaluated.

 

But when I activate the rule, I receive an error stating that the formula contains a cyclic reference.

 

I used the same formula earlier in another version of the App, based on a SharePoint list. As expected, the same formula is then successfully evaluated.

 

So, my question is: why doesn't a business rule in a CDS allow for the evaluation of  x=x+1? 

0 Replies