Encoding/storage mechanism of MX_USER_PREFS attribute

Dear experts,
I was wondering whether it's possible to programmatically set a default for users' UI task favourites, i.e. the push buttons that will be displayed in their IDM Web Dynpro UI.
When investigating the AVALUE column of attribute MX_USER_PREFS in database view IDMV_VALUE_BASIC, I expected to find the same key=values pairs in clear text that are displayed when editing this attribute from a UI task. However, that's not the case. The actual AVALUEs look very different; examples are shown below.
Questions:
What encoding is used to transform the key=value pairs to their encoded form (example 1)?
Where is the actual value stored when the size exceeds AVALUE's size limit and only the MD5 hash is stored in AVALUE (example 2)?
Best regards,
Lambert
Example 1
Iy0tTm8gaGVhZGVyLS0KI01vbiBTZXAgMDEgMTY6MDg6NTUgQ0VTVCAyMDE0CkVudHJ5U2Vh
cmNoQ29tcC5UYWJsZVNvcnQuMTQuc29ydENvbHVtbj1jb2x1bW5fMQpFbnRyeVNlYXJjaENv
bXAuUmVzdWx0VGFibGUuVmlzaWJsZVJvd3M9MjUKRW50cnlTZWFyY2hDb21wLkZhdm9yaXRl
LjE1LjE9MzA2MnwwfEFjdGl2ZSBEaXJlY3RvcnkgR3J1cHBlIGFubGVnZW4KRW50cnlTZWFy
Y2hDb21wLlRhYmxlU29ydC4xNC5zb3J0RGlyZWN0aW9uPVVQCkVudHJ5U2VhcmNoQ29tcC5U
YWJsZVNvcnQuMTEuc29ydERpcmVjdGlvbj1ET1dOCkVudHJ5U2VhcmNoQ29tcC5GYXZvcml0
ZS4xMS4xPTI4OTN8MHxQcm9kdWt0IGFubGVnZW4KRW50cnlTZWFyY2hDb21wLlRhYmxlU29y
dC4xMS5zb3J0Q29sdW1uPWNvbHVtbl8xCg
Example 2
!<MD5=10AF3BF3D32F656ED90DF79BF989250C SIZE=2128>

Yes, it is possible to set the default favorites for a user programmatically. We do it whenever a user is added to the Identity Store. Editing existing favorites for users that have set them up on their own is pretty complicated, though, and we have not attempted that.
The MX_USER_PREFS attribute is Base64 encoded. If you run a To ASCII pass and run the attribute through a script that just outputs the results of the uFromBase64() function, you can look at the formatting of the attribute. It is my understanding that the MD5 hashing of the attribute is just used to try to shorten it to fit within the SQL column requirements. If you run it through the same Base64 decoding, it should still work.
All you need to do to set the favorites is to encode the text in Base64 and write it to the attribute. The important line of our script looks like this:
OutString = uToBase64("EntrySearchComp.Favorite.58.1=768|0|Create User\nComp.Favorite.58.2=792|-100|Edit Existing User\n");
Each favorite is separated by a line break, hence the "\n". The format is:
EntrySearchComp.Favorite.[Entry Type ID].[Button Order]=[Task ID]|[0 for Create, -100 for Edit]|[Button Text]
You can also swap out "Favorite" for "TableSort" and then everything from "Button Order" on is different, some examples there would be .sortColumn=column_5 and also .sortDirection=UP.
There is some header information in the attribute about when it was last edited by the user. In my script code, that is being ignored.

