Dataport for Record Link table
paddypower
Member Posts: 98
Hi Everyone.
V: NAV 2009
DB: SQL
I am trying to import in to the Record Link table (20000000068) using a dataport. But I am getting an error with the Record ID field.
"The datatype RecordID is not valid for the SourceExpr"
I have some coding knowledge but this is a pain. Also I could not find any other answers to this.
Cheers
PADDYPOWER
V: NAV 2009
DB: SQL
I am trying to import in to the Record Link table (20000000068) using a dataport. But I am getting an error with the Record ID field.
"The datatype RecordID is not valid for the SourceExpr"
I have some coding knowledge but this is a pain. Also I could not find any other answers to this.
Cheers
PADDYPOWER
0
Comments
-
[Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
I would start trying to do a format and write that in the file and when importing, doing an EVALUATE. I didn't try it out though.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi Everyone,
I am still stuck on this issue of creating a dataport to the Record LinkID.
Can anyone help, just as a note I am a consultant not a developer.
Your help is greatly appreciated.
CHEERS
PP0 -
I am trying to import in to the Record Link table (20000000068) using a dataport. But I am getting an error with the Record ID field.
"The datatype RecordID is not valid for the SourceExpr"
Is RecordID the name of your variable? This is a reserved term... try:
vRecordID or something else.
The field in the table is "Record ID" with a space. Without it, referencing RECORDID.RECORDID This data type contains the table number and the primary key of a table. You can store a RecordID in the database but you cannot set filters on a RecordID.
-Lavin
"Profanity is the one language all programmers know best."0 -
Hi,
What is the use of the Record Link table. Where is the entry point for this?
Thanks,0 -
As with the original poster I cannot add the field "Record ID" to my dataport. I am getting the same error when I try to save and compile. It says, "The Data Type RecordID is not valid for the SourceExpr." Referring to the type of data being a RecordID. Is there some kind of work around for this or can you simply not data port directly into the "Record Link" table?0
-
kriki wrote:I would start trying to do a format and write that in the file and when importing, doing an EVALUATE. I didn't try it out though.
Did you try this?
Declare a variable of type TEXT.
Instead of using RecordID use your variable as a source expression.
Then:Record Link - OnBeforeExportRecord() MyTextVariable := FORMAT("Record Link"."Record ID");
andRecord Link - OnAfterImportRecord() EVALUATE("Record Link"."Record ID",MyTextVariable );0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions