Dataport - updating fields

fredrikree
Member Posts: 7
I'm trying to update a customer record via a dataport that imports files with only three fields.
Those fields are updated, but all other fields are emptied/defaulted.
AutoSave, AutoUpdate and AutoReplace properties of the dataport are all 'No', though I have tested changing them to 'Yes'.
I want the other fields in the record to stay as the are - how do I do that?
Regards,
Fredrik
Those fields are updated, but all other fields are emptied/defaulted.
AutoSave, AutoUpdate and AutoReplace properties of the dataport are all 'No', though I have tested changing them to 'Yes'.
I want the other fields in the record to stay as the are - how do I do that?
Regards,
Fredrik
0
Comments
-
Try to set the AutoSave and AutoUpdate to Yes but AutoReplace to No. Please make sure that the 3 fields that you import contains the primary key on the table.0
-
"No." is a primary key, isn't it? And it's in the import. I tried the advice regarding AutoUpdate etc, but no change...0
-
Throw out automatic processes of the dataport. Read the data into variables, and do it through code - it is simple:
Customer.GET(No); Customer.VALIDATE(Field1,FIeld1Value); ... Customer.MODIFY;
No and Field1Value etc. are global variables read in dataport...0 -
Thank you!
I also found out, I missed the Customer.GET statement (used Customer.INIT instead, which probably caused the undesired result)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
- 322 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