Point cloud and TIN data column types

Hi,
I am designing some tables using the new SQL Developer Data Modeler, and have added some columns which will store point clouds and TINs (both using the specialized Oracle data types). I have noticed in Data Modeler that the SDO_GEOMETRY data type is available to use as a column type, but the SDO_PC and SDO_TIN data types are not available for use. Or perhaps the column types for these data types are actually something else - perhaps integers (given that several tables may be used to store this specialized data)?
Thanks,
Matt

Maybe try Forum: SQL Developer:
SQL Developer

Similar Messages

  • OSB DB-Adapter and a date column: JCA exception ISO 8601 date format?

    Hello
    I work with Oracle Service Bus (eclipse oepe and jdev)
    On database side I've a view with a date column (datatype=date!)
    With JDev I create a DB Adapter with a select operation on that view. This db adapter can be successfully generated.
    Now I import the generated artefacts (xsd, wsdl, jca) into my eclipse service-bus-project. Then I generate a business service based on the jca. Also this works fine.
    Then I deploy the project to my developement osb. Also this works fine.
    When I test my business service (osb test console), I get a runtime error:
    Exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException:
    Exception Description: The object [03.07.70], of class [class java.lang.String], from mapping [org.eclipse.persistence.mappings.DirectToFieldMapping[geburtsdatum-->XYZ_VIW.GEBURTSDATUM]] with descriptor [ObjectRelationalDataTypeDescriptor(DB_Adabper_XZY.XZY--> [DatabaseTable(XYZ_XYZ_VIE)])], could not be converted to [class java.sql.Timestamp].
    Zeichenfolgenwert im XML-Code kann nicht in java.sql.Date konvertiert werden.
    Datenbanken akzeptieren zwar Zeichenfolgen, die Datumsangaben in verschiedenen Formaten darstellen, jedoch akzeptiert der Adapter nur Zeichenfolgen, die Datumsangaben im ISO-XML-Datumsformat darstellen.
    Der Eingabewert muss das ISO 8601-Datumsformat YYYY-MM-DD aufweisen.
    ==> so this seems to be a date format problem. but why?
    I've checked the view ---> it's a date!
    After that I do not have any influence to change it - and actually I don't want to change it. It still should be a datatype of DATE.
    Why does JDEV not correctly convert it?
    Anyone had the same problem?
    Any help would be appreciated.
    Thanks
    Best regards,
    Reto

    OS is winXP
    database is Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    Yes it is a datetime:
    <xs:element name="geburtsdatum" type="xs:dateTime" minOccurs="0" nillable="true"/>
    This is absolutelly correct. But on runtime, I'll get the date convertion error as mentionend above. It seems as the date cannot be converted from database date column to a osb date.
    Strange, I didn't expect to have date format problems here.
    I use
    1.) Oracle Database (view) with a DATE column
    2.) Oracle JDeveloper database adapter (generated db adapter based on view, point 1)
    3.) Oracle Service Bus using the jca of generated database adapter, point 2)
    So I think I don't have to set any date format, everything shoult be a DATE and therefore no formating has to be done by me, or am I wrong?
    Best regards
    Reto

  • Create new table , 1 column has large amount of data, column type ?

    Hi, sure this is a noob question but...
    I exported a table from sql server, want to replicate in oracle.
    It has 3 columns, one of the columns has the configuration for reports, so each field in the column has a large amount of text in it, some upwards of 30k characters.
    What kind of column do I make this in oracle, I believe varchar has a 4k limit.
    creation of the table...
    REATE TABLE "RPT_BACKUP"
    "NAME" VARCHAR2(1000 BYTE),
    "DATA"
    "USER" VARCHAR2(1000 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FTP" ACCESS PARAMETERS ( records delimited BY newline
    skip 1 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES
    ARE NULL ) LOCATION ( 'REPORT_BACKUP.csv' ))
    Edited by: Jay on May 3, 2011 5:42 AM
    Edited by: Jay on May 3, 2011 5:43 AM

    Ok, tried that, but now when i do a select * from table i get..
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-30653: reject limit reached
    ORA-06512: at "SYS.ORACLE_LOADER", line 52
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Put together a TIMESTAMP column and a DATE column?

    Anyone,
    How can I piece together two columns one with a DATE and one with a TIMESTAMP and get the date with the timestamp.
    Ex.
    col_A = '4/1/1999 12:00:00.000 AM'
    col_B = '1/1/1900 9:24:47.000 AM'
    Desired Result
    new_val = '4/1/1999 9:24:47.000 AM'
    Thanks in advance,
    Miller

    Here is a pruned down version of code:
    CREATE OR REPLACE PROCEDURE MAXIMO.load_multiple_eq IS
       CURSOR c1 IS
            SELECT      LOCATION,
              ACTSTART,
              COMPLETIONDATE,
                    COMPLETIONTIME,
                    SCHEDSTARTDATE,
                    SCHEDSTARTTIME                                        
            FROM MAXIMO.NIEHS_FEB_WOEQLIST ;
         rec c1%ROWTYPE;
    BEGIN
       OPEN c1;
       LOOP
          FETCH c1 INTO rec;
          EXIT WHEN c1%NOTFOUND;
                    Insert into MAXIMO.WORKORDER (  WORKORDER.LOCATION           ,
                                                    WORKORDER.ACTSTART           ,
                                                    WORKORDER.ACTFINISH          ,
                                                    WORKORDER.SCHEDSTART         ,
                                                    WORKORDER.SCHEDFINISH           )
                    Values (   
                                rec.LOCATION,     /* LOCATION */
                                SYSDATE,          /* ACTSTART */
                                TO_TIMESTAMP(TO_CHAR(rec.COMPLETIONDATE,'MM/DD/YYYY')||' '||TO_CHAR(rec.COMPLETIONTIME,'HH.MI.SS AM'),'MM/DD/YYYY HH.MI.SSXFF AM') ,               /* ACTFINISH */
                                TO_TIMESTAMP(TO_CHAR(rec.SCHEDSTARTDATE,'MM/DD/YYYY')||' '||TO_CHAR(rec.SCHEDSTARTTIME,'HH.MI.SS AM'),'MM/DD/YYYY HH.MI.SSXFF AM') ,               /* SCHEDSTART */
                                rec.SCHEDFINISHDATE /* SCHEDFINISH */  );
       END LOOP;
       CLOSE c1;
    END;Thanks,
    Miller

  • Calculate number of days based on System Date and a date column!

    Hi everyone,
    I have a query to run a report where the results has a column named “Due Date” which holds a date value based on the project submission date.
    Now, I need to add 4 columns named, “45 Days Expectant”, “30 Days Overdue”, “60 Days Overdue” and “90 Days Overdue”.
    I need to do a calculation based on the “Due Date” and “System (I mean default computer date) Date” that if “System Date” is 45 days+ to “Due Date” than put “Yes” in “45 Days Expectant” row.
    Also, if “Due Date” is less than or equal to system date by 30 days, put “Yes” in “30 Days Overdue” and same for the 60 and 90 days.
    For example the output should be like:
    Is this possible? Can someone help me how to write this Case Statement please? I have some answers how to do it in SSRS (Report Designer) but I want to get the results using T-SQL...Thanks heaps...cheers...
    artistdedigital

    Hi Jay,
    Thanks but those dates are just a reference. The actual table contains hundreds of date rows... so I guess this technique will not work (not sure though)...
    I am quite cool with this bit:
    select duedate,
    case when days > -45 and days < 0 then 'YES' else '' end as '45 Days Expectant',
    case when days between 30 and 60 then 'YES' else '' end as '30 Days overdue',
    case when days between 60 and 90 then 'YES' else '' end as '60 Days overdue',
    case when days > 90 then 'YES' else '' end as '90 Days overdue'
    from cte--------------------------------------------------------------------------------------------------But can you please explain this bit a more? Thanks for being so prompt though : )declare @tab table (duedate datetime)
    insert @tab select '04/25/2014'
    insert @tab select '02/10/2014'
    insert @tab select '01/10/2014'
    insert @tab select '12/10/2013'
    ;with cte
    as
    select duedate,datediff(dd,duedate,getdate()) as days
    from @tab
    artistdedigital

  • Help ! for date column type

    Hi,
    I am having two tables tdz12 and tdf31. TDF31 is a date field. and TDZ12 is transactions history table. If I do
    11:30:39 SQL> alter session set nls_date_format='DD-MON-RRRR HH24:MI:SS';
    11:30:57 SQL> select c65201 from tdf31;
    C65201
    30-NOV-2006 00:00:00
    11:46:48 SQL> select distinct a9000 from tdz12 where a9000 >= '01-NOV-06';
    A9000
    01-NOV-2006 00:00:00
    02-NOV-2006 00:00:00
    03-NOV-2006 00:00:00
    04-NOV-2006 00:00:00
    06-NOV-2006 00:00:00
    07-NOV-2006 00:00:00
    08-NOV-2006 00:00:00
    09-NOV-2006 00:00:00
    10-NOV-2006 00:00:00
    11-NOV-2006 00:00:00
    13-NOV-2006 00:00:00
    14-NOV-2006 00:00:00
    15-NOV-2006 00:00:00
    16-NOV-2006 00:00:00
    17-NOV-2006 00:00:00
    18-NOV-2006 00:00:00
    20-NOV-2006 00:00:00
    21-NOV-2006 00:00:00
    22-NOV-2006 00:00:00
    23-NOV-2006 00:00:00
    24-NOV-2006 00:00:00
    25-NOV-2006 00:00:00
    27-NOV-2006 00:00:00
    28-NOV-2006 00:00:00
    29-NOV-2006 00:00:00
    30-NOV-2006 00:00:00
    26 rows selected.
    If I do
    11:26:39 SQL> select sum(a9060)
    11:27:52 2 from tdz12
    11:27:52 3 where A9000>=(select to_date(to_char(C65201,'YYYYMM')||'01','YYYYMMDD') FROM TDF31);
    SUM(A9060)
    0
    Why I am getting 0 records ? ( Pl tell me the reason, not alternate way to get records )
    thanks & regards
    PJP

    TRUNC(c65201,'MONTH')is a simpler alternative to
    TO_DATE(TO_CHAR(c65201,'YYYYMM')||'01','YYYYMMDD')although it will give the same result here.

  • Weblogic jpa and oracle xmltype column type

    Hi,
    i try to use jpa with a table with a column of "xmltype"
    i use weblogic 10.3.2.0(eclipselink) and i got this error :
    java.lang.NoClassDefFoundError: oracle/xdb/XMLType
    Of course the xdb.jar and the xmlparverV2.jar are bundled in the ear with the others library,
    and i also put them in the lib directory of the weblogic server.
    In my persistence class the filed is declared as a "String".
    I try also to use a DescriptorCustomizer with a DirectToXMLTypeMapping
    to access to the value of the field as a string.
    Thank you for your help.

    Option-1). If you want the classes to be loaded from inside your Application only then you can use ClassLoader filtering ...
    That will be a best option ....Just put your Xdb.jar file inside your applications Lib directory and apply classloader filtering. Like this you need not to edit the Server Classpath....so other applications will not be forced to use the Jar which u want for a specific application.
    Classloader filtering example demonstrated here: http://weblogic-wonders.com/weblogic/parsers_issues/
    <font color=red>Below Option i think will work 95% in your case.</font><br>
    Option-2). add the path of this Jar in *"setDomainEnv.cmd"* (This script is present in <DOMAIN_HOME>\bin directory) in the POST_CLASSPATH variable...
    set POST_CLASSPATH=D:\oracle\Middleware\user_projects\domains\base_domain\config\lib\oracle.xdb_11.1.0.jar;

  • Comparing Converted Text To Date With Date Column

    I have a query where I need to break out a text column into a date format and then compare that column against another column in the same table which is already date format. I tried using a sub query to avoid doing it in two steps, but get an:
    'ORA 01858' a non numeric character was found where numeric was expected
    error message which obviously has something to do with the formating of the date in the subquery: the types don't match.
    Note: clock_num is a text column and contains numbers that are supposed to be dates like 070111 - hence the need for conversion into a date type to match the stat_date which is date column type. I do not have contol over the data in this column. It is not my table, it is the company's table and I must use it!
    So my quesion is what syntax/function do I use to get the clock_nbr expression type to match the eff_date type.
    Or is there a different way to go about doing the same thing without using the subquery?
    Any assistance is appreciated..
    SELECT
    me.ssn,
    FROM
    member_enroll me
    WHERE me.ssn = '999999999'
    AND me.stat_date <
    (SELECT to_date(substr(me.clock_num,1,2)||'/' || substr(me.clock_num,3,2)|| '/' ||substr(me.clock_num,5,2),'mm-dd-yy') as clock_nbr
    FROM member_enroll me
    WHERE me.ssn = '999999999')

    user12296489 wrote:
    I wasn't assuming that all the dates were correct. But that is where I made the error. But the reason I didn't see the error was that I didn't know if the way I had the substr function set up with the subquery was correct. I thought that was the problem and so wanted to make sure that was correct before I moved on. As I pointed out, there is a much simpler way to convert the string to a date using a format mask that matches the string data rather than parsing the data using SUBSTR and converting it to a different format before calling TO_DATE.
    It turns out that the reason you posted your function was actually what was holding it up. I had forgotten to include enough criteria in the subquery to return only the 1 record that had a valid clock_num. Once I did that, the query worked - without your function.Just be aware that though it works today, it may not work tomorrow when the query plan changes.
    So, now, onto the issue that you brought up, I don't know how to integrate that function you posted into my query. I have no knowledge of creating functions in pl/sql. I tried placing it before the query and it ran but returned no records You need to create the function once whereas you would run the query many times. I'm not sure what application you're using to interact with the database. If you run just the CREATE FUNCTION DDL statement, does that work? If you're using SQL*Plus, you'd see something like this with the "Function created." feedback.
    SQL> CREATE OR REPLACE FUNCTION my_to_date( p_str IN VARCHAR2 )
      2    RETURN DATE
      3  IS
      4    l_date DATE;
      5  BEGIN
      6    BEGIN
      7      l_date := to_date( p_str, 'MMDDYY' );
      8    EXCEPTION
      9      WHEN OTHERS THEN
    10        l_date := null;
    11    END;
    12
    13    RETURN l_date;
    14  END;
    15  /
    Function created.>
    Here is what I did. It doesn't error out. It says 'done in 0.156 seconds', but no records are returned. when I replace the function you gave (and rem out your function) with the to_date function, it returns 1 record. If I don't rem out your function and use the to_date function, it runs, but again, no records are returned.
    select me.subs_ssn,
    me.clock_num,
    my_to_date(mbr02.mbr02_clock_num) as clock_num
    from odw.mbr02_member_enroll_info mbr02
    where mbr02.mbr02_subs_ssn = '999999999'
    and mbr02.mbr02_grp_id = '00000'If you only have the function call in the SELECT list, the presence or absence of the function cannot possibly change the number of rows that are returned. So if your description is of the behavior of this particular query, something is very wrong. It is possible that the CLOCK_NUM column could be NULL if the MBR02_CLOCK_NUM column is in an invalid format. But the other two columns would have to be populated here if they are populated when you simply remove the call to the function.
    Justin

  • PLW-07204: conversion away from column type may result in sub-optimal query

    I have the following query in the package that created using sql developer. I am receiving the error 'PLW-07204: conversion away from column type may result in sub-optimal query plan' when try to compile the package. The issue is happen to be in the last line where the date is. Any help? Thanks
    select count(*) into n_cnt
    from tmp_order
    where sgn_off_dt is null and cmt_dt is not null
    and sysdate - cmt_dt > 90;

    Sy:
    Try doing as a procedure instead of an anonymous block. It looks like warnings do not apply to blocks.
    SQL> create table tmp_order(sgn_off_dt date,cmt_dt date);
    Table created.
    SQL> alter session set plsql_warnings='ENABLE:ALL';
    Session altered.
    SQL> create procedure p as
      2     n_cnt number;
      3  begin
      4     select count(*) into n_cnt
      5     from tmp_order
      6     where sgn_off_dt is null and
      7           cmt_dt is not null and
      8           sysdate - cmt_dt > 90;
      9  end;
    10  /
    SP2-0804: Procedure created with compilation warnings
    SQL> show err
    Errors for PROCEDURE P:
    LINE/COL ERROR
    8/18     PLW-07204: conversion away from column type may result in
             sub-optimal query planlindalop:
    In this case, you can ignore the warning, as it is not correct. Sysdate and a date column have different internal data types (note the type 13 for sysdate and type 12 for the date column), and whatever internally generates the warnings seems to just compare the type number.
    SQL> insert into tmp_order values(sysdate, sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select dump(sysdate) sdate, dump(cmt_dt) cmt_dt from tmp_order;
    SDATE                             CMT_DT
    Typ=13 Len=8: 7,219,2,3,15,44,4,0 Typ=12 Len=7: 120,111,2,3,16,44,12However, Oracle is perfectly capable of using an index on a date column with sysdate as a predicate. I would agree with Sy's suggestion to re-work the predicate to be something like cmt_dt < sysdate - 90.
    John

  • Can I add a point cloud to a 3D PDF?

    I created a 3D model based off of a point cloud and I want to include the point cloud in the PDF. I already exported the Revit model into the PDF. Thanks.

    The problem with MeshLab is that it exports in U3D format that has no control over point size and Adobe viewer ignores color settings for points in U3D.
    If you create a PRC model you can control point size and color.
    FOSS tools Asymptote and MathGL can do that, if you know C++ I can send you a simple lib to make PRC file with a pointset.
    (May be the demo of non-free Tetra 4D converter can do pointset translation.
    But it sure can can combine several PRC files, created via different tools, into a single model).
    Or, if it fits your purpose, replace points with cubes and stay on the beaten path of trinagle-mesh based scenes.

  • How to save user name and system date in a table

    I have a form that allow users to enter some information...
    I want to save user name in one of the columns and system date in another column by default when the user submit the form to save data...
    Please advice...
    Thanks

    Hi talbo,
    The most reliable method is to use a before-insert trigger on your table. This way the columns will be set properly no matter how rows are inserted (via your app or any other means). Given your user name column is called "CREATE_USER" and your date column is called "CREATE_DATE" for example - include these lines in a before-insert trigger:
    :NEW.CREATE_USER := NVL(V('APP_USER'), USER);
    SELECT SYSDATE INTO :NEW.CREATE_DATE FROM DUAL;The NVL(V('APP_USER'), USER) will set CREATE_USER to the current ApEx application user if the row is created from within the application, or to the current database user if the row is created outside the application.
    Hope this helps,
    John
    If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.

  • Load LiDAR data into Spatial 11g making use of Point Cloud Type?

    Dear all,
    from an aerial LiDAR scan I have approximately 226 million points, spread over 9 files. I would like to load them into Oracle Spatial 11g, making use of the new point cloud data type. I have the book "Pro Oracle Spatial for Oracle Database 11g" here and Appendix E explains how you have these two tables that together manage your point cloud. I find the example given in the book rather simplified though as they have only x, y and z and a row id colum. In addition to this I also have r, g, b and i (intensity) values.
    I was wondering if anyone could give me a hint on how to store all the information in one table and making use of the sdo_pc data type at the same time.
    Also, the example has the points already in a table, but I'd like to load it all directly from my files into the point cloud table (I know how to use sqlldr, but how do I get it into this point cloud table structure). What's the cleverest way to go about this?
    All ideas are greatly appreciated!!
    Regards,
    Bia.

    Hi,-
    Our LAS converter supports LAS 1.1 format.
    LAS version 1.0 has fewer entries for the data than LAS version 1.1 so you might just ignore those extra fields that donot exist in LAS 1.0.
    Therefore, i am expecting your data to be fine with our LAS to SDO_PC converter.
    Thanks

  • Dynamically Find out the Integer and Decimal Data Type of a Column

    Table: test (INTE number, DECI number(7,2))
    Try to dynamically determine the column type.
    Using select data_type from user_tab_columns. It only returns NUMBER which does not indicate if the column is an integer or decimal data type.
    Is there a way to dynamically determine if a column is integer or decimal type?
    Thanks

    First of all your column INTE stores not just integers but any franctional numbers too:
    SQL> create table test(INTE number, DECI number(7,2))
      2  /
    Table created.
    SQL> insert
      2    into test
      3    values(
      4           10.99,
      5           10.99
      6          )
      7  /
    1 row created.
    SQL> select  *
      2    from  test
      3  /
          INTE       DECI
         10.99      10.99
    SQL>If you want to declare column as integer you use either NUMBER(n) or INTEGER. And, as others already pointed out, you can check DATA_PRECISION & DATA_SCALE in data dictionary view USER/ALL/DBA_TAB_COLUMNS.
    SY.

  • Is there a way to Insert Data into a Lookup Column Type on a SharePoint List Destination in SSIS?

    Greetings.
    I have successfully worked out inserting SQL data (2008 R2) into my 2010 SharePoint list (New, Update, Delete) by creating an SSIS Data Flow Task as outlined here:
    http://fsugeiger.blogspot.com/2010/01/synchronise-sql-table-with-sharepoint.html
    However, the problem I am running into is inserting data into the SharePoint Columns that are "Lookup" column types. I verified that all of the values I am copying from SQL into the SharePoint lookup column exist in the customn list it is pointing to. It
    is important to have this column be a lookup column as it links to another custom list that has many more columns of related information.
    I have read and re-read the SharePoint SSIS Adapters 2011.docx from
    http://sqlsrvintegrationsrv.codeplex.com/ and the only section that seems to apply is this:
    "Looking Up Values in a SharePoint List
    If you have to look up a value in a SharePoint list, you can use the Lookup transformation in your data flow, and use the SharePoint List source to load the lookup table. You may have to add a Derived Column transformation or a Script component that splits
    data in the lookup column on the ";#" delimiter to separate the ID value from the description.
    If you are replacing values in your data with the values that you look up in the list, then loading the changed data back into SharePoint, you only have to include the ID from the lookup column. SharePoint ignores the description if you include it."
    I am not sure if the above statement means that I should be passing the assocaited ID's other than the actual data into the SharePoint List destination. If that is the case, that will not really work as the lookup contains hundreds of rows. Not too mention
    I have several of these lookup column types pointing to several different lists.
    Any guidance in how I can put data into a SharePoint Lookup column type via Data Flow Task would be so much appreaciated.
    Thank you.
    My errors are:
    Error: 0x0 at Data Flow Task, SharePoint List Destination: Error on row ID="1": 0x1 - Unspecified error, such as too many items being updated at once (batch), or an invalid core field value.
    Error: 0xC0047062 at Data Flow Task, SharePoint List Destination [1903]: Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.PipelineProcessException: Errors detected in this component - see SSIS Errors at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ProcessInput(Int32
    inputID, PipelineBuffer buffer) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "SharePoint List Destination" (1903) failed with error code 0x80131500 while processing input "Component Input" (1912). The identified
    component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will

    I have found a solution to my problem and thought I would share it here in case there are others who are struggling with the above scenario. If you have a better way, I would love to hear about it since my way is a bit tedious.
    In a nutshell, in order to have an SSIS package put data from an OLE DB Source into a SharePoint List Destination Lookup Column, you need to pass the ID of the value that is being looked up, not the value that is in the “master” OLE DB source.
    Rough explanation, OLE DB Source value for column “Approp” is “4005” --> SQL matches “4005” with the ID in the new lookup table (“4005” = ID “5” as defined in the SharePoint lookup list) --> “5” gets passed into SharePoint List destination lookup
    column --> SharePoint displays “4005” and successfully links to the lookup list.
    Funny thing (not really), the error(s) outlined in my original post are not related in getting data into a SharePoint Lookup column as I am now successful in getting data into the system but I am still getting the same above error(s). I think it has to do
    with the ID column in the SharePoint list destination. What I can’t seem to figure out is why since I am not linking any data to that ID column (at least on new records). I am however linking it on Update and Delete and the errors mentioned above disappear
    and things work well.
    There are three tasks that need to get done in order to get data from SQL into a SharePoint lookup column assuming you have already set up your SharePoint lookup lists:
    1. Create new lookup table(s) in SQL that has the IDs from the SharePoint Lookup list and the values coming from the “master” OLD DB Source. You can see the ID column in SharePoint by toggling it on in a view.
    2. Create a SQL command that JOINs all the databases and tables so that the ID is passed and not the value into the SharePoint lookup column
    3. Change the “Data access mode” to “SQL Command” instead of the “Table or view” in the OLE DB Source and paste your command into the “SQL command text:” area.
    Other helpful info is that you may also need to add additional columns in the new lookup tables in SQL for the scenarios when the data is not unique. You can see this two times in my SQL command example for Units and JobTitles:
    SELECT
    pps.SSNm,
    pps.file_updated,
    pps.Employee_id,
    /* pps.CheckDistNm,*/
    Check_Distribution_id = COALESCE( d.ID, 0 ),
    pps.Job_nbr,
    pps.SeqNm,
    pps.action_eff_dt,
    Fund_id = COALESCE( f.id, 0 ),
    Appropriation_id = COALESCE( ap.id, 0 ),
    ActionCode_id = COALESCE( ac.id, 0 ),
    SpecNumber_id = COALESCE( jt.ID, 0 ),
    pps.Employee_id,
    /* pps.Fund,
    pps.Approp,
    pps.Unit,*/
    Unit_id = COALESCE( u.ID, 0 ),
    PosNm,
    PosCode,
    pps.LastName,
    pps.FirstName,
    pps.MI
    FROM
    x_PPS.aReportVw.pps_screens_active AS pps
    LEFT OUTER JOIN dbo.DistributionNumbers AS d ON
    pps.CheckDistNm = d.Check_Distribution
    LEFT OUTER JOIN dbo.Units AS u ON
    pps.Fund = u.Fund AND
    pps.Approp = u.Approp AND
    pps.Unit = u.Unit
    LEFT OUTER JOIN dbo.Appropriations AS ap ON
    pps.Approp = ap.Approp
    LEFT OUTER JOIN dbo.Funds AS f ON
    pps.Fund = f.Fund
    LEFT OUTER JOIN dbo.ActionCodes AS ac ON
    pps.ActionCode = ac.ActionCode
    LEFT OUTER JOIN dbo.JobTitles AS jt ON
    pps.SpecNm = jt.SpecNumber AND
    pps.JurisClass = jt.JurisClass

  • What is the point of Precision and Scale in Number Type?

    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
          COL1
    223.993939
    88.228384
          9.34
             0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?

    Omega3 wrote:
    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
    COL1
    223.993939
    88.228384
    9.34
    0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?Lots of business requirements for specific precisions and scales.
    A persons Age may required to be stored as whole numbers of no more than 3 digits.
    A sum of money may required to be stored with no more than 2 decimal places of accuracy e.g. GB Pounds and Pence or US Dollars and Cents
    A unit of length may required to be stored in metres with 2 decimal places for centimetres
    A shoe size may be required to be stored with one decimal place for half sizes
    etc.
    etc.
    Yes, you may just create all of them as generic NUMBER datatype, but creating them with precision and scale can provide additional information about the limitations expected for the values stored, especially for things like reporting tools that may use the specified precision and scale to determine how to display the values automatically (by default).
    If you start questioning "what's the point?" then you may as well say what's the point in having a NUMBER datatype when we can store numbers in a VARCHAR2 datatype? or what's the point in having a DATE datatype when we can stored dates as VARCHAR2 datatype? etc.
    No point in asking such a question because there's almost always a point to these things (and if there isn't they get deprecated in later versions).

