Forum Discussion

kmd's avatar
kmd
Contributor
2 years ago

Clearing data for a very specific intersection / Data Unit

Hi all, Trying to delete an unnecessary member from the metadata but it won't delete due to 'existing' data.  There isn't actually a value where it says a value exists but OS believes there is data ...
  • JackLacava's avatar
    2 years ago

    If you have a problem, if no one else can help, and if you can find them, maybe you can use... finance Api rules!

     

    api.Data.ClearCalculatedData(True, True, True, True, "A#MyAccountParent.Base", "F#MyFlowParent.Base") '... other filters if necessary
    api.Data.SetDataCell("A#MyAccount:F#MyFlow", 0,True) ' other members as necessary, if not specified will fall back to None

     

    Drop that in a Custom Calculate, execute it with the related Data Management step, and you should be able to clear the specific intersections you need.

  • MikeG's avatar
    2 years ago

    There could be translated data at a non-local currency.  Go to System > Database tab > then Data Records.  Put in the Time in the format T#2023 (full year) and in this view Value1, Value2, Value3 represent the Months M1, M2, M3.  This will at least identify the intersection of data where the data exists.

    If it is only translated data, and the source data in Local has been deleted, then you just need to run a Force Consolidate to clear the translated data.  

    Lastly, I have a BR that will do a targeted clear of a data cell.  If you paste a reply here of the intersection you are trying to clear (Entity, Account, Origin, etc) I'll mock it up and post the code here for you.

    Hope that helps.