NAV2017 TaskScheduling not work

garak
Member Posts: 3,263
Hi,
i've aproblem with the taskscheduling on our NAV2017 CTP25 installation on SQL Server 2014.
The following error is shown in Eventlog:
Server instance: Instance1
Tenant ID: <ii>default</ii>
<ii>Session type: RoleTailoredClient
Session ID: 5
User: USERTEST
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSqlException
ErrorNumber: 137
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: None
Message:
<ii>Der folgende SQL-Fehler war nicht erwartet.
Must declare the scalar variable "@tenantid".
Statement(s) could not be prepared.
SQL-Anweisung:
INSERT INTO [DATABASE].[dbo].[$ndo$taskscheduling] ([id],[tenantid],[not_before],[state],[Server Instance ID],[retries]) VALUES (@id,@tenantid,@notbefore,@state,@serverInstanceId,@retries)
StackTrace:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ThrowNavSqlException(SqlExceptionAdapter exceptionAdapter, NavSqlCommand command,
So why he doesn't no the TenantID? But in line 2 he know it ("default")
Regards
i've aproblem with the taskscheduling on our NAV2017 CTP25 installation on SQL Server 2014.
The following error is shown in Eventlog:
Server instance: Instance1
Tenant ID: <ii>default</ii>
<ii>Session type: RoleTailoredClient
Session ID: 5
User: USERTEST
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSqlException
ErrorNumber: 137
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: None
Message:
<ii>Der folgende SQL-Fehler war nicht erwartet.
Must declare the scalar variable "@tenantid".
Statement(s) could not be prepared.
SQL-Anweisung:
INSERT INTO [DATABASE].[dbo].[$ndo$taskscheduling] ([id],[tenantid],[not_before],[state],[Server Instance ID],[retries]) VALUES (@id,@tenantid,@notbefore,@state,@serverInstanceId,@retries)
StackTrace:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ThrowNavSqlException(SqlExceptionAdapter exceptionAdapter, NavSqlCommand command,
So why he doesn't no the TenantID? But in line 2 he know it ("default")
Regards
Do you make it right, it works too!
0
Comments
-
Aren't you under NDA?
Can you post these CTP issues?0 -
Yes i'm under NDA, also posted there, but no answer :-(
so founf the solution self:
System send:
declare @id uniqueidentifier;
declare @tenantId nvarchar(128);
declare @notbefore datetime;
declare @state int;
declare @serverInstanceId int;
declare @retries int;
set @id='862546B2-3598-43B3-8BE2-E2DAF7C1B3EA';
set @tenantId=N'default';
set @notbefore='2016-09-13 22:00:00';
set @state=1;
set @serverInstanceId=0;
set @retries=0;
INSERT INTO [Demo Upgrade NAV (10-0)].[dbo].[$ndo$taskscheduling] ([id],[tenantid],[not_before],[state],[Server Instance ID],[retries])
VALUES (@id,@tenantid,@notbefore,@state,@serverInstanceId,@retries)
<--- variable @tenantid declared as @tenantId but used in Insert as @tenantid.
Why it works on "Demo" instance from DVD --> Server Collaction.
Our System that the admin gives us is --> SQL_Latin1_General_CP850_CS_AS :-/ :-/
The default of on DVD is Latin1_General_CI_AS
So, with the CP850 the variable not declared, with CI_AS it is
Post can be closed.Do you make it right, it works too!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions