Renaming Existing Member Names

We are trying to do a long list of outline Member name changes (~200 changes) for Level 0 or Parent Level members and noticed the API function ESBOTLRENAMEMEMBER . It looks like this could be used by others and have seen several Threads in OTN talking about the function, but I haven't seen any posts pointing to a working Excel VBA to do a Find/Replace with this function. Can Anyone point to a working VBA code to do a find/ replace?
what I am trying to do is have a worksheet with a "Original Names" and a column with "New Names" and have the code to a loop through the list.
This sounds like a basic task that many folks could use. Does anyone have something similar that they have created?
Thanks ahead of time!
Robert

I was doing exactly this recently with a 9.3.1 ASO cube. The forum will screw up the formatting but you can probably work out what's going on. Note the ???? placeholder for the number of lines and placeholders for APPNAME etc. This is very basic and features no error trapping - it was for a one time deal in a development environment, not regular and / or production use.
Any use is entirely at your own risk.
Good luck!
============================
Public Sub UpdateOutline()
Dim Init As ESB_INIT_T
Dim ObjDef As ESB_OBJDEF_T
Dim ProcState As ESB_PROCSTATE_T
Dim lngCount As Long
Dim strOldName As String
Dim strNewName As String
Dim lngInst As Long
Dim lngCtx As Long
Dim lngStatus As Long
Dim lngOutline As Long
Dim lngMember As Long
Dim intItems As Integer
'Init API
Init.Version = ESB_API_VERSION
lngStatus = EsbInit(Init, lngInst)
'Log in
lngStatus = EsbLogin(lngInst, "SERVER", "USERNAME", "PASSWORD", intItems, lngCtx)
'Open the outline
lngStatus = EsbSetActive(lngCtx, "APPNAME", "DBNAME", intItems)
With ObjDef
.AppName = "APPNAME"
.DbName = "DBNAME"
.FileName = "DBNAME"
.hCtx = lngCtx
.Type = ESB_OBJTYPE_OUTLINE
End With
lngStatus = EsbOtlOpenOutline(lngCtx, ObjDef, ESB_YES, ESB_YES, lngOutline)
'Loop through all members in the sheet
For lngCount = 1 To ????
strNewName = ActiveSheet.Cells(lngCount, 1)
strOldName = ActiveSheet.Cells(lngCount, 2)
lngStatus = EsbOtlFindMember(lngOutline, strOldName, lngMember)
lngStatus = EsbOtlRenameMember(lngOutline, lngMember, strNewName)
Next
'Write the outline
lngStatus = EsbOtlWriteOutline(lngOutline, ObjDef)
'Restructure
lngStatus = EsbOtlRestructure(lngCtx, ESB_DOR_ALLDATA)
'Call EsbGetProcessState until completed
lngStatus = EsbGetProcessState(lngCtx, ProcState)
While ProcState.State <> ESB_STATE_DONE
     Application.Wait DateAdd("s", 10, Now())
     lngStatus = EsbGetProcessState(lngCtx, ProcState)
Wend
'Unlock the outline
lngStatus = EsbUnlockObject(lngCtx, ESB_OBJTYPE_OUTLINE, "APPNAME", "DBNAME", "DBNAME")
'Close the outline
lngStatus = EsbOtlCloseOutline(lngOutline)
'Log out of server
lngStatus = EsbLogout(lngCtx)
'Terminate API instance
lngStatus = EsbTerm(lngInst)
End Sub