Maybe you are looking for

  • Birthday calendar bizarre repetitions and other issues

    I have the STRANGEST things happening with birthdays on both my iPhone (5, 32GB, white, iOS 6) and iPad (32GB, iOS 6, white). I'm posting it here in the iPhone forum, assuming more people may be able to help. First of all, I sync a Google Apps calend

  • Can i use one pc with one installation of Itunes to use with multiple apple ID's?

    can i use a single pc with one edition of itunes to manage multiple apple id's (without everyone's mail and message popping up on eachothers ipads/iphones etc)?

  • Pb to create a logical component related to note 1505281

    Hello, I would like to create a new logical component in order to implement Note 1505281. When I do smsy -> System group and logical component -> create logical component, I set: Logical Component: SAP ERP 6.0 Product: SAP ECC Product version: SAP EC

  • Blank Layout in Web dynpro ABAP

    Hi Experts, We have configured Web dynpro ABAP in our server and activated all relevant services in SICF. But, we face a problem where layout is invisible and the ouput is appearing when we test the application. Please provide a solution as the layou

  • Problem in working with xslt filter

    Hi All, I have created some XSLT filters to display the XML file as the HTML. It was working fine before. but suddenly there's an error. After applying the XSLT filter to the content. When i clicked on the content to see the output it is throwing " 5