FIM 2010 SQL MA - Multi Valued Tables
Hello everyone,
i'm having a small issue trying to sync a multi valued attribute to my fim portal
here's the config :
2 SQL Tables :
Table 1 : has users and their personal information
View 1 : is a view i created that assembles the User ID, and User BusinessUnit --> this a multi valued view where each user can have multiple BUs
i think i followed the correct guidelines but i'm getting "invalid-attribute-value"errors on my import
the details sais that "The Attribute is not configured as a multi-value attribute"
what did i miss ? :s
thanks a lots for any help and for more help here is a snapshot of my config
Hitch Bardawil
Hi
your description of the multi-value view seems have an error. The best description on how multi-value tables must be configured can be found here:
https://technet.microsoft.com/en-us/library/cc708679(v=ws.10).aspx
you need one line with three parts of information: the anchor (i.e. employeeID), the attributeName (i.e. businessUnit in your case) AND the attributeValue (i.e. sales or marketing)
It seems your view misses the attributeName?
Henry
Similar Messages
-
Insert Value(s) in Lookup Flat Multi-valued Table with Java API
I've been looking in MDM Java API Library Reference Guide, MDM SP4 API JavaDoc, and SDN Forums for information on how to Insert/Update different values in a field in the Main Table of a given repository that belongs to a Lookup Flat Multi-valued Table using the Java API with no success.
I also haven't been successful in adding this values in the same way that I'll add a single value, using the MDM Java API, in a single-value Lookup Table (a2iFields.Add(new A2iField(FIELD_CODE,FIELD_VALUE)) for each value I want to add, like for example:
a2iFields.Add(new A2iField("Country","USA")
a2iFields.Add(new A2iField("Country","Mexico")
a2iFields.Add(new A2iField("Country","Germany")
Can anybody point me to the correct documentation that I need to read to fulfill this task? Or, even better, if someone can post a piece of code, I'll be more thankful.
Thanks for your help.HI,
little code example, where you add existing lookup values based on there record id:
int USA = 1;
int GERMANY = 2;
A2iValueArray countryArray = new A2iValueArray();
countryArray.Add(new Value(USA));
countryArray.Add(new Value(GERMANY));
A2iFields record = new A2iFields();
record.Add(new A2iField("Country", new Value(countryArray)));
Please reward points if helpful.
Regards,
Robert -
Search by qualified parameter in a LookUP Qualified Flat Multi Valued Table
I am working on a MDM development but I am having some problems the development consists in searching in MDM a certain key but the thing is that this value is stored in a Look up qualified flat multi valued table, I have implemented a code that gives me the correct results but it takes a lot of time because it goes through all the main table the ideal would be to search directly for this value but as it is in a look up qualified multi valued table I dont know how to implement this kind of search, do you have an idea how to implement this.
Main Table : ING_ROLE_PLAYER
Lookup qualified flat multi valued table : ILYTICS_SEARCH_KEY, this table has two qualifiers KEY_TYPE and SEARCH_KEY
I receive a string that represents a SEARCH KEY as a parameter to look into MDM and get some data this is I want to search using a qualifier parameter as a search parameter.
If anybody could help me it would be vey helpful
Best Regards
Michele GonzálezHi Michele,
Try the following code :
String searchKey="/the value of the input searchkey/";
// create a catalog object
CatalogData catalog = new CatalogData();
// create a search object on the main table.
Search search = new Search("ING_ROLE_PLAYER");
// create a resultset definition on the main table
ResultSetDefinition rsd = new ResultSetDefinition("ING_ROLE_PLAYER");
A2iResultSet result=null;
// adding a free-form limiting for the specified table
FreeFormTableParameter fftpRole = search.GetParameters().NewFreeFormTableParameter("ING_ROLE_PLAYER");
//add a new table 'ILYTICS_SEARCH_KEY'-the qualified lookup table to the search object.
FreeFormTableParameter fftpKeys = search.GetParameters().NewFreeFormTableParameter("ILYTICS_SEARCH_KEY");
// get the field 'SEARCH_KEY' of the 'ILYTICS_SEARCH_KEY' table for free-form search.
FreeFormParameterField fftpKey = fftpKeys.GetFields().New("SEARCH_KEY",FreeFormParameterField.SEARCH_OPERATOR_AND);
//add a free-form search parameter for 'SEARCH_KEY'
fftpKey.GetFreeForm().NewString(searchKey,FreeFormParameter.EqualToSearchType);
// obtain the result set
result = catalog.GetResultSet(search, rsd, "/any field name in main table and resultset definition/", true, 0);
Hope it helps.
Pls reward, if helpful.
Regards,
Karambir Singh. -
Reading data from Lookup [qualified flat] (multi-valued) table
I have a main table u2019ABCu2019 which has a Lookup [qualified flat] (multi-valued) field u2018XYZu2019 along with some other text fields. I am able to read data from table ABC including lookup field data, but I do not see the relation
For Ex: If for a contract in table u2018ABCu2019, there are multiple line items in look up table. I have a contract with 2 line items in u2018ABCu2019, but 4 line items in look up table (2 records each for each line item with item number). Now, when I read the data from table u2018ABCu2019 for that contract, I get all the 4 lines in result table; but item no is blank even though there is item no field in table u2018XYZu2019.
Below is the sample code:
wa_query-parameter_code = Contract ID Field.
wa_query-operator = 'EQ'.
wa_query-dimension_type = 1. "mdmif_search_dim_field.
wa_query-constraint_type =8. " mdmif_search_constr_text.
wa_string = Contract Number.
GET REFERENCE OF wa_string INTO wa_query-value_low.
APPEND wa_query TO lt_query.
CLEAR wa_query.
CALL METHOD lcl_api->mo_core_service->query
EXPORTING
iv_object_type_code = 'ABCu2019
it_query = lt_query
IMPORTING
et_result_set = lt_result_set_key.
LOOP AT lt_result_set_key INTO ls_result_set_key.
lt_keys = ls_result_set_key-record_ids.
ENDLOOP.
Contract Price for lower bound
ls_result_set_definition-field_name = XYZ'.
APPEND ls_result_set_definition TO lt_result_set_definition.
CALL METHOD lcl_api->mo_core_service->retrieve
EXPORTING
iv_object_type_code = 'ABCu2019
it_result_set_definition = lt_result_set_definition
it_keys = lt_keys
IMPORTING
et_result_set = lt_result_set.
In table lt_result_set, I see 4 records, but I do not know which 2 records belong to item 1 of the contract and other 2 records for item2.
Can anyone help me in resolving this. Any kind of help is appreciated.
Thanks,
Shekari do not quite understand ur problem statement ..
but if u have items in the main table to which QLUT entries are linked ..
then when you read the main table record (u get LinkIds at the record level) that gives u the relation to the Qlookup values
i mean for ur case - u would get only 2 values in the QLUT values for the "selected" record in the main table
am not sure if you say correctly - that you get "unlinked" values in the QLUts
so u should 2 values in lt_result_set and not 4 .. see if u are using the LinkIds properly
hth
thanks
-Adrivit -
InfoPath 2010 SQL Data Connection - Related Table is Not a Repeating Group
I'm creating a InfoPath 2010 database form. In my main connection I want to query a parent table and a related child table. When I go through the wizard, the resulting data structure is not correct. The child group that InfoPath creates isn't
a repeating group, but it should be. I've done this many times before and never had this problem.
In other words, when I open up the main data source, the little blue disclosure triangle is missing from the child group.
Any help would be greatly appreciated.
Thank you.Hi,
ODBC driver for Excel does not support deleting data.
I'm afraid there is no solution via SQL as in Oracle to use SQL with Excel you can only use ODBC, see OLEDB in previous versions to 11G.
Unfortunately with ODBC or OLEDB driver for Excel , DELETE is not supported.
regards
Mireille -
How to print only the 2 most recent values in a multi-value table field
Hi there,
I have a history table field in my report that may contain anywhere up to 100 values for any one database record... however for each database record, I only want the LAST 2 (ie. 2 most recent) values of this field to be included in the report. I then want to do a value change comparison and produce a percentage change for the field.
It seems like a simple concept... can anyone assist?
-KarenHi Jyothi,
I'm not sure I understand your qeustion.
For example:
The table field may contain a list of 4 values:
(value1) 5000
(value2) 4000
(value3) 7000
(value4) 7500
I only want the report to include value3 and value4, and then I want it to show the difference between these values (ie. 7500 minus 7000) and then also express a percentage change between these two values). I am not sure what kind of formula to use for this.
Thanks for your time!
-Karen -
Introduction
In SQL Server Reporting Services, we can define a mapping between the fields that are returned in the query to specific delivery options and to report parameters in a data-driven subscription.
For a report with a parameter (such as YEAR) that allow multiple values, when creating a data-driven subscription, how can we pass a record like below to show correct data (data for year 2012, 2013 and 2014).
EmailAddress Parameter
Comment
[email protected] 2012,2013,2014 NULL
In this article, I will demonstrate how to configure a Data Driven Subscription which get multi-value parameters from one column of a database table
Workaround
Generally, if we pass the “Parameter” column to report directly in the step 5 when creating data-driven subscription.
The value “2012,2013,2014” will be regarded as a single value, Reporting Services will use “2012,2013,2014” to filter data. However, there are no any records that YEAR filed equal to “2012,2013,2014”, and we will get an error when the subscription executed
on the log. (C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles)
Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException: Default value or value provided for the report parameter 'Name' is not a valid value.
This means that there is no such a value on parameter’s available value list, this is an invalid parameter value. If we change the parameter records like below.
EmailAddress Parameter Comment
[email protected] 2012 NULL
[email protected] 2013 NULL
[email protected] 2014 NULL
In this case, Reporting Services will generate 3 reports for one data-driven subscription. Each report for only one year which cannot fit the requirement obviously.
Currently, there is no a solution to solve this issue. The workaround for it is that create two report, one is used for view report for end users, another one is used for create data-driven subscription.
On the report that used create data-driven subscription, uncheck “Allow multiple values” option for the parameter, do not specify and available values and default values for this parameter. Then change the Filter
From
Expression:[ParameterName]
Operator :In
Value :[@ParameterName]
To
Expression:[ParameterName]
Operator :In
Value :Split(Parameters!ParameterName.Value,",")
In this case, we can specify a value like "2012,2013,2014" from database to the data-driven subscription.
Applies to
Microsoft SQL Server 2005
Microsoft SQL Server 2008
Microsoft SQL Server 2008 R2
Microsoft SQL Server 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.For every Auftrag, there are multiple Position entries.
Rest of the blocks don't seems to have any relation.
So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
Try out this snippet.
DATA lt_data TYPE TABLE OF string.
DATA lv_data TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = 'C:\temp\test.txt'
CHANGING
data_tab = lt_data
EXCEPTIONS
OTHERS = 19.
CHECK sy-subrc EQ 0.
TYPES:
BEGIN OF ty_str,
a1 TYPE string,
a2 TYPE string,
a3 TYPE string,
p1 TYPE string,
p2 TYPE string,
p3 TYPE string,
END OF ty_str.
DATA: lt_str TYPE TABLE OF ty_str,
ls_str TYPE ty_str,
lv_block TYPE string,
lv_flag TYPE boolean.
LOOP AT lt_data INTO lv_data.
CASE lv_data.
WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
lv_block = lv_data.
lv_flag = abap_false.
WHEN OTHERS.
lv_flag = abap_true.
ENDCASE.
CHECK lv_flag EQ abap_true.
CASE lv_block.
WHEN '[Auftrag]'.
SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
WHEN '[Position]'.
SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
APPEND ls_str TO lt_str.
ENDCASE.
ENDLOOP. -
How to show register attribute value in my register users report in FIM 2010 R2
Hi,
How to show register attribute value in my register users report in FIM 2010 R2?
Please suggest on this.
Regards
Anil Kumarhello,
the only way I know is manage the attribute descriptiona s a property and then enable the pivot table option "Show properties in tooltip".
But I'm interested in what you mean with "using
"OLAP pivot table extension" is an option". How this works?
Thanks
bye
Norman -
Upgrade FIM 2010 R2 Sp1 Databases from SQL 2008 R2 to SQL 2012
Hi,
I want to upgrade my SQL from 2008 R2 to SQL 2012.
FIM Databases
1) FIMService Database
2) FIMSynchronizationService Database
Mentioned above are my FIM databases running on SQL server 2008 R2 . Now I was looking for some article which could tell me if SQL can be upgraded without affecting my existing databases of FIM or if i can move these databases to a new server having SQL
2012
Activity I want to perform : Create a fresh Server of SQL 2012 and move my FIM 2010 databases over it by restoring the backups. but as per the link below it seems not possible!
http://social.technet.microsoft.com/wiki/contents/articles/5465.fimilm-how-to-move-the-backend-sql-server-synchronization-service-database.aspxHi Shivam,
Please take a look here: Release Notes for Forefront Identity Manager 2010 R2 SP1.
In the table you have tasks to upgrade SQL for FIMService and FIMSych.
FIM Service:
Upgrade FIM Service servers to FIM 2010 R2 SP1
Stop FIM Service on all servers
Backup Database [in case rollback needed]
Upgrade SQL to SQL Server 2012
Start FIM Service on all servers
FIM Synch:
Upgrade FIM Sync to FIM 2010 R2 SP1
Stop FIM Sync
Backup Database [in case rollback needed]
Upgrade SQL to SQL Server 2012
Start FIM Sync
If you are not making in-place upgrade, I would do something like here:
Stop FIM Services
Backup the databases at SQL 2008
Restore backed up databases on SQL 2012
Make sure SQL Agent Jobs are moved (FIMService)
Make sure Broker is enabled on FIMService database
On FIM machines create SQL alias using cliconfg utility. Alias should have the name of "old(sql2008) SQL" and point to new name/instance.
Start FIM Services - they would use "old" name to connect, but it would be translated to new location. So they would start.
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. -
Hi everybody,
I have two Distinct Databases on two distinct servers. (Oracle Ent. Release 10.2.0.3.0 on AIX 5.3). After I install the latest patch last week, One of the APEX installation has some problems on Home>Application Builder Page. The error message is very random and
report error:
ORA-06502: PL/SQL: numeric or value error: NULL index table key value.
When i change the view (details to icons), everything goes to normal. This error message is reflected some of the pages (report region) of some of my applications randomly. When it appears in a report region, i deselect the order method of the region, the result is normal.
But the other APEX application on the other instance has no problem. It is a bug? or Should i re-install the APEX instance?
Thank you for your interest?
Gökhan ÇATALKAYANo, but we have a reproducible test case now so we're working on it. See ORA-06502: PL/SQL: numeric or value error: NULL index table key value
Scott -
Hi,
I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
My Approach is :
a) Create a record type variable ( concists of multiple segments)
b) Create a pl/sql table type of the records type in a)
c) Created a cursor of same structure as pl/sql table type ( collects data)
d) BULK CoLLECT data from cursor into pl/sql table
e) Print the data
But during Bulk Collect i get the below error :
Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindAshish_Apps wrote:
Hi,
I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
My Approach is :
a) Create a record type variable ( concists of multiple segments)
b) Create a pl/sql table type of the records type in a)
c) Created a cursor of same structure as pl/sql table type ( collects data)
d) BULK CoLLECT data from cursor into pl/sql table
e) Print the data
But during Bulk Collect i get the below error :
Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindVerify the rows you are fetching are having the same data types as your Record like Dates should go to date , decimal should not be fetched in type defined as number etc. -
Using Import Man to load Data into Multi Value Fileds in a Qualified Table
Hi there,
When using the Import Manager, i can not use the "append" option to load data into my multi value field which is contained within my qualified table.
Manually it works fine on Data manager, so the field has been set up correctly. Only problem is appending the data during Import Manager Load.
Any reason why I do not have this option available during Field mapping in Import Manager. The selection options are shown but in gray.
Would appreciate any sugestions.
Chris HuggettThanks Sowseel
Its a good document but doesn't address my problem, maybe My problem isn't clear.
The structure(part of) that I have currently is as follows.
Main Table - Material
QFTable- MNF PN
LUField - MNF Name(Qualifier Single Value)
LUField - BU ID (Non Qualifier Multi Value)
TField - P/N- (Non Qualifier)
I know how to load data to the main and qualified tables, but what I can not do, using Import Manger, is updating the "LUField - BU ID (Non Qualifier Multi Value)" using the append functionality.
Thanks
Chris Huggett -
Hi,
Can anyone let me know what is the issue on below code and how can we avoid that? i am getting the error like below
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
v_while_loop := 1;
v_delete_char_id := v_tabtype_result_values.FIRST;
WHILE v_while_loop <> v_tabtype_result_values.COUNT
LOOP
IF check_duplicate_nc_data (v_result_view,
v_tabtype_result_values(v_delete_char_id).value,
v_collection_id,
v_occurrence,
v_plan_id,
v_delete_char_id
THEN
DBMS_OUTPUT.PUT_LINE(v_delete_char_id);
v_tabtype_result_values.DELETE(v_delete_char_id);
ELSE
DBMS_OUTPUT.PUT_LINE(v_delete_char_id||','||v_tabtype_result_values(v_delete_char_id).id||','
||v_tabtype_result_values(v_delete_char_id).value||','
||v_tabtype_result_values(v_delete_char_id).validation_flag
END IF;
v_while_loop := v_while_loop + 1;
v_delete_char_id := v_tabtype_result_values.NEXT(v_delete_char_id);
END LOOP;Change:
WHILE v_while_loop <> v_tabtype_result_values.COUNT to
WHILE v_while_loop <= v_tabtype_result_values.LASTSY. -
ORA-06502: PL/SQL: numeric or value error: NULL index table key value Repor
W've been experiencing the Oracle Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value Report’ [we are currently on apex v3.0.1]. From the forum there was a reference to a bug fix: apex bug (6416829) fixed in 3.1. When we view '6416829' in Metalink we can see the bug title but cannot see any details as it's protected. Can anyone shed some light on why it's protected or provide further details.
We have many LIVE customers reporting this error and we want to be certain it's fixed in v3.1.
(currently we are working around this by flushing the shared pool but this is not ideal).
Any help would be appreciated.Scott,
This error has been thrown several times in the past 24 hours. Yesterday several of my reports threw the error, these reports have done so in the past. This morning APEX has begun throwing the error of which I have seen only once before. This is occuring at Home>Application>My Application. The error appears when I attempt to View the report in Details mode, is OK when I view the report in Icons mode. The error is occuring in my Prodution environment which has not been updated since 2/25/2009.
As before, I edited the SQL on my application's reports and the error then disappeared.
We are running Application Express 3.2.0.00.27 and Oracle Release 10.2.0.1.0. My browser is IE 7.0.
Plan to test later with FireFox provided I can download it to see if this might browser related.
Any inforamtion or guidance is appreciated.
Jeff -
Maintain Multi-Lingual Tables Option Fails On Cznlins.Sql
Hi all.
I am trying to install Albanian language in a 11.5.10.2 fresh installation.
I applyed all the neccesary patches to come to the NLS apply patch stage.
I followed the link
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=316804.1
for applyeing NLS Patch. I have to run the AD Utility Maintain Multi-Lingual Tables ,before applying NLS.
But the workers fail on Cznlins.Sql.
The worker's log shows:
Start time for file is: Wed Jun 18 2008 14:13:08
sqlplus -s APPS/***** @/oracle/prodappl/cz/11.5.0/sql/CZNLINS.sql
PL/SQL procedure successfully completed.
MESG
LANGUAGE = AMERICAN
PACKAGE= CZ_LOCALIZED_TEXTS_PKG
SQLERRM= ORA-01400: cannot insert NULL into ("CZ"."CZ_LOCALIZED_TEXTS"."CREATED_
BY")
select to_date('ERROR')
ERROR at line 1:
ORA-01858: a non-numeric character was found where a numeric was expected
Time when worker failed: Wed Jun 18 2008 14:13:08
My question are:
1.) Has anyone encountered this problem before.On the specific Cznlins.Sql file?
2.) Shall i skip Maintain Multi-Lingual Tables, install the NLS, and run Maintain Multi-Lingual Tables after the installation?Do you recommend me to do this?
Thanks in advance, SoniHi hsawwan
i am sending you the Road Map of patches i have applied,in my OEL 4 server enviroment.
1. Apply patch 4320012
2. Apply patch 6502082
3. Apply patch 6323691
4. Apply patch 6831988
5. Apply patch 4948577
6. Apply patch 5713544
7. Apply patch 4261542
8. Apply patch 5216496
9. Apply patch 5753922
10. Apply patch 6195759
11. Apply patch 5938515
12. Apply patch 3830807
13. Apply patch 4586086
14. Apply patch 4888294
15. Apply patch 5989593
16. Apply patch 3218526
17. Apply patch 3761838
18. Apply patch 4206794
19. Apply patch 5903765
20. Apply patch 3865683
21. Apply patch 4619025
22. Apply patch 6372396
23. Apply patch 4653225
24. Installation of Oracle 10g R2 database,software only(different home).
25. Installation of Oracle 10g R2 companion cd products.
26. Installation of Oracle 10g R2 pachset2
27. Apply patch 5257698
28. Upgrading to Oracle 10g R2
29. Configuring AutoConfig on db tier
30. Apply patch 5753621
31. Prepare for NLS(failed on AD Maintain Multi-Lingual Tables on CZNLINS.sql file)
Is this the right way, before applying NLS, for albanian language?
Do you think i have any conflicts in my list of patches?
Thanks, Soni
Maybe you are looking for
-
I installed ios 7.0.2 on my i-pads and now want to delete the pass code, which I originally put in. I no longer want the hassle of the pass code, but cannot figure out how to delete it. I do not want the additional security.
-
How to access layer pixel data?
I am new to the Adobe CS extension SDK. Is it possible to access image data from an extensions as an array? In the API reference I did not find anything like that.
-
Will Photoshop CS5 run in 32-bit mode in OS x 10.8
I have a Photoshop plugin that only runs in 32-bit mode. So when I upgraded to CS6 I've kept CS5 and launch it in 32-bit mode when I want to use the plugin. Will I be able to do this when OS X 10.8 Mountain Lion is released?
-
Why the content now have a bliking cursor like if it is editable on all the pages?
i'm guessing this is some sort of bug, but every text node where i click a text editable blinking cursor shows up, and there is no content editable option in the HTML, also small white lines cover up the text where the cursor pass by.
-
Unable to extract 5.2 and install.
I downloaded 5.2 to a folder on Drive C. I ran the .exe and received a message fro Photoshop Lightroom 5.2 installer that says " A problem occurred while extracting some files. Check available space on your computer and write privileges on the destin