For Entity: '[EntityName]' SurrogateKey: '[EntitiyKey]' Object reference not set to an instance of an object.

8 Years Ago
JorgeR
BIZAGI STUDIO

Summary

After a replication process, the data in the source Database is not displayed in Bizagi's corresponding table and an error is displayed in the Event Viewer. However the configuration and the environment parameters are correctly configured.

Applies to

Bizagi 10.x .NET

Symptoms

The replicated table cannot retrieve the information from the source database and the Event Log displays the following error message:

For Entity: '[EntityName]' SurrogateKey: ‘[EntitiyKey]' Object reference not set to an instance of an object.
BizAgi.EntityManager
   at BizAgi.EntityManager.CEMReplication.RunReplication(CReplication oRep, Int32 idEntityTo)
   at BizAgi.EntityManager.CEMReplication.ReplicateEntity(Int32 idEntity)
   at BizAgiStudio.EntityManagerPlugin.ReplicateNowProcess.DoReplicationProcess(IProgressStatus oProgressStatus)
   at Vision.Forms.GenericBackgroundWorker.BackgroundWorker`3.WorkerThreadStart()

Cause

The problem is caused because there are not enough permissions for the user connected to the project's database.
In order for the replication to work, the user must be able to create and delete tables in the database. 

Solution

Verify that the user used to connect to your project’s database has enough rights and permissions to create and delete objects in the database. To do this follow the corresponding instructions in the links below, according to your database’s engine.


Details

Last Modified:8 Years Ago
Last Modified By: Andread
Type: ERROR
Level: Intermediate
Article not rated yet.
Article has been viewed 12.5K times.

Options