Getting error when replaying past events #448
-
Hi, I am following the tutorial and I am stuck on the topic when trying to create my second projector TransactionCountProjector I have created DB table, projection and projector. But when I am trying to replay the past events, I am getting error:
which is referring to below line:
My code for projector is:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
A projection must always be explicitly marked as writeable, also when created. Try |
Beta Was this translation helpful? Give feedback.
-
is there no solution for this problem? |
Beta Was this translation helpful? Give feedback.
Anyone who is looking for the answer:
I resolved this by adding a public method to my TransactionCount Model
The
Projection
wrapper interfere whenever you try to save the model. By default, it considers the uuid column name asuuid
But in my case, it was named asaccount_uuid
. So by using that method, I instructed the Projection to useaccount_uuid
as uuid name