Mapping UNIQUEIDENTIFIER column in HANA

Hi,
I am using Mobilink to synchronize data between SQLA and HANA. I have UNIQUEIDENTIFIER as one of the columns in SQLA. What is the recomendation for Mapping in that case? If I use Varchar then from HANA, insert into SQLA is not possible. Is there any recomendation of usage of data type in that case?
Regards,
Subhankar

Hi Subhankar,
I'm not sure about the specific HANA error you're encountering, but I can state that UNIQUEIDENTIFIER is a recognized and understood data type within MobiLink and uploads correctly to HANA within the following test:
rem.sql (on SQL Anywhere)
create sequence seqGuidtest minvalue 2000000000 maxvalue 2999999999;
create table guidtest (
    pk integer primary key default (seqGuidtest.nextval),
    c1 uniqueidentifier);
create publication p1 ( table guidtest );
insert into guidtest (c1) values (newid());
insert into guidtest (c1) values (newid());
insert into guidtest (c1) values (newid());
insert into guidtest (c1) values (newid());
insert into guidtest (c1) values (newid());
commit;
cons.sql (on HANA)
create column table "ML_USER"."guidtest" (
  "pk" integer primary key,
  "c1" VARCHAR(36)
call ml_add_table_script( 'v1', 'guidtest', 'upload_insert',
'insert into "ML_USER"."guidtest"
  ("pk", "c1")
   values ({ml r.pk}, {ml r.c1})'
call ml_add_table_script( 'v1', 'guidtest', 'upload_update',
'--{ml_ignore}'
call ml_add_table_script( 'v1', 'guidtest', 'upload_delete',
  '--{ml_ignore}'
call ml_add_table_script( 'v1', 'guidtest', 'download_cursor',
  'select "pk", "c1" FROM "ML_USER"."guidtest"'
call ml_add_table_script( 'v1', 'guidtest', 'download_delete_cursor',
  '--{ml_ignore}'
commit;
The result: (the SQL Anywhere remote - dbmlsync log)
I. 2014-11-25 17:09:16. Table Upload Order: guidtest
I. 2014-11-25 17:09:16. Uploading table operations
I. 2014-11-25 17:09:16. Upload operations on table 'guidtest'
I. 2014-11-25 17:09:16. Insert row:
I. 2014-11-25 17:09:16.   <pk>: 2000000001
I. 2014-11-25 17:09:16.   <c1>: e309076e-63f6-4d2c-9623-56b8810ff1ae
I. 2014-11-25 17:09:16. Insert row:
I. 2014-11-25 17:09:16.   <pk>: 2000000002
I. 2014-11-25 17:09:16.   <c1>: ab73dddd-5628-42cb-ab1a-c16460ceda5b
I. 2014-11-25 17:09:16. Insert row:
I. 2014-11-25 17:09:16.   <pk>: 2000000003
I. 2014-11-25 17:09:16.   <c1>: 9c46303c-b004-4c2b-bd99-30f4fb7a317a
I. 2014-11-25 17:09:16. Insert row:
I. 2014-11-25 17:09:16.   <pk>: 2000000004
I. 2014-11-25 17:09:16.   <c1>: be0109ad-f40f-44de-814c-5e5976ab41c8
I. 2014-11-25 17:09:16. Insert row:
I. 2014-11-25 17:09:16.   <pk>: 2000000005
I. 2014-11-25 17:09:16.   <c1>: d36b3035-2116-4958-8143-9a90af96b854
(the MobiLink server - HANA server)
I. 2014-11-25 17:09:16. <1> upload_insert guidtest
                        insert into "ML_USER"."guidtest"
                          ("pk", "c1")
                           values ({ml r.pk}, {ml r.c1})
I. 2014-11-25 17:09:16. <1> Translated SQL:
                        insert into "ML_USER"."guidtest"
                          ("pk", "c1")
                           values ( ?,  ?)
I. 2014-11-25 17:09:16. <1> Insert row [guidtest]:
I. 2014-11-25 17:09:16. <1>   2000000001
I. 2014-11-25 17:09:16. <1>   e309076e63f64d2c962356b8810ff1ae
I. 2014-11-25 17:09:16. <1> Insert row [guidtest]:
I. 2014-11-25 17:09:16. <1>   2000000002
I. 2014-11-25 17:09:16. <1>   ab73dddd562842cbab1ac16460ceda5b
I. 2014-11-25 17:09:16. <1> Insert row [guidtest]:
I. 2014-11-25 17:09:16. <1>   2000000003
I. 2014-11-25 17:09:16. <1>   9c46303cb0044c2bbd9930f4fb7a317a
I. 2014-11-25 17:09:16. <1> Insert row [guidtest]:
I. 2014-11-25 17:09:16. <1>   2000000004
I. 2014-11-25 17:09:16. <1>   be0109adf40f44de814c5e5976ab41c8
I. 2014-11-25 17:09:16. <1> Insert row [guidtest]:
I. 2014-11-25 17:09:16. <1>   2000000005
I. 2014-11-25 17:09:16. <1>   d36b30352116495881439a90af96b854
Note the conversion between the SQL Anywhere GUID format with hyphens and the format in HANA without.
Some questions:
Can you provide some of the lines above the error you're seeing in the MobiLink console log to provide better context for the error?
Can you provide the table definitions for both the remote and consolidated?
Are you using the same version of SQL Anywhere for the remote database and the MobiLink server?
Which version of the HANA ODBC driver are you using?
Regards,
Jeff Albion
SAP Active Global Support

Similar Messages

  • Mobilink syncronization mapping one column of SQLA to two of HANA columns

    Hi,
    In SQLA I have a column(say col_a) which I want to divide and put in two columns in HANA(say col_a and col_b). My string lengths are fixed so I know where exactly to divide.
    With this in mind, I could write the upload script to upload data into hana which goes into two tables.
    Here it is :
    INSERT INTO <MY_TABLE>
           ( pkey,
             col_a,
             col_b )
    VALUES ( {ml r.pkey},
             SUBSTRING ({ml r.col_a}, 0, 26),
             SUBSTRING ({ml r.col_a}, 28, 6) )' );
    Now I am confused about how to write the Download script. Usually I should concatenate them and put in the one column of SQLA I tried with this :
    SELECT <MY_TABLE>.pkey,
           CONCAT ( CONCAT ( <MY_TABLE>.col_a, " "),
           <MY_TABLE>.col_b)
      FROM TEST_CHAR_TYPES_TABLE
           INNER JOIN <MY_TABLE>_upserted
                   ON <MY_TABLE>_upserted.pkey
                    = <MY_TABLE>.pkey
    WHERE <MY_TABLE>_upserted.upserted_timestamp
        >= {ml s.last_table_download}
    This does not work. Any pointer on this would be of huge help.
    Regards,
    Subhankar

    Hi Subhankar,
    This does not work. Any pointer on this would be of huge help.
    Your download_cursor SQL looks okay in this instance - can you clarify what the error is that you receive with MobiLink?
    Feel free to post a simple log snippet (dbmlsync -o remote.txt or mlsrv16 -o mlsrv.txt) with the details.
    Thanks,
    Jeff Albion
    SAP Active Global Support

  • Map excel columns to oracle table column using forms 6i

    Hello,
    I am importing data from excel to oracle table using oracle forms 6i.
    Suppose my table have 3 columns id, name,sal. The excel sheet i am importing having
    3 or more colums, also excel sheet columns are not in order as per table columns.
    i.e my table have id, name, sal
    and excel have name, sal, id
    my question is how can i map excel colums with table colums and insert it into table.
    I am using oracle 6i forms (ole2 package).
    Thanks

    What was wrong with the first answer to the same question?
    Re: map excel columns on oracle forms and insert it into database

  • Mapping-source column(for the measure)disappears after pressing apply

    I am using AWM 11.2.0.2.0B and Oracle 11.2.
    I have successfully mapped my dimensions. Then I defined a stored measure, say DISTANCE and I want to map it to a column in my database. When I click the "apply" button, the mapping disappears! And I can not find any error messages. I have tried mapping another column to it (defining a different measure), still the mapping disappears after applying.
    The type of the data(measure) is number(22) in my database, so I choose Data type: Number, Precision:22 and Scale=0 in my cube(storage section) and I check "use compression", therefore the measure will inherit the mentioned data type (of cube). I also tried using integer as the data type, no success. I first doubted that it expects some different type of data to be mapped, but seems that is not the problem. Every column I put there as my source column disappears after clicking on apply!
    Any idea what the problem is or where I should find a log?
    Edited by: 903009 on Dec 17, 2011 10:03 PM
    Edited by: 903009 on Dec 17, 2011 10:05 PM

    Hi Veeresh,
    As per my understanding, this error happens when the OLE DB Source component cannot find the corresponding source column in the database table. Possible reason is the the column name in the external database table has changed or
    the column has been removed.
    To verify this issue, please go to the Advanced Editor for OLE DB Source Input and Output Properties tab to see the External columns and Output columns. To fix it, please refresh the data or recreate the Source.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Mapping multiple columns of a table to single dimension using odi

    Hi John,
    Can we map multiple columns of a table to a single dimnesion?
    For example, in RDBMS, for the employee details, Grade position etc will be in different columns, and in Planning these would be as members of one dimension.
    So while loading data from oracle to essbase can we map these multiple columns to single dimension?
    If yes how?

    Hi,
    In your staging area/target you can concatentate the columns.
    So in your interface and on your target datastore, pick the column which is going to hold the details of the concatenation.
    Then in the expression editor use the CONCAT function, or you could use ||
    eg CONCAT(<sourceCol1>, <sourceCol2>)
    or <sourceCol1> || <sourceCol2>
    obviously you need to change the information between <sourceCol1> to your source datastore column
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Mapping of columns from 11i to R12 0 - AP Bank Accounts

    Hi All,
    We are working on application migration from 11i to R12.
    In our report columns bank_account_uses_id, customer_site_use_id and primary_flag from table AP_BANK_ACCOUNT_USES_ALL are used. Can some one help me to find how these columns are mapped in R12.
    I have all ready searched in tables IBY_PMT_INSTR_USES_ALL, IBY_EXTERNAL_PAYEES_ALL and IBY_EXT_BANK_ACCOUNTS but not able to locate exact columns.
    Regards,
    Nandeep

    Hi,
    Please refer to:
    Note: 579132.1 - R12 Payments and Payment Reports 'How To' documents), 2. How to Setup Banks in R12
    Note: 434195.1 - Bank Setups in R12 Question
    Regards,
    Hussein

  • Unable to find mapping Interface columns for Service Items in Sales Order

    Hi All,
    I have a requirement to create a service item for a Sales Order through Interface tables. Once the oe_headers_iface_all and oe_lines_iface_all tables are populated, order import program is run to populate the data into the base tables.
    I am unable to figure out the interface mapping columns for the base table columns namely,
    (oe_order_lines_all table)
    service_ref_order_type
    service_ref_order_numbe
    service_ref_line_number
    service_ref_shipment_number
    Also, the above mentioned base table columns are mandatory and not able to create a Service item through Order import.
    When checked in the front end, per record history these columns are taken from oe_order_lines_v, however when checked in the query of this view am unable to trace the above four columns.
    Any help will be greatly appreciated.
    Thanks,
    Jay

    This does not appear to be connected with the subject of this forum, which is [Oracle Application Express|http://apex.oracle.com/i/index.html].
    Taking a wild guess, this might have something to do with [eBusiness Suite|http://forums.oracle.com/forums/category.jspa?categoryID=3]?

  • Mapping 3 columns to 3 attributes in the same element

    Hi,
    I have 3 columns which are not in a collection as part of my result set. I need to map these 3 columns to an attribute in my result xsd in the transformer.
    eg on the left I have :
    addrline0, addrline1, addrline2. On the right I have an element called ADDR with an index attribute, so I want the right to display
    <ADDRESS>
    <ADDR index="0">my address1</ADDR>
    <ADDR index="1">my address 2</ADDR>
    <ADDR index="2">my address 3</ADDR>
    </ADDRESS>
    this seems not possible in the transformer out of the box - is there a way I can achieve this ? I know that addrline0 will always map to index 0 and addrline1 always map to index 1 etc.
    thanks

    The way to do it would be:
    Assign the first one normally:
    <assign name="first">
    <copy>
    <from variable="addrlin0" query="pVariable"/>
    <to variable="ADDR" query="/tns:ADDRESS"/>
    </copy>
    </assign>
    then assign the following using :
    <bpelx:assign>
    <bpelx:append>
    <from variable="addrlin1" part="return" query="/pVariable"/>
    <to variable="ADDRESS" query="/tns:ADDRESS"/>
    </bpelx:append>
    </bpelx:assign>
    Instead of append you can also use InsertAfter or InsertBefore.
    hth,
    Mike van Alst

  • How to change the values of Map Region Column "REGION_NAME"

    Hi guys,
    To correspond with the values in my "CITY" column, I have to change the values of Region_name column in the map..
    region_name column contains the name of the territories in English
    but City column in my table contains the names of the territories in Arabic.
    To enable the link of the map, the values of both column ( CITY in my table, REGION_NAME in the map region ) should be identical.
    How can I change the values of REGION_NAME COLUMN ???
    This is the first time for me I deal with maps, and I hope my question is clear..
    Regards,
    Fateh

    Solved by using the following code
    var particulars = this.parent.COURSENAME.resolveNode("#items"); 
    this will bring the dropdown list into the variable particulars
    then
    for (var i = 1; i < particulars.nodes.length; i++)
    p = particulars.nodes.item(i);
    here p.value will have the dropdown line by line;
    add your valdiations etc

  • Mapping Row & Column

    Is it possible for mapping row to column with JDeveloper.

    Could you clarify your question? Maybe an example of what you are after?
    A row is made up of columns. By this definition, it isn't exactly like a self referential "object composed of collections of the object". ( Clear as mud? )

  • Mapping Different Columns to Y1 and Y2 Axis'

    I have two columns with vastly different scales (population and percent_population_growth). How do I map population to the Y1 axis (and have the appropriate scale appear) and map percent_population_growth to the Y2 axis (and have the appropriate scale appear).

    Any ideas?

  • Crystal Report - NULL values mapped to Column names in reports

    Hai,
    I am using rows of data retrived from the SQL Server 2005 Express and sometimes the column names are NULL , I want to set a default value to this NULL value and set it as Data axes label / Group axes values, can some one please help me with this issue.
    Thank you in advance.
    Vijay

    I resolved this issue myself, this can be set as other Data Labels, Group Label or Series Riser's properties too, left-click twice until the blank item is selected and then right click and select "Edit Axis Label" item and here it can edited with the new value(text).

  • Problem about mapping 1 column with different tables..

    Hi,
    I have 3 Tables (I will give examples not exact tables but same structure and logic)
    Cars :
       ID  ( Car ID)
       Name
    Planes :
       ID ( Plane ID)
       Name
    Processes :
       ID ( Process ID )
       Type
       VehicleID {code}*Sample Processes Table Data*
    {code:java}ID     Type      VehicleID
    1          1               1       
    2          1               2
    3          2               1
    3          2               2{code}
    When type is *1*, This is *Car* and means that *VehicleID* maps to *Cars Table*,
    When type is *2*, This is *Plane* and means that *VehicleID* maps to *Planes Table*.
    And So On 3, 4, 5, 6 .. for Additional tables.
    How can i map something like that? I can not merge these tables, they all must be separated..
    I used to handle this by writing native SQL with some functions, however with JPA i could not figure it out..
    Thanks again
    Regards.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I do not know an easy way to do this in pure JPA. EclipseLink though is able to do this using a variable one to one mapping:
    http://wiki.eclipse.org/Introduction_to_Relational_Mappings_%28ELUG%29#Variable_One-to-One_Mapping
    This can be set using a customizer or JPA like annotations:
    @VariableOneToOne(
    targetInterface=Vehicle.class,
    cascade=PERSIST,
    fetch=LAZY,
    discriminatorColumn=@DiscriminatorColumn(name="TYPE", discriminatorType=INTEGER),
    discriminatorClasses={
    @DiscriminatorClass(discriminator="1", value=Cars.class),
    @DiscriminatorClass(discriminator="2", value=Planes.class)
    Best Regards,
    Chris

  • Auto mapping of Columns to custom XML tags

    Hello:
    I would like to build interface to my Oracle database. Instead of exposing the column names, I would like to translate them to business-savvy XML tags. Of course, I can do this by using the AS construct in my SELECT statements.
    I would like to know whether there exists any advanced features in Oracle that automatically do this function.
    Thank you.
    Venkat

    Once you the get the output in xml format from oraext:query-database function you can apply an xsl function to transform it and do the required.

  • How to map table columns to xml attributes?

    With a table like this : Column1, Column2,...
    I try to obtain it :
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1" key="column1">
    <NAME>SMITH</NAME>
    </ROW>
    <ROW num="2" key="column1">
    <NAME>ALLEN</NAME>
    </ROW>
    </ROWSET>
    And i find this but it isn't enough :
    SELECT empno "@EMPNO", ename, job, hiredate
    FROM emp
    ORDER BY empno
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1" EMPNO="7369">
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <HIREDATE>12/17/1980 0:0:0</HIREDATE>
    </ROW>
    <ROW num="2" EMPNO="7499">
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <HIREDATE>2/20/1981 0:0:0</HIREDATE>
    </ROW>
    </ROWSET>
    how to known the column name?

    I do not know what columns you are talking about, but in HTML you can merge two columns with the attribute COLSPAN="2".
    DickDral

Maybe you are looking for

  • Half a song?

    hi...i cant seem to find a link on apple to ask this question with 'support'...so anyone else? i have noticed that some of the song s i have purchased on itunes cut out toward the end? these are old songs...not recent ones (ie...there is no link stat

  • Pls give me step by step sequence of Automatic Payment Prog

    Hi, Pls give me step by step sequence of Automatic Payment Program. Thanks in Advance

  • Question on "No Selection" Item for a dropdown data list?

    I'm trying to set a dropdown data list on an input form to have a default value. It appears that the first item in the list (which will show as the default) is always interpreted as a null value? Is there a way to display a default value that won't b

  • Is AT&T phasing out DSL

    Is AT&T totally phasing out DSL and going strictly U-Verse? I was browsing internet options for a friend, and also checking for myself (in a different town) and every time I look at Internet (not U-Verse) it defaults to a U-Verse internet option. I d

  • Why can't I convert a video in iTunes?

    why can't I convert a video in iTunes? I want to add a video to my iPod classic yet I can't convert it in iTunes. I can't click the create iPod version, that option is grayed out. Please help me