Probelm-Dataport Import for BIN table

Naaz_nav
Member Posts: 34
HI,I am creating a datport for bin table.Want to import data in the same.I ma getting error as field cannot be empty.please specify a value..I searched mibuso but none of soultions work.The field in the file are bin code.zone,desc.I ma careting dataport eith fields like code,zone,desc.Acc to mibuso since it was not working i took these variaables & on afterimport wrote the code as bin.setrange(location code,abc);
if bin.find('-') thne
bin.code=code;
bin.zone=zone
bin.desc=desc;
bin.insert;
NOt importing saying field cannot be empty.please spcify a value.
please hlep
if bin.find('-') thne
bin.code=code;
bin.zone=zone
bin.desc=desc;
bin.insert;
NOt importing saying field cannot be empty.please spcify a value.
please hlep
0
Comments
-
If your creating new entires then your FIND doesn't find anything.
Why even have that line of code?
The dash - in find looks to search for the first record in the table.
And another tip is if you only use "then" it's only working on the next line in your code.
You would use "Then begin........end; to encapsulate all the code.
https://msdn.microsoft.com/en-us/library/dd338872.aspx
Remove if bin.find('-') then0
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