B
BudOlly
Hello,
I've been testing PWA fairly rigorously, and I've come across an
inconsistency in the enterprise resource pool. I created a resource named
"Test", and tied it to an active directory user account, so I can use this
account to test out permissions and so forth.
I've been writing code to process queries on the DB's, and I've noticed that
in the dbo.MSP_TIMESHEETS table there are two rows, each with the same
timesheet period, and same resource name, but different RES_UIDs.
So, it seems that I have two resources with the same name, but different
UIDs. However, this discrepancy does not exist is the dbo.MSP_RESOURCES
table, so I'm assuming that somehow during deleting and recreating the
timesheets, the DB became out of sync. At this point, the resource does not
even show up in the server settings under "Delete Enterprise Objects", but I
can see it by looking directly in the SQL Database in the dbo.MSP_RESOURCES
table.
Does this make sense, and if so, could somebody please explain to me how
this happens, so I can avoid it in our production environment. Or, if this
is an unavoidable downfall of PWA, is there a recommended 'Best Practice' for
keeping the DB's synchronized?
Is it safe to delete that row from the MSP_TIMESHEETS table? With the
orphaned record, my query results are returning the wrong number of
timesheets for a given period.
I've been testing PWA fairly rigorously, and I've come across an
inconsistency in the enterprise resource pool. I created a resource named
"Test", and tied it to an active directory user account, so I can use this
account to test out permissions and so forth.
I've been writing code to process queries on the DB's, and I've noticed that
in the dbo.MSP_TIMESHEETS table there are two rows, each with the same
timesheet period, and same resource name, but different RES_UIDs.
So, it seems that I have two resources with the same name, but different
UIDs. However, this discrepancy does not exist is the dbo.MSP_RESOURCES
table, so I'm assuming that somehow during deleting and recreating the
timesheets, the DB became out of sync. At this point, the resource does not
even show up in the server settings under "Delete Enterprise Objects", but I
can see it by looking directly in the SQL Database in the dbo.MSP_RESOURCES
table.
Does this make sense, and if so, could somebody please explain to me how
this happens, so I can avoid it in our production environment. Or, if this
is an unavoidable downfall of PWA, is there a recommended 'Best Practice' for
keeping the DB's synchronized?
Is it safe to delete that row from the MSP_TIMESHEETS table? With the
orphaned record, my query results are returning the wrong number of
timesheets for a given period.