'The expression Record cannot be type-converted toaCodevalue

e.vidal
Member Posts: 11
Firt al all, sorry but my english is not good...
'The expression Record cannot be type-converted to a Code value.'
This one is the mistake that goes out for me after Cronus España installs the Nav 4.0 sp2 in the base of information of tests and on having entered the orders or on having entered the offers.
I can do neither orders nor offers because it gives me this mistake and it me pulls the screen. Yet I have not done anything to report of to introduce a client.
In opened Orders another mistake goes out for me when the client introduces 10000 (or any other one):
'Reference to the member Block of the variable could not be solved'.
Then I have created another company and have formed it and when I am going to introduce offers / orders he(she) says the same thing to me...
any idea?
Thanks and regards
eli
'The expression Record cannot be type-converted to a Code value.'
This one is the mistake that goes out for me after Cronus España installs the Nav 4.0 sp2 in the base of information of tests and on having entered the orders or on having entered the offers.
I can do neither orders nor offers because it gives me this mistake and it me pulls the screen. Yet I have not done anything to report of to introduce a client.
In opened Orders another mistake goes out for me when the client introduces 10000 (or any other one):
'Reference to the member Block of the variable could not be solved'.
Then I have created another company and have formed it and when I am going to introduce offers / orders he(she) says the same thing to me...
any idea?
Thanks and regards
eli
0
Comments
-
No matter how many companies you create you will get the same error. Use the debugger to check the exact location of the error. This kind of error is generally thrown when you are using are using a variable in the program but have not defined the same properly or the reference to the variable is not found.Diptish Naskar
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/0 -
Hi,
I use the debugger to check the exact location of the error:
Codeunit 7171 Sales Info-Pane Management
In Function: CustCommentExists(CustNo)
...
EXIT(Cust.Comment); ---> ERROR!!!!
Break On Error.
The source code is not available.
Yes, I can compile all (involved) objects. But it's over...
any other idea?
Thanks and regards
eli0 -
e.vidal wrote:Hi,
Codeunit 7171 Sales Info-Pane Management
In Function: CustCommentExists(CustNo)
...
EXIT(Cust.Comment); ---> ERROR!!!!
Break On Error.
The source code is not available.
Yes, I can compile all (involved) objects. But it's over...
any other idea?
Thanks and regards
eli
Hi eli,
Have you customized something in the customer area or in the info pane management? I was not able to get the point.....But its over....do please let us know, whether you got any objects marked after you had run the compilation of the related objects.Diptish Naskar
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/0 -
e.vidal wrote:Hi,
I use the debugger to check the exact location of the error:
Codeunit 7171 Sales Info-Pane Management
In Function: CustCommentExists(CustNo)
...
EXIT(Cust.Comment); ---> ERROR!!!!
Break On Error.
The source code is not available.
Yes, I can compile all (involved) objects. But it's over...
any other idea?
Thanks and regards
eli
Is there something wrong with the call or the return, are you sending a code 20 and returning a Boolean?
The function code should read something like
Cust.GET(CustNo);
Cust.CALCFIELDS(Comment);
EXIT(Cust.Comment);
This schould be called as
IF CustCommentExists(Customer."No.")THEN
Some code
It looks like the Function is being called with a record and not a code value
IF CustCommentExists(Customer)THEN
Some code
Giving the Message: 'The expression Record cannot be type-converted to a Code value.'
DavidAnalyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
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