Problem creating data in specific company

MGoosen
Member Posts: 17
Hey everyone,
Adding data in a table is not possible. The error message states that the data is already present, but it really is new data. I checked. The weird thing is that it is possible to add data for this table in a different company.
Is there a reason data cannot be added to one company, but can be added to another?
Adding data in a table is not possible. The error message states that the data is already present, but it really is new data. I checked. The weird thing is that it is possible to add data for this table in a different company.
Is there a reason data cannot be added to one company, but can be added to another?
0
Best Answer
-
Hey everyone,
A colleague of mine knew the answer. Turns out the data was added twice to the table. There was an setting to add all data made for this object to another company and because the table was shared over all companies, this setting tried to add data that was already there.
Just changing the table to not share the data and problem solved.
Thanks anyway, everyone.0
Answers
-
Possible reasons:
1. Filtering - your filter filtered out existing data
2. Code type field in primary key - your new data differs only in case and code field changes case to upper by default
3. Validation trigger - validation trigger - wrong code tries to insert/modify data before all primary key data are entered.0 -
Did you delete data from SQL?0
-
The filtering is okay. All data is shown in the object. New data is changed to uppercase automatically, so differs in case is not a problem either. The new data is also not present in de SQL database. There is no code present in the object for the OnValidate and the OnInsert triggers. (When trying with the debugger, there is no stop in the code.) There is also no event subscriber.
The data of the table is shared over all companies.
After trying some other things too, it turns out if the table is NOT shared over all companies, the data can be added. So that's probably where the problem is.0 -
Hey everyone,
A colleague of mine knew the answer. Turns out the data was added twice to the table. There was an setting to add all data made for this object to another company and because the table was shared over all companies, this setting tried to add data that was already there.
Just changing the table to not share the data and problem solved.
Thanks anyway, everyone.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
- 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