Invalid attempt to call Box.yesNo running in CIL on the client and Do you want to re-fetch prices

Calling a service from Axapta and getting response -

“Stack trace: Invalid attempt to call Box.yesNo running in CIL on the client.”

This is from a .net app that first goes through Biztalk.

So this means that the call is not proceding to the next stage as it is getting stuck here.

If you make the call locally a pop up box appears “Do you want to re-fetch prices for rental order *********** based on the new quantity?” that you have to close but not sure if this can be done from a remote call.

Anyway was told that in the contract paramaters, in the price update section, there is “Prompt for Price update” and “Re-fetch price” the first should be unchecked and the second checked.

This appears to be correct though so why is it still prompting?

Thanks.

It sounds like the CIL code doesn’t run in an interactive session, therefore it can’t used client-bound code. If you call an AOS service, it’s exactly the case - there is no client to execute the code, just the AOS.