Corda Accounts: could not find party error

Hello,

I’ve started to modify an existing flow with corda accounts. In the previous flow, 4 nodes participated. In my current flow, two of them remain as nodes and two of them are changed to account (Hosted on another node). I could create a state and sign transactions from the account hosting node. But when I try this on other node, I’m getting the following

java.lang.IllegalArgumentException: Could not find Party for 
Anonymous(DLDZHuPvrktNG5hZS22UY5saYG8ekt1wmqUETyywhM8dhd)

I’m sharing the account information with all other nodes, when creating the account. Could anyone help me with this?

It seems like you are missing something - either the way you are sharing the account info or you are not using the correct key to sign the transaction.

Take a look at the sample here. This sample is with tokens but the idea of account sharing and signing can be looked at here.