Hi Daulet
Here are some ideas on tracking down what is missing.
First, determine the consolidation table that holds the data. In my example below, it will be ct_co0033
Using "sp_help ct_co0033" you can determine the columns in the table
Using this, I build the following SQL (I do it this way, as using "where not exists" can be very slow)
SELECT
a.period,
b.name 'entity',
c.name 'orig entity',
d.name 'account',
e.name 'flow',
f.name 'audit',
g.name 'partner',
h.name 'share',
i.name 'currnecy',
j.name 'technical origin',
k.name 'global origin',
l.name 'journal',
a.enumber 'JE nr.',
a.amount,
a.convamount,
a.consamount
FROM ct_co0033 a
left outer join ct_entity b ON a.entity = b.id
left outer join ct_entity c on a.entorig = c.id
left outer join ct_account d on a.accnt = d.id
left outer join ct_flow e on a.flow = e.id
left outer join ct_nature f on a.nature = f.id
left outer join ct_entity g on a.partner = g.id
left outer join ct_entity h on a.ctshare = h.id
left outer join ct_curncy i on a.curncy = i.id
left outer join ct_techorig j on a.techorig = j.id
left outer join ct_site k on a.globorig = k.id
left outer join ct_journal l on a.journal = l.id
NOTE: your table will have additional columns (the custom dimensions you have added). You can simply add these to the SQL
If I run this, it will look like this - each identifier has been replaced by the name of its corresponding table
I verify that the nr of rows is correct
Once we have the data, what are we looking for?
1) NULL values in mandatory dimensions
This is always a sign of a removed dimensions
For example, if I delete account TP110
This will lead to a NULL value in the 'account' column of my table
Note: by using "select * from ct_co0033" you will find the ID (in this case 3)
2) NULL values in other columns
Null values in other columns are not necessarily an issue. A null in the 'enumber' simply means that data did not come from a journal.
However, a NULL in 'journal' where the 'enumber' is not NULL is an issue (as you have a journal entry where the ledger has been removed)
For "dimensional analysis" dimensions, you need to cross-reference the ID
Take for example this record - "partner" and "share" are dimensional analysis, so not every amount is broken down by these dimensions. A NULL can therefore be expected
If you look at the ID's of this record, they are both 0, so in this case the NULL is normal
If the ID had been any other value than 0, you would have an issue
** Resolving the problem **
If you have found a missing ID, you need to get it back into the table
If you are in a 'child' site, you should be able to use the send/receive mechanism
If the member was created in the site, create the member in the Dimension Builder
...and update its ID directly with SQL
Hope this helps you a little.
Marc