Similar Messages

  • Renaming a member name

    <p>Is there any way to rename a member name using rule file? I amusing Application Manager 6.5.1</p><p>Thanks in Advance.</p>

    h_user:<BR><BR>Unfortunately you can not. members must be renamed using Application Manager.<BR><BR>Sorry.

  • HELP!! RENAME EXISTING DB NAME

    Is there any way or tool to rename the existing database name. We are using Oracle 8i.
    Please help...
    null

    1. In Contract Management right click on the project and select "Save As Template"
    2. Give the template a Name and Title and click Ok. This usually takes a few minutes to complete. Once done the project template will show under the 'Templates' folder, with a message saying it is not showing the control center as it's only a template.
    3. Right click on the top All Projects node and select "New Project"
    4. Select to give the project a new Name and Title and click Next
    5. Select the option "Use Template" (select 'Yes' to the message that pops up) and in the drop down list select the newly created template from above.
    6. Click Next and as it is being copied from the template there is no requirement to fill out any mandatory information so simply click Finish.
    snowey

  • How to rename existing domain name.

    Hi Team,
    I need to rename my existing domain name and below are infrastructure details of domain.
    Domain Function level, windows server 2008 R2 SP1
    Forest Function level, windows server 2008 R2 SP1
    One child domain is conected to it.
    Many applications are AD integrated.
    Regards,
    Deepak Sharma

    domain rename. The perfect recipe for a headache....
    see:
    http://jorgequestforknowledge.wordpress.com/2010/10/09/should-you-do-a-domain-rename-or-not-that-s-the-question/
    Cheers,
    Jorge de Almeida Pinto
    Principal Consultant | MVP Directory Services | IAM Technologies
    COMMUNITY...:
    DISCLAIMER: This post is provided "AS IS" with no warranties of any kind, either expressed or implied, and confers no rights! Always evaluate/test yourself before using/implementing this!

  • Unable to rename the member name

    Hi,
    We are getting the below error when trying to rename the member.
    Error: The server returned an error processing UpdateLocalProp: Object reference not set to an instance of an object
    Anybody can tell why we are getting this error.
    Thanks
    Kumar

    Hi Kumar,
    Did you upgrade recently from a older version of DRM to 11.1.2? I had faced this issue after the upgrade.
    Thanks,
    Prasad

  • How to change member names in mass

    Hi,
    Does anyone know if it is possible to change about 100 member names all at once in Essbase instead of doing this manually?
    Thank you!

    Good idea, Sunil, and I've done this in the past.  You don't even necessarily need to do that 'dummy parent' stuff if you have a source file from which you can build the entire dimension again with the 'remove unspecified' option.
    I've also used Glenn's approach.
    What you really must think about in either situation is whether any of the new names match existing member names.  That definitely complicates things.
    Honestly, if you don't already have the code written, for a strictly one-off 100 member change it would probably be faster to suck it up and work through them in EAS.  But where's the fun in that, right?

  • How to rename the SharePoint Document Library existing file name using Web service

    Hi,
    How to rename the SharePoint Document Library existing file name using SharePoint Web service.
    Is it possible. How could i do it?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    Lists.UpdateListItems Method
    would be helpful for your requirement.
    Here is a blog with code demo for your reference:
    http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Can't name new folders or rename existing folders in Finder

    I can't name new folders or rename existing folders in Finder. I've never had this happen before. I tried both using the new folder icon and choosing "new folder" from the actions icon. The only unusual thing I'm doing now is working with Spaces enabled, but I can't imagine that this has anything to do with the problem. Selecting and hitting "return" doesn't allow me to either erase existing text or overwrite with new text. Any ideas?
    Thanks.
    Sue A.

    Same here --
    I just created a new folder and couldn't change its name. Finder would give me "more info" (permissions certainly not an issue) and allow me to delete (and then recreate) the folder, but not change its name.
    Problem came from out of the blue, on a one-week-old system with all OS updates. Also found this old thread, which also suggests a Finder restart: http://discussions.apple.com/thread.jspa?messageID=8989639
    So that'll probably do it, but what gives?
    Not so impressed with 10.5.7 so far... first a complete system crash while doing no more than downloading updates (a few hours after booting up for the first time), then networking stopped working (see http://discussions.apple.com/thread.jspa?threadID=2003868), now this...

  • Renaming Member Names

    I have member names that I need to change in Planning 9.2. I know I can change the member names one by one in Planning, but that would take a long time. I have 350 members that I need to be changed from N1 - N350 to B1 - B350. Does anybody know a way to change the the member names automatically? I haven't found anything in HAL yet. Regards.

    I generally suggest the member names be static codes and the alias be the only thing which changes -- this does affect your code readability however allows you to use HAL and other methods to rename the alias.
    Other folks may have the answer to how to rename using HAL however our method didn't require that.
    Good Luck,
    -John

  • Member name already exists???

    Hiwhen i am trying to load my members dynamically i get this warning."Alias xyz already used as a member name"I checked the datasource and found that 'xyz' is not used as member name.and also it is not used as alias for any other member.(warning message number 1241114)can any one please help in this regard.

    I believe this "XYZ" alias name, already used in existing essbase outline.Thanks

  • Can we reuse existing application name if i renamed existing application while updating application.

    Hi I want convert my existing application universal to ipad app. but this is not possible. But if i rename my app name and submitted to appstore for review. Then can i reuse my existing app name again?

    You can use CIM to configure the storefront.
    It will give you an option of configuring storefront with/without publishing.
    By CIM you can configure the database/application and servers.

  • Essbase Member Name Rename

    Hi,
    I rename or flip the names of two members of my sparse dimension.
    Two Step + 2
         2S Est + (8)
         2S Non Est + (287)
    User ask me to flip the names change 2S Est member name to 2S Non Est and 2S Non Est to 2S Est. After doing this total of these members always wrong, I just flip the names and it gives me the total of original members even after change the names.
    If I run my calc script of Budget it just double the total of all members.
    Please help me on this issue
    Thank you,
    T.Khan

    IF you flip two member names in the outline, Essbase thinks you just moved them to a new location. In order to actually flip them requires a two step process . First rename bothe members to something different. save the outline, then second name them to what you want them to be and save the outline again.
    So if you have members Bob and Bill and want to switch them, name Bob bob_1 and Bill Bill_1 save the outline, then name bob_1 to Bill and Bill_1 to Bob and save the outline again

  • How to rename existing members in an Essbase Outline

    Hi there,
    I would like to do as follows:
    1. List all members at Level-0 of a specified dimension (or parent member) that have names matching a wildcard string. e.g. names begining with 'JWC'.
    2. Delete the Level-0 members that satisfy the above condition. I must verify the list from 1 above before deleting the members.
    3. Rename remaining/existing members at Level-0 of the dimension (or parent member) specified above by attaching a required prefix to the existing name.
    Note:
    1. I am working with an historical cube and I must preserve past year data. Hence I cannot select "Remove Unspecified" on the dimension build rule as my current data set contains data for current year only.
    *kp> The level-0 members that I need deleted contains data for current year only, hence I can safely delete them.
    2. I am expecting some sort of script/s (CALC or Maxl?) that will allow me to do the above tasks (List, Delete, Rename) without any manual input.
    3. I must get this done by 31 Jan and before rolling out the oldest year data. Hence I urgently need your help here!
    Kind regards,
    Kamlesh.
    Message was edited by:
    user616142

    Thank you for your response. Being a novice, I must
    say that I am quite hesitant in taking steps that I
    am unfamiliar with, esp when dealing with a
    production cube that takes about 6hrs to load when I
    have a limited timeframe! However with additional
    guidance (see my kp>comments below), I may be able to
    try your method.No problem, we were all novices once upon a time ;-)
    > - export the outline using the Olap Underground
    Outline Extractor
    (http://www.appliedolap.com/default.asp?ID=51)
    p> Can I export the outline to just any location as I
    believe it will simply be a text file?Correct.
    > - do the necessary clean up to the exported
    outline text file
    kp> If this is the same delete & rename steps I want
    done, then I need help on some kind of script that
    will allow me to do this as it involves 1000s of L0
    members. (I am also considering the tips from Glenn)
    > - make a backup of your cube
    kp> I did. Just curious - the L0 members that I need
    deleted have actually been added via a change I made
    to the dim build rule. I had saved the cube folder
    before running the rule. I would normally restore the
    entire folder so that all components are in sync.
    Just one doubt: can I copy/paste the changed dim
    build & data load rules to another location, restore
    the cube from backup, and then simply copy/paste the
    saved rule files to replace the old ones? This will
    save me from having to delete the new L0 members.My suggestion is to tear down and rebuild based upon the edited outline export. If you find it easier to work in the outline directly, or to modify your load rules, that is your choice.
    > - export L0 data in columns from cube
    kp> Will the same Olap Underground Outline Extractor
    utility enable me to do this?No, this is a standard operation in Essbase. You should be able to do an export either from a MaxL session or from the console. Check the docs for details.
    > - build a load rule to load the export (so you
    can ignore errors from records that will no longer
    load)
    kp> Is there anything I need to be aware of here as I
    must get all the data reloaded onto original cube.If the members to be deleted have no data, then there should be no errors. If they do have data but the members will not be rebuilt, you will have to redirect where the data should load to. That will either mean editing the load data to point to the new member names, using alternate aliases, or recreating the load data for the new member names. Hard to be more specific as you situation may vary.
    > - reset and rebuild the cube using the edited
    outline export file
    kp> I am assuming I can manually delete the parent
    members and then run the rule based on the export
    file to rebuild the dimensions?Yes, the idea is to edit the outline text file to meet your new requirements and then to build the cube again. You can either manually clear the dimension of all members or rebuild with the revised outline file using a Remove Unspecified option load rule.
    >
    Thank you for your suggestions.
    Regards.Hope it helps. Be sure to document the actual steps you use for the next time you have to do this (and there will be a next time, trust me ;-)

  • Changing member names

    Hi,I have an existing outline and I want to change some member names. The outline has data in it. I was wondering if it is possible via a script or a rules file to rename some members without it affecting the data.Thanks in advance.

    A load rule will only add new members or add new members removing members it does not recognize (Using remove unspecified), but will not do a rename. You could do it using the API. One word or warning if you have two members A and B and change B to C and A to B what will happen is the data from A will disappear, A will now contain B's data and C will not have any data. You would have to do this in two stepsChange B to C then Save the database then change A to B and save the database. Please let me know if you have any other questionsGlenn [email protected] Solutions Inc.

  • How can I pass value based on member names in a script in 11.1.1.3

    I want to pass a value to only those members of CostCenter dimension which has "5" in their name.
    Eg.
    C12345100
    C34565210
    C34217890
    So in the above case the value should exist only in the above 2 cost centers.
    Can someone guide me in the right direction to accomplish this ?
    Thanks in advance

    Just now I got more clearance on the requirement.
    I want to create blocks only on the selected Cost Centers & Business Unit combination.
    I have the following members in both these dimensions
    Cost Centers
    C12345980
    C12345981
    C12345982
    Business Unit
    BU5980
    BU5981
    BU5555
    Now I want to pass a value to one of the dense dimension members from Measure dimension (member name = CrtBlk) to only those CCs & BUs where the last 4 digit matches.
    So in this case it will be for only the first 2 cost centers.
    Thanks in advance.

Maybe you are looking for

  • Copy Clipboard in OSX - Can I access a history of "copied" items?

    Hi- It sure would be cool if there were a feature that allowed one to view a list of the past 10 or so copied items / photos / text, etc. - so that he didn't have to keep reverting back to various original sources in order to work with and paste a nu

  • Automatic start of slideshow

    How can I make my ipad start showing a slideshow automaticly when not used for a while and keep it running until I manually turn it off?

  • How do I change the default program to open PDFs?

    I would like Adobe Acrobat 9 to open my PDFs as a default program. When I followed the Adobe prompt to update (pop up), it changed the default to Adobe Reader 10.

  • ITunes is freezing every time I try to sync any device

    Every time I try to sync iPad, iPhone or iPod Classic, iTunes crashes.  I have tried "netsh winsock reset" and deleting anti-virus programs. I have uninstalled and re-installed.  iTunes works fine by itself so long as I don't try and sync a device --

  • PRINTING PHOTOS WITHOUT BORDERS

    i am trying to print 4 x 6 inch photos using photo paper with the appropriate orientation and selecting the 4x6 inch option for size but i cannot seem to print without borders, how do i print photos on photo paper without borders