NAV2013 upgrade error
ruben_callens
Member Posts: 2
Dear,
I'm stuck on the upgrade to NAV2013.
This is in the second fob in the "Transfer data" step.
I first got an error on the function "UpdateDimSetIdInWorkTables()". (CU 104049)
I fixed that with adding custom code:
Now i get an error in the next function "UpdateParentTable(DimTableID : Integer;ParentTableID : Integer;SourceDimFieldName : Text[80];DestDimFieldName : Text[80])" (CU 104049)
I get following error while running for the "ledger entry dimension":
"This message is for C/AL programmers: A call to System.Int32.get_HasRows failed with this message: The type of one or more arguments does not match the method's parameter type."
The error is produced on this line of code:
"IF SQLReader.HasRows THEN"
Could anyone give me some advise?
This is an error in the function in a dll.
Thx in advance
I'm stuck on the upgrade to NAV2013.
This is in the second fob in the "Transfer data" step.
I first got an error on the function "UpdateDimSetIdInWorkTables()". (CU 104049)
I fixed that with adding custom code:
IF TempDimSetEntry."Dimension Value Code" <> '' THEN BEGIN
/// my custom code 20131202 RC START: add the dimension values to their table if they don't exit
GRec_DimensionValue.RESET;
GRec_DimensionValue.SETRANGE(Code ,TempDimSetEntry."Dimension Value Code");
GRec_DimensionValue.SETRANGE("Dimension Code", TempDimSetEntry."Dimension Code");
IF GRec_DimensionValue.FINDFIRST = FALSE THEN BEGIN
GRec_DimensionValue.INIT;
GRec_DimensionValue."Dimension Code" := TempDimSetEntry."Dimension Code";
GRec_DimensionValue.Code := TempDimSetEntry."Dimension Value Code";
GRec_DimensionValue.INSERT;
MESSAGE('DimensionValue Created: %1',GRec_DimensionValue.Code);
END;
/// end of my custom code RC stop
TempDimSetEntry.INSERT(TRUE);
Now i get an error in the next function "UpdateParentTable(DimTableID : Integer;ParentTableID : Integer;SourceDimFieldName : Text[80];DestDimFieldName : Text[80])" (CU 104049)
I get following error while running for the "ledger entry dimension":
"This message is for C/AL programmers: A call to System.Int32.get_HasRows failed with this message: The type of one or more arguments does not match the method's parameter type."
The error is produced on this line of code:
"IF SQLReader.HasRows THEN"
Window.UPDATE(3,Text011);
SQLMgt.GetSQLConnection(SQLConnection);
SQLConnection.Open;
SQLCommand := SQLCommand.SqlCommand;
SQLCommand.Connection := SQLConnection;
SQLCommand.CommandTimeout(0); // wait indefinitely for the command to finish.
IF ParentTableID <> 0 THEN BEGIN
KeyOffset := 0;
SQLCommand.CommandText := UpdateLedgerEntryTableQry(ParentTableID,KeyOffset,DestDimFieldName);
SQLCommand.CommandTimeout(0); // wait indefinitely for the command to finish.
SQLCommand.ExecuteNonQuery;
END ELSE BEGIN
SQLMgt.GetSQLConnection(SQLConnection2);
SQLConnection2.Open;
SQLCommand2 := SQLCommand2.SqlCommand(TableIDReaderQry,SQLConnection2);
SQLCommand2.CommandTimeout(0); // wait indefinitely for the command to finish.
SQLReader := SQLCommand2.ExecuteReader;
IF SQLReader.HasRows THEN
WHILE SQLReader.Read DO BEGIN
ParentTableID2 := SQLReader.GetInt32(0); // Parent Table ID
Window.UPDATE(2,GetTableName(ParentTableID2));
....
Could anyone give me some advise?
This is an error in the function in a dll.
Thx in advance
0
Comments
-
The upgrade step 2 works fine, and you shouldn't modify it.
Instead look at your data and find the bad data and clean up the data.0 -
Hey,
Did you find a solution of issue?
I am also facing the same issue during upgrade Step 2 NAV 2009 TO NAV 2013.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 329 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

