Hi everybody.
I installed corresponding to our documentation a History DB. The History DB is installed on the same server and uses the same DB User like the Identity Manager DB.
If I start the schedule "Import process information directly" in the History DB Designer
the following error message comes up:
"
Process step parameter 3d23749a-c297-4a5d-a409-baf27a817814:
[Job]
ComponentAssembly=SQLComponent
ComponentClass=VI.JobService.JobComponents.SQLComponent
Task=Execute SQL
Executiontype=INTERNAL
[Parameters]
ConnectionProvider=VI.DB.ViSqlFactory,VI.DB
ProcID=CA5D65EE-4808-4179-A929-D4E8B7EAD4C6
Value=0
WithoutTransaction=True
<x><i>2013-09-02 21:01:27 +02:00 - Info: Last process step request succeeded.<x>
<e>2013-09-02 21:01:27 +02:00 - VI.JobService.JobComponents.SQLComponent - 3d23749a-c297-4a5d-a409-baf27a817814: Errors occured
[810023] Error during execution of statement: exec vi_GetRawFromSource '<DB-Server>', '<Identity Manager DB>', N'', N'', 0
[810143] Database error 266:
[System.Data.SqlClient.SqlException] Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.
at VI.JobService.ProcessorThread._ThreadFunction()
at VI.JobService.ProcessorThread._ExecuteJob(Job job)
at VI.JobService.JobComponents.SQLComponent.Activate(String task)
at VI.JobService.JobComponents.SQLComponent.Task_Execute()
at VI.DB.SqlExecutor.SqlExecuteNonQuery(String sqlStatement)
at VI.DB.SqlExecutor.SqlExecuteNonQuery(IQueryProvider provider, IDataParameter[] parms)
---- Start of Inner Exception ----
at VI.DB.SqlExecutor.SqlExecuteNonQuery(IQueryProvider provider, IDataParameter[] parms)
at VI.DB.SqlExecutor._SqlExecuteNonQuery(DbStatement stmt)
---- Start of Inner Exception ----
at VI.DB.Implementation.SafeDbCommand.ExecuteNonQuery()
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
"
and the SQL Log show this:
"
2013-09-02 21:01:26 +02:00 - Info - (5 ms) - select UID_DialogAuthentifier from DialogAuthentifier where (AssemblyName = N'JobComponent') and (Class = N'VI.JobService.JobComponents.DbJobComponent+ComponentAuthenticator') and (IsEnabled = 1)
2013-09-02 21:01:26 +02:00 - Info - (1 ms) - select 1 where exists (select 1 from DialogProductHasAuthentifier where ((UID_DialogAuthentifier = N'07DADCBF-4574-4EB1-A7E0-550315D00F53') and (Ident_Product = N'Default') and (isnull(IsInActive , 0) = 0)))
2013-09-02 21:01:26 +02:00 - Info - (< 1 ms) - select uid_configparm, uid_parentconfigparm, configparm, enabled, value from DialogConfigParm order by fullpath
2013-09-02 21:01:26 +02:00 - Info - (< 1 ms) - select username, vipropertiesdate, vipropertieskey, uid_dialoguser from DialogUser where username = N'sa'
2013-09-02 21:01:26 +02:00 - Info - (< 1 ms) - select uid_database, description, productidentifier from dialogdatabase where IsMainDatabase = 1
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'CONFIG'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'MODEL'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'CAPTION'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'ASSEMBLY'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'NOTIFICATION'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'USERDATARESIDENT'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'RIGHT' and username = N'sa'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select UID_Database from DialogDatabase where IsMainDatabase = 1
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select xdateupdated from dialogscriptassembly where name = N'WebServices_CD0E9E5ADF4B40389B87A87F21A00B02'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select xdateupdated from dialogscriptassembly where name = N'VIDScripts_CD0E9E5ADF4B40389B87A87F21A00B02'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select xdateupdated from dialogscriptassembly where name = N'VIScripts_CD0E9E5ADF4B40389B87A87F21A00B02'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select xdateupdated from dialogscriptassembly where name = N'Scripts_CD0E9E5ADF4B40389B87A87F21A00B02'
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select ConnectionString, UID_DialogHistoryDB from DialogHistoryDB where isnull(IsInactive, 0) = 0
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select GetUTCDate()
2013-09-02 21:01:27 +02:00 - Info - (< 1 ms) - select changecounter from dialogsemaphor where changecontext = N'USERDATARESIDENT'
"
I doesn't think that this issues is caused by missing permissions.
Kind regards
Georg