Similar Messages

  • Errors in the OLAP storage engine: A duplicate attribute key has been found when processing

    Hi dear MSDN Community,
    I am facing a problem while processing a cube with a customer hierarchy as follows:
    Global Account --> Main Customer --> Master Customer --> Customer
    The data comes from a flatted parent child table, that is, I create an extra column for every level of the hierarchy in the customer view. If a level is empty, then the value is filled with the previous value. Then I can use the property:
    HideMemberIf = OnlyChildWithParentName for the intermediate levels (Main and Master Customer)
    HideMemberIf = ParentName For the leafs (Customer)
    HideMemberIf = never for the root (Global Account)
    Consider this example:
    Then, for the root level I am using as the key the fields in yellow in order to avoid duplicates. However, I am getting the error message "Errors in the OLAP storage engine: A duplicate attribute key has been found when processing" while processing.
    I analyzed the query that SSAS issues to the server (select distinct ....) and I think it should work but it is still failing.
    I had similar problems with the intermediate levels but I was able to solve it using a similar procedure.
    Any help will be appreciated.
    Kind Regards.

    When are you having this error? While processing the dimension or during cube processing?
    http://blog.oraylis.de/2013/08/a-duplicate-attribute-key-has-been-found-during-processing-revisited/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to preserve encoded characters at text and attributes node?

    <greeting>hello, <World> </greeting>
    When I run a SAX parser, it automatically decodes the characters
    and make the document ill-formed after the round trip.
    <greeting>hello, <world> </greeting> --- ERROR
    Q: How do I preserve those special characters at text node and attribute nodes?
    Thanks

    Thanks for you guys' help.
    It's great to get a real-time help from this online community.
    Yue,
    What I attempted to do was
    0. I have 6G <database> document having 1.4 M <entry>s.
    1. Read one <entry> at a time using SAX
    2. Save each <entry> to a buffer
    3. Pass the buffer to a Unmarshaller ( JAXB ) and create a JavaObject
    Repeat above moving to next <entry> until reaches to the end.
    At step 1, unescape happens
    becomes >< becomes <
    and & &
    making my doc malformed (which is legal) :(
    At step 2, I did the following to perserve <, >, and &
    str = str.replaceAll( ">", "&gt;");
    str = str.replaceAll( "<", "&lt;");
    str = str.replaceAll( "&", "&amp;");At step 3, JAXB is now happy to get a healthy XML input
    <greeting>hello, <World></greeting>
    It turned out to be nobody's fault but myself.
    It was a good lesson, though.
    Thanks, buddies

  • Using XML As A Storage Mechanism

    Hi All,
    There seem to be some good examples of using the event driven XML parser for reading XML, but I can't find any examples of how to write out xml. Is there any documentation or objects in iPhone for writing out XML documents?
    Thanks
    Ray

    I really can't speak for Apple. And I may have misunderstood your original question, since I thought it was only about the iPhone. If you're only asking why there's no XML writer on the iPhone I can only guess it's because the priorities for a mobile device are quite different from those of a desktop. In any case I can well imagine that Apple didn't want to hold up the first SDK release in order to add an XML writer. Maybe it's planned for the future.

  • Data Set - Encode Attribute Value?

    I'm using an HTML data set with an active region. Some of the
    data is to be used as attribute values (e.g. as the "value" of an
    "input" tag), and some of the data is to be used within the HTML of
    the document (but should not be rendered as HTML). What is the best
    way (recommended practice) for encoding the data for these uses? In
    other words, does the spry framework provide such utilities? Is
    there a way to pull the data out of the data set already encoded
    for use as an attribute value? Or with >, <, and &
    properly encoded for use in HTML?

    I guess you are also using SpryData.js in the same page.
    SpryData.js has a function called
    Spry.Utils.encodeEntities(string);
    It will encode your Entities for you and returns the changed
    string. If you data is already encoded before you brought it in to
    the SpryDataset, make sure you didnt set the columnType to html.
    If not you can do something like this
    <script type="text/javascript">
    function encodeEntities(region, lookupFunc)
    return
    Spry.Utils.encodeEntities(lookupFunc("{dsProducts::desc}"));
    </script>
    <div spry:region="dsProducts">
    <ul spry:repeatchildren="dsProducts">
    <li>{name} - {function::encodeEntities}</li>
    </ul>
    </div>

  • Accessing Terminal Services Attributes from Active Directory LDAP property userParameters

    After many years of complaints, Microsoft has done little to address the overwhelming outcry for information on the accessing the Terminal Services properties through LDAP.
    I found this document that fully describes the Encode/Decode mechanism for the userParameters attribute.
    https://msdn.microsoft.com/en-us/library/ff635189.aspx
    The property is used for more than terminal services, but even Microsoft is confused about it's use it would seem.  I won't go into details, but for all those trying to access the terminal services attributes, this document should help.
    I have not yet converted the mapping into a JAVA module, so please don't ask for help.  I just need a more public place to put this, than the currently buried location at microsoft, to make for easier retrieval from the web community of java developers.

    Hi,
    What about other changed attributes? Are other attributes retrieved by DirSync control turn to be encrypted form?
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Using one azure table storage account for many customers with their own data

    I'm developing app that will allow the customers to store their data in azure. However, currently I have no idea how to split  accounts of the customers in azure. Yes, I'm just started to read the documentation, but maybe someone can point me to the
    right topic?

    It seems like it might be worth starting from the general guidance to developing multitenant cloud applications - this resource might help: http://msdn.microsoft.com/en-us/library/ff966499.aspx
    The patterns covered in this guidance might apply to data storage mechanism chosen for the application - whether it's Azure Storage , Azure SQL DB or else.

  • Oracle SELECT and storage technique

    Hi,
    I have 2 questions please. First of all, what kind of storage mechanism is used in Oracle e.g Oracle 11g, is it HEAP BASED or some other?
    Actually I am not able to search how Oracle stores the data into tables as I've heard that heap based storage is a mechanism in which the data is saved in the same order as it is being inserted?
    What is the Linear Search?
    I've performed test on more than 40 tables with simple SELECT and Elapsed time is always favoring 16k block size when compared to 4k and 8k data block size.
    Just thinking the reason that why SELECT is favoring 16k in all the tests, because the data is saved in hundreds and thousands of data blocks and if it is in the smaller data block, it has to go and search more and more data blocks, is it true?
    Please help me with your expert opinions and if possible please suggest me some book or paper which explains the ORACLE STORAGE MECHANISM AND SEARCHING MECHANISM i.e. LINEAR search or what?
    I'll appreciate the suggestions.
    Thanks a lot.
    Best Regards,
    John

    John-M wrote:
    I see you've also re-opened an older question which overlaps with this topic - so I'll be making some comments there as well: Re: single col v/s multi col table elapsed time comparison
    I have 2 questions please. First of all, what kind of storage mechanism is used in Oracle e.g Oracle 11g, is it HEAP BASED or some other?
    The most commonly used mechanism is heap-based - rows are put wherever the next convenient space happens to be.
    Actually I am not able to search how Oracle stores the data into tables as I've heard that heap based storage is a mechanism in which the data is saved in the same order as it is being inserted?
    Not quite - but see other post.
    What is the Linear Search? Depends how technical you want to be - the implication is that you "start at the beginning, work through to the end and then stop". The search it linear because the time it takes to complete it proportional with the volume of data available.
    >
    Please help me with your expert opinions and if possible please suggest me some book or paper which explains the ORACLE STORAGE MECHANISM AND SEARCHING MECHANISM i.e. LINEAR search or what?
    The Concepts manual is pretty good on storage.
    Regards
    Jonathan Lewis

  • A duplicate attribute key has been found when processing

    Hi
    When I process one of my dimensions it fails and I get the following error:
    Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'Customers', Column: 'DisplayName', Value: 'Stephen Grant'. The attribute is 'Display Name'.
    I don't know if this is significant, but the attribute to which it is making reference was added through BIDS 2008 (the cube was originally created with BIDS 2005). 
    There are no duplicates of 'Stephen Grant' in the DisplayName column. Not that it should matter if there were as this attribute has a cardinality of Many, with an rigid attribute relationship directly to the dimension's key attribute. The Key column for the Display Name attribute simply refers back to the same (DisplayName) column in the table.
    If I delete this record, or even just update the DisplayName field from 'Stephen Grant' to something else, the dimension processes just fine. I can't work out what it is about this record that is stopping the dimension from being able to process.
    Can anyone help me figure out what's going on?
    Julia.
    P.S. I am using SSAS 2008 on Windows Server 2008

    Hello there,
    Does anybody has the complete resolution for duplicate entries data. I am showing the data below .
    RegionName
    BranchName
    LoanOfficerFullName
    PRIME - TEAM NORTHEASTERN
    CALIFORNIA
    ALONA  HAYES
    PRIME - TEAM WESTERN
    RENO-DAMONTE RANCH
    VINCENT LOTITO
    PRIME - TEAM WARTON
    NEWARK (Chicago)
    CHRISTOPHER CLIFTON
    PRIME - TEAM WARTON
    GRAND HAVEN (West Michigan)
    SEAN  FOLEY
    PRIME - TEAM SALMANS
    LAWTON (Amarillo)
    THOMAS  STEARNS
    PRIME - TEAM BARTON
    CALIFORNIA
    ALONA  HAYES
    PRIME - TEAM ROBINSON
    LAS VEGAS
    ANGELA DEATON
    PRIME - TEAM ROBINSON
    LAS VEGAS
    HERMAN  VANDER VELDT
    PRIME - TEAM ROBINSON
    LAS VEGAS
    DAWN ROBINSON
    PRIME - TEAM ROBINSON
    LAS VEGAS
    MICHAEL  BIRK
     Here i have the Hierachies in order LoanOfficerFullName-->BranchName-->RegionName. Loan Officer is the lowest level. I had created another column and make that unique entries so that I could make the unique column as the Key and the hierachies i have linked with the key column value. The issue
    is that i am getting the expected result in OLAP  from data side. But the data is not getting aggregated like Team Barton is coming twice though for the Dimension I make IsAggregatable property to True. If anybody can help me I will aprecciate. If any other clarification need I can provide.

  • Error when build cube - A duplicate attribute key has been found when processing...

    Hi all,
    I got an error “Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table…” when built new cube. It looks strange in my case. I created a small example to re-produce this error as below:
    I create a data source table as below
    AgencyName(varchar(50))-----MediaSpend(float)
    OE------------------------------------100
    Œ-------------------------------------200
    Then I create a cube base on this data source with a dimension AgencyName and 1 Measure MediaSpend.
    The error happened again. This look link a special case when ‘OE’ and ‘Œ’ existed in a dimension.
    Do you have any ideas on this?
    Thanks,

    Hi khoana,
    Here is a similar thread about this topic for your reference, please see:
    A duplicate attribute key has been found when processing:
    http://social.technet.microsoft.com/Forums/en-US/sqlanalysisservices/thread/7c72639b-a050-4243-9f1d-4da906e981d5/
    Regards,
    Elvis Long
    TechNet Community Support

  • G/L Account Attribute

    Greetings to all.  My question centers around defaulting G/L accounts in the shopping cart.  We are running the extended classic scenerio and have configured the default G/L account deterimination via the IMG by setting product category, source system and account assignment to a G/L account.  That works as expected. 
    The business is now requesting that a user be able to set their own G/L account to override the configruation.  This would be based on the following criteria:
    Username
    Company Code
    Product Category
    Source System
    Account Assignment
    I know this can be accomplished by using the BBP_DETERMINE_ACCT BADI and creating a Z table to house the requirements, my question is what is the best way to provide an interface to the user to enter their requirements? 
    The users are already setting a few attributes by themselves, like cost center and account assignment.  My desire would be to have them enter this default G/L account information through the same mechanism (i.e. attributes).  The problem is that I have more than one value they would need to enter (i.e. Company Code, Product Category, Source System and Account Assignment).  Any ideas?
    I should also mention that this company has very limited material masters and doesn't plan to utilize materials to any great extent in the future, so G/L account determination based off materials is not a concern.
    Best Regards,
    Shawn O'Connor

    Yann-
    The core issue here is that while we default in an account based on the standard configuration, the business would like the user to have the ability to default in their own account.  They would do this by specifing a key that would include any or all of the following: company code, product category and account assignment (i.e. CC, OR, etc.). 
    The reason for this is because different departments account for the same items differently.  An example would be office supplies.  Our default configuration would charge the office supplies expense account, however certain departments do not use the office supplies expense account they use the general expense account.  This is a simple example, I have others where the accounting differs down to a team level.
    Best regards,
    Shawn

  • What is the use of version attribute in jnlp tag??

    Hello,
    I want to know what is the use of version attribute in jnlp tag.
    For ex:
    <jnlp spec="6.0+" codebase="$$codebase" href="$$name" version="1.1">
    </jnlp>
    In the spec it explains:
    In the Jnlp tag:
    version = The version of the application being launched, as well as the version of the JNLP file itself.
    1. Is this version attribute would work as version attribute in jar tag. Ex: <jar href="application.jar" version="1.1"/> ?
    i.e. can we specify different jnlp's with the same name as we do for jar's with the help of version.xml.
    Any help is greatly appreciated.
    //Anjali

    Hi Reddy,
    If one Info Object depends on another info object we will make that dependent info object as a compounding attribute of main Info object.
    Eg: Storage Location – Plant
    In above eg there is no meaning of Storage Location without Plant. So, we will make storage location as compounding attribute of Plant.
    Regards,
    Sreehari.

  • Duplicate attribute key in date Dimension

    Hi,
    I have created a date dimension using this code
    http://www.codeproject.com/Articles/647950/Create-and-Populate-Date-Dimension-for-Data-Wareho
    It contains one attribute 'Month'
    I have created one fact table which contains the following dates
    StartDate
    EndDate
    CreationDate
    CompletionDate
    AssignedDate
    ReceivedDate
    ActualStartDate
    AcutualEndDate
    DecisionDate
    I have created a relationship with date dimension created by using above code. Relationship of above attributes have been created with DimDate.Date attribute. I have not created Calendar Hierarchy yet. 
    When I am processing the cube I am getting the following error
    Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dim_Date', Column: 'Month', Value: '10'. The attribute is 'Month'.
    In date dimension have data from 1990 to 2050. so Month is being repeated for each year. I am not sure Why am I getting this error.
    Any Help much appreciated.
    MH

    Hi Mustafah,
    For the error "Errors in the OLAP storage engine: A duplicate attribute key has been found when rocessing: Table: <tablename>, Column: <columnname>. Value: <value>. The attribute is <attributename>", it  can occur in multiple
    situations. In many cases, the recommended solution is to change the KeyColumn by setting it to a unique attribute, or by creating a composite key that results in a unique value when multiple attributes are evaluated as a unit. Here are some document which
    describe this error and the solution of it.
    References:
    Analysis Services: Errors in the OLAP storage engine:
    A duplicate attribute key has been found when processing
    You get “A duplicate attribute key has been found when processing ..” error message when processing a dimension
    A duplicate attribute key has been found when processing
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Unable to Storage Location in PPOMA

    Hi SRM experts,
    I'm working on SRM7.0 and have the following issue:
    Tcode: PPOMA_BBP
    Tab: Extended Attributes
    Radio button: Storage Locations
    I am able to select my R/3 backend system from drop down but unable find any entries for Storage Locations i.e. when I press F4 in filed stor.location, message "No values found" is displayed.
    If I enter the Storage Locations manually (which I have created in R/3) and press enter, message "No storage location assigned to value, Message no. BBP_ATTR017" is dispalyed.
    Additional info: I have successfully replicated locations (i.e. Plants) from R/3 and able to view the list of Plants from F4 help in the radio button Locations. Due to this, I'm finding an error "Application "Confirmation": Define the attribute LAG" for an user in PPOMA & unable to create any shopping cart.
    Please help.
    Thanks,
    Hari

    Hi,
    To update the location from ECC you need run the report
    BBP_ATTR_TEXT_REFRESH. Please do the following:
    Go to transaction SE38 -> Enter BBP_ATTR_TEXT_REFRESH -> Execute (F8)
    -> Enter 'Attribute'-'LAG', "your backend system" and EN
    -> Run the report (make sure the test mode option is deflagged)
    -> Select all -> Refresh,
    this updates the descriptions from the backend.
    If this not solve the issue, please check in your backend system if
    the note 1175255 is applied. If not, please apply it.
    After performing above mentioned steps - go PPOMA_BBP while adding storage locations under Ext attributes tab:
    1. Input your 'Source System' and select applicable 'Storage location' from the dropdown list and do not key in manually.
    Hope this should resolve your issue.
    Regards,
    GM

  • [Upgrade] XML & Encoding

    Hi,
    <u><b>Context</b></u>
    I developed in a BW 3.0 environment an AJAX BSP application. I use the <i>CALL TRANSFORMATION id</i> to return a XML string to the calling page where some Javascript parses it (<i>getElementsByTagName</i>, ...) and updates input fields.
    <b>In BW 3.0B</b>
    The BSP pages were encoded in <b>iso8859-1</b>
    The XML returned was also <b>iso8859-1</b> encoded.
    <b>In BI 7</b>
    Now, we upgraded to BI 7 with Unicode.
    The BSP pages are now encoded in <b>utf-8</b>  (when I look at the HTTP Header Fields)
    The XML returned is <b>utf-16</b> encoded  (it is the responseText attribute that I refer to)
    The problem is that the responseXML object which I use in Javascript seems to be either corrupt or unreadable (I bet on encoding reasons).
    I tried to specify the encoding like this :
    CALL METHOD response->set_header_field( name  = 'Content-Type'
                                            value = 'text/xml; charset=utf-16' ).
    but without success.
    <u><b>Questions</b></u>
    Do I have to :
    1) Re-encode the XML string
    2) Use binary instead of character
    Besides, is there a way to inspect the responseXML (today, I launch alert(responseXML.childnodes.length);)
    Thanks in advance.
    Best regards,
    Guillaume

    Hi Raja,
    Many thanks for these valuable insights !
    I was able to<b> correct my code partly</b>.
    Indeed, the responseXML object is back to normal with the following addition to CALL TRANSFORMATION id :
    OPTIONS xml_header = 'WITHOUT_ENCODING'
    But, as I am dealing with several tables that I gather into one XML string, <b>I use the cl_xml_document_base class</b> like this :
        CREATE OBJECT wcl_xml_doc_inputs.
        CALL METHOD wcl_xml_doc_inputs->parse_string( stream = w_xml_inputs ).
        CREATE OBJECT  wcl_xml_doc_except_msg.
        CALL METHOD wcl_xml_doc_except_msg->parse_string( stream = w_xml_except_msg ).
        wcl_node_inputs = wcl_node_inputs->get_parent( ).
        wcl_node_inputs->append_child( new_child = wcl_node_except_msg ).
        CALL METHOD wcl_xml_doc_inputs->render_2_string
          EXPORTING
            pretty_print = 'X'
          IMPORTING
            stream       = o_xml.
    This might also affect the final encoding because the responseXML is unreadable yet again.
    I tried to set some :
    CALL METHOD wcl_xml_doc_inputs->set_encoding( charset = ... ).
    with iso8859-1, utf8, utf-16 but still unsuccessful.
    Thanks in advance.
    Best regards,
    Guillaume

Maybe you are looking for