key active for just one company?

Reinhard
Member Posts: 249
Hello...
I restored a database to a test location, but I didn't restore the keys in the payroll ledger entry table, it was taking too long.
Now I wanted to run some payroll functions, I got an error that the key doesn't exist, and I had to activate it. That went fine...
When I wanted to run the same function in the other company, but it gives me the same error about the missing key. However the key is active and enabled, and the SIFT levels are all there. I can't seem to fix the problem... since it has already been fixed?!... I tried to reactivate but that didn't help either.
Thank you so much for any suggestions or additional info you might have!
- Reinhard
4.0 SP3 Native
I restored a database to a test location, but I didn't restore the keys in the payroll ledger entry table, it was taking too long.
Now I wanted to run some payroll functions, I got an error that the key doesn't exist, and I had to activate it. That went fine...
When I wanted to run the same function in the other company, but it gives me the same error about the missing key. However the key is active and enabled, and the SIFT levels are all there. I can't seem to fix the problem... since it has already been fixed?!... I tried to reactivate but that didn't help either.
Thank you so much for any suggestions or additional info you might have!
- Reinhard
4.0 SP3 Native
0
Answers
-
Native restore.
Yes it was odd... however I figured out that wasn't the problem.
The error message that displays:The sum of the values in the Amount field cannot be calculated because the current key does not contain all the fields being filtered.
You must select a key that contains the fields in the filter. The order of the fields is unimportant.
Filters:
Employee No.:...
Payroll Control Type:...
Payroll Control Name:...
Basically the error message cuts off after a certain amount of characters, and didn't display ALL the fields being filtered on.
I stepped through it with the debugger saw that indeed the current key did NOT have all of the fields being filtered.0 -
The best way to fix this is to go back to the original database and export all Table objects. Then import them to the new database with a REPLACE ALL. This will go through and reactivate the keys correctly. That's how I normally fix it.
This issue happens a lot if you interrupt the restore process. Often what happens is that in a particular table, the key is activated and sorted, but you killed the restore before it created all the SIFT, and if you look you will see some un-ticked.David Singleton0
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