Are you getting the error when running your Activity from the Designer Studio or a User Portal ?
The reason to ask: you generally do NOT want to enter in explicit 'COMMITs' within PRPC Activities - you should allow PRPC to handle the Transaction Bounderies for you (essentially as you navigate through Flows in a User Portal, the system will issue the relevant commits for you).
In contrast, when you build and test an Activity in the Designer Studio; there is no automatic explicit commit.
This means you will need to either build two versions of your Activity (perhaps just a 'wrapper' Activity that calls the main Activity and then issues a commit), or perhaps pre-condition on your 'commit' step or something like that - to take into account the two different scenarios.
Posted: 6 years ago
Posted: 28 Aug 2016 13:18 EDT
Sateesh Kumar Vanapalli (SatishVanapalli)
Lead Architect - Technology