Event stream must have a single source in order to retrieve its source.

40 views
Skip to first unread message

Timothy Pratley

unread,
Oct 1, 2011, 9:10:43 PM10/1/11
to ncqrs-dev
I am getting an exception when trying to execute a command:
"Event stream must have a single source in order to retrieve its
source."

What does this mean and how can I track it down... I don't believe I
have multiple event stream sources (how would I know??)

StackTrace is
at Ncqrs.Eventing.UncommittedEventStream.get_SourceId() in C:\Users
\root\ncqrs\Framework\src\Ncqrs\Eventing
\UncommittedEventStream.cs:line 86
at
Ncqrs.Eventing.Storage.InMemoryEventStore.Store(UncommittedEventStream
eventStream) in C:\Users\root\ncqrs\Framework\src\Ncqrs\Eventing
\Storage\InMemoryEventStore.cs:line 54
at Ncqrs.Domain.UnitOfWork.Accept() in C:\Users\root\ncqrs\Framework
\src\Ncqrs\Domain\UnitOfWork.cs:line 91
at
Gr1d.CommandExecutors.Agent.LaunchExecutorBase.AcceptCommand(IUnitOfWorkContext
context, Launch command) in C:\git\gr1dorg\vNext\Shared\src
\Gr1d.CommandExecutors\CodeGen\CommandExecutors.cs:line 222
at
Gr1d.CommandExecutors.Agent.LaunchExecutorBase.ExecuteInContext(IUnitOfWorkContext
context, Launch command) in C:\git\gr1dorg\vNext\Shared\src
\Gr1d.CommandExecutors\CodeGen\CommandExecutors.cs:line 257
at
Ncqrs.Commanding.CommandExecution.CommandExecutorBase`1.Execute(TCommand
command) in C:\Users\root\ncqrs\Framework\src\Ncqrs\Commanding
\CommandExecution\CommandExecutorBase.cs:line 53
at
Ncqrs.Commanding.ServiceModel.CommandService.<>c__DisplayClassc`1.<RegisterExecutor>b__b(ICommand
cmd) in C:\Users\root\ncqrs\Framework\src\Ncqrs\Commanding\ServiceModel
\CommandService.cs:line 86
at Ncqrs.Commanding.ServiceModel.CommandService.Execute(ICommand
command) in C:\Users\root\ncqrs\Framework\src\Ncqrs\Commanding
\ServiceModel\CommandService.cs:line 55
at Gr1d.Test.TestScenarios.TestWorld() in C:\git\gr1dorg\vNext\Tests
\src\Gr1d.Tests\TestScenarios.cs:line 79

mynkow

unread,
Oct 3, 2011, 7:35:55 AM10/3/11
to ncqr...@googlegroups.com
Show me the code please.

Karell Ste-Marie

unread,
Jul 11, 2012, 3:42:10 PM7/11/12
to ncqr...@googlegroups.com
I'm getting the same error...

Which part of the code would it be ideal to share? It's rather... verbose

On Monday, 3 October 2011 07:35:55 UTC-4, mynkow wrote:
Show me the code please.

Karell Ste-Marie

unread,
Jul 11, 2012, 4:21:44 PM7/11/12
to ncqr...@googlegroups.com
Never mind, found it

If you trigger multiple events, make sure you pass the same SourceId
to the events
--

------------------------------------------------------------
Karell Ste-Marie
CIO - BrainBank Inc
MCP, MCAD, MCSE, ETC
Reply all
Reply to author
Forward
0 new messages