Constraints in target or source datastore?

Hi,
When I put a constraint (condition) in my source datastore, the constraint works fine when I just test it by clicking on the table and clicking "Control->Errors". All the errors are shown in a list. But when I run my scenario using the same datastore/table, my target db picks up all lines even the ones that "should" have failed.
When I read the ODI Users Guide i can see a note on page 57 stating the following:
"Only the constraints declared on the target datastore in its model appear in the constraints list."
So can someone please explain to me why you would put constraints in the source datastore if they cant be used in a scenario/interface?
Best regards
M

Thank you for your answers.
I still not quite sure how I would inplement my Scenario/Interface the way I would like to.
What I am trying to do is to extract data from table A to table B and put error data in an error table. In my case, I would like to extract customers from table A to table B and put all error rows where customer id < 0 in a separate table and put all correct customers, i.e. with customer id > 0 in my target source.
So I tried to put the constraint in the source (which I now know is for static control only) but I have now also put the same constraint in the target but still I get ALL rows put in my target when I execute the interface. Can this be accomplished through constraints or do I need to put a filter on Diagram to do this?
Best regards
M

Similar Messages

  • Mapping of target data source

    hi all,
    while mapping the target datasource column we just write the column name in the mapping area and the query will automatically be generated.
    but i want to write my own query in the mapping area.
    how can i do this?
    means i am not able to write the 'from table_name' statement in the mapping area.
    please give any solution.
    regards,
    prateek.

    hi,
    thanks for rplying.
    if i put the where condition at the source database using filter then all the data will be filtered.
    but in my case the where condition is required only when i am inserting the data to target.
    if i put the filter at the source then the whole answer will get filtered.
    and one more thing, while inserting the data to the target datastore we can execute the query only on one of the source data store.
    the value that i want to insert in the target column requires a query to get executed on two tables(source datastore).
    is there any way to execute that query on more than one or two datastore?
    can u please tell me that how to change the filter condition at the interface level?
    thanks and regards,
    prateek.

  • Easy replacement of a source datastore

    Hi gurus,
    Is there an easy way to replace a source datastore by another one with the same structure in an interface ?
    Without having to re-do the join, filter and the mapping of target column.
    Thanks for your help.
    Regards

    user1459647  wrote:
    Thank you for your quick and precise reply.
    Unfortunately, when I delete a source datastore, all the joins/filters involving this datastore disappear.It will happen if your join condition/filter is specified only on 2 tables and 1 of them is getting deleted.
    And all the target mappings involving this datastore are set on "Target" instead of "Source" (not a big deal).You can chage the execution area
    Is there something to change in my ODI Studio parameters ?I do not think so
    I'm using ODI 11.1.1.5 and Windows 7.That should be fine .
    You can explore the SYNONYM option also :)

  • To Find out Source datastore in ODI interfaces using SNP tables

    Hi,
    Could you please let me know how to find out Source datastore(s) in ODI interfaces using SNP tables ?
    Regards,
    Rashmik

    Please use below query...Just pass the interface name..
    SELECT C.TABLE_NAME AS "Target Table Name",
         A.COL_NAME AS "Target Field Name",
         Wm_Concat(G.SOURCE_DT) AS "Target Data Type",
         Wm_Concat(G.LONGC) AS "Target Data Length",
         Wm_Concat(TXT) AS "Transformation Rule",
         Wm_Concat(DISTINCT F.TABLE_NAME) AS "Source Table Name",
         Wm_Concat(D.COL_NAME) AS "Source Field Name",
         Wm_Concat(D.SOURCE_DT) AS "Source Data Type",
         Wm_Concat(D.LONGC) AS "Source Data Length"
    FROM
         SNP_POP_COL A JOIN SNP_TXT_CROSSR B ON A.I_TXT_MAP=B.I_TXT
         JOIN SNP_POP C ON A.I_POP=C.I_POP
         JOIN SNP_TXT E ON A.I_TXT_MAP=E.I_TXT AND B.I_TXT=E.I_TXT
         LEFT OUTER JOIN SNP_COL D ON B.I_COL=D.I_COL
         LEFT OUTER JOIN SNP_TABLE F ON F.I_TABLE= D.I_TABLE
         LEFT JOIN SNP_COL G ON A.I_COL=G.I_COL
    WHERE POP_NAME = 'XXXXXXX'
    GROUP BY C.TABLE_NAME,A.COL_NAME ORDER BY 1
    Edited by: KaushikPatel on Apr 18, 2013 6:52 AM

  • Cdc on multiple joined source datastores

    Hi gurus,
    There are multiple source datastores and one target datastore in my interface.All of source datastores will be modified by ct application in future,How to enable cdc on multiple source datastores ?Is there any "thumb of rule" for cdc of multiple joined source datastores?
    Source: DB2/AS400
    Target: SQL SERVER 2000
    Thanks
    nan

    Hi nan,
    As i wasn't tried CDC on the source and target you specified,to give you a hint,
    For achieving CDC on multiple data stores, you can use JKM Consistent mode. This will make sure that all your data stores within the particular model will be CDC'ed and PK and FK relations will be maintained.
    Thanks,
    G

  • Interface without a source datastore

    I have to transform Data from a DBView into an XML (based on an XML schema). On reverse-engineering the XML schema, it generated 4 data stores. For successful generation of an XML file based on this schema, these data stores should be populated.
    Of the 4 datastores, I was able to populate one of them using the data from the view. But, in the remaining data stores, there is no source datastore. So, I tried populating the data by hard-coding some values (using Variables in ODI)
    So, is it possible to execute an interface w/o a source data store? If possible, how? (I tried hard-coding the fields using ODI Variables. It did not work!! )
    If not possible, how do I populate the remaining datastores generated by the XML schema?

    -11 : 37000 : java.sql.SQLException: Unexpected token: SELECT in statement [insert into DIFF__I$_FILE_ (       ) select         from       where           (1=1)]
    java.sql.SQLException: Unexpected token: SELECT in statement [insert into DIFF__I$_FILE_ (       ) select         from       where           (1=1)]
         at org.xmldb.jdbc.jdbcUtil.throwError(jdbcUtil.java)
         at org.xmldb.jdbc.jdbcPreparedStatement.<init>(jdbcPreparedStatement.java)
         at org.xmldb.jdbc.jdbcConnection.prepareStatement(jdbcConnection.java)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.prepareStatement(SnpsXmlConnection.java)
         at com.sunopsis.sql.SnpsQuery.a(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.a(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:595)
    In the above mentioned error, the data which I assigned using the ODI variables did not reflect in the query.

  • Mapping constant values to the target data source columns

    Hi
    A Target data source has only two columns(RPT_NAME, RPT_LEVEL) and both of them are constants and mapped as follows
    WITH TEMP1 AS
    (select 'AS' as A from dual
    union
    select 'IS' as A from dual
    union
    select 'ED' as A from dual
    select t.A as RPT_NAME, 'INV' as RPT_LEVEL from TEMP1 t
    Here there is no source tabel involved for mapping and gnerating a from query.
    Kindly let me know hoto map this table.
    Thanks

    Hi Amit
    Is there a way we can create an intermediary staging table or model or view in ODI itself, the business requirements are such that the source and the target databases cannot change/include any other view or table .
    Thanks

  • Rule 5 (target: 0FISCPER): Source parameter 0004 is not being used

    When I map both Fiscal year & Posting period to Fiscal period,
    Transformation promts error " Rule 5 (target: 0FISCPER): Source parameter 0004 is not being used"
    Why is that so?
    Rule Details for Fiscal Period show
    Conversion Exit : PER 17 & Perform is flagged ...what is it implying?

    ECC Field is PERIO for posting period.
    GHAGR for fiscal year.
    <b>Automatic time conversion is not possible for source field GJAHR
    Message no. RSTRAN070
    Diagnosis
    Cannot establish automatic time conversion to 0FISCPER for source field GJAHR. The source is a DataSource and consists of fields, not InfoObjects. Time conversion can only be performed automatically for InfoObjects.
    System Response
    Time update is set to direct update of target field.
    Procedure
    If you require time conversion, you can assign an InfoObject to the field. You do this in the rule details.
    Alternatively, you can define your own time conversion using a formula or a routine.</b>
    <u><b>Can Fiscal Period can be populated when just mapped to Posting peroid..???</b></u>
    Message was edited by:
            Jr Roberto

  • Variable Source Datastore

    Hi all,
    We have 3 interfaces where we perform a join between two tables.
    One of the tables is common to the three interfaces and the other tables are different for the 3 interfaces but have the same columns (only the name is different).
    Would it possible to have only one interface where one of the source datastore of the join is variable? and how we could do it?
    Regards and thanks

    Hi F Amroes,
    Yes, Its possible with one interface and varable datastore ( Datastore neame should be variable )
    Logic :-
    Create datastore with varible name (if the table structure is same .
    then use this DataStore in interface. refresh/assign the value to ur variable ( table name / datastore name)
    Then call ur interface.
    Also u can use the Looping concept of ODI to loop 3 times .
    Please reffer my old threads in this forum for the looping logic / please reffer the below URL
    http://odiexperts.com/?p=531
    Regards,
    Rathish A M

  • Multiple Target Data Sources

    JDeveloper v11.1.1.2
    Is it possible to set multiple Target Data Source iterators in the edit tree binding dialog?

    Hi Ananda
    Thank You very much for your reply!
    B) Yes same data is required in both the applications, but not completely same format or structure. E.g. Siebel is the Customer Hub for the client. All the customer data are required to be migrated to multiple applications (say Oracle EBS & Oracle BRM) after verification process, which happens end of the day. What I require is, the ODI interface should pull data from Siebel once & upload those to both Oracle EBS & Oracle BRM simultaneously as per the mapping rules defined for them. Basically I wanted to avoid hitting Seibel applications twice for pulling Customer data by creating two separate interfaces. Is it possible by using ODI???
    C) Please take same customer scenario in B. Customer is inserted to Oracle EBS & Oracle BRM using two different interfaces executed sequentially in a package. I want to maintain atomicity. i.e. Either Customer to be created in both or none of the applications. If that particular customer failed in 1st interface, it should try in 2nd interface. Also if it get failed 2nd interface, it should rollback in 1st interface. Can this be achieved in ODI?
    Hope, the above would clear my query.
    Thank You Again
    Priyadarshi

  • Target and Source database

    Hi All,
    Can anyone please tell me what does Target and Source Database means ?
    Thanks

    It can get confusing! In RMAN the target is, usually, the database you wish to connect to to make, say, a backup.
    When cloning, the Target is the Source database (i.e. the database you wish to make a clone of) and the clone is the Auxiliary.
    However, terminologies can get a bit twisted in common parlance, with the Target database being referred to as the Source and the Auxiliary database being referred to as the Target!!!
    HTH.

  • What are all the Standard Data targets&Data source for Warehouse management

    Hi,
    What are all the Standard Data targets & Data source for Warehouse management.
    Thanks,
    Ahmed.

    HI,
    the master data
    1.equipment data --IE01
    2.All functional locatiions -IL01
    3.Maintainnace work centers - IR01
    4.Task list data - IA05
    4.Schedule maintanence plan
    6.Strategies
    7.Measuring points
    8.Characters for calibration
    9.Equipemnt BOM
    10.Material BOM
    Regards,
    Anddra

  • What are all the Standard Data targets&Data source for Transportation Manag

    Hi,
    What are all the Standard Data targets & Data source for Transportation Management.
    Thanks,
    Ahmed.

    HI,
    the master data
    1.equipment data --IE01
    2.All functional locatiions -IL01
    3.Maintainnace work centers - IR01
    4.Task list data - IA05
    4.Schedule maintanence plan
    6.Strategies
    7.Measuring points
    8.Characters for calibration
    9.Equipemnt BOM
    10.Material BOM
    Regards,
    Anddra

  • Error updating AE: ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe After Effects CC 2014/Plug-ins/Effects/mochaAE/(Mocha Support)/mocha AE CC.app/Contents/MacOS/mediaioserver.app/Contents/CodeResources"(Seq 212)

    Error updating AE: ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe After Effects CC 2014/Plug-ins/Effects/mochaAE/(Mocha Support)/mocha AE CC.app/Contents/MacOS/mediaioserver.app/Contents/CodeResources"(Seq 212)
    What can I do?

    Run the cleaner tool and install from scratch.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • Error: Target or source of mapping are null

    Dear CAF experts,
    I created one composite application project which has one entity and an
    External Service (WebService). This entity has two fields "userName"
    (shortText) and "password" (shortText). It has all CRUD methods and a
    "logIn" method, which takes userName and password as input and gives
    back the userEmailId as the response. I have defined this mapping (
    between the attributes of the entity and the parameters of the
    WebService method LogIn ) in the datasource tab of the entity. I marked
    the entity as remote enabled and created a web service using it. Then I
    deployed the CAF project to the J2EE engine and configured the WSDL URL
    and the End point URL for the WebService in the "External Service
    Configuration" application.
    Finally I tested the service using the "Service Browser" application. It
    simply throws the exception "ERROR. Target or source of mapping are
    null!:".
    Have I missed anything here? Any leads..?
    Thanks,
    Bala

    Rene,
    As mentioned aleady I've an attribute called "response" that is mapped to the userEmailId of the service.
    The error in the browser is simply the same as the subject of this thread. i.e. "Error: Target or source of mapping are null"
    The full exception is
    com.sap.caf.rt.exception.DataAccessException: Target or source of mapping are null!
         at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.create(RemoteDataAccessService.java:475)
         at com.sap.gw.besrv.enterprise.EnterpriseServiceBean.create(EnterpriseServiceBean.java:83)
         at com.sap.gw.besrv.enterprise.EnterpriseServiceLocalLocalObjectImpl0.create(EnterpriseServiceLocalLocalObjectImpl0.java:345)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDependentObject(ServiceWrapper.java:432)
         at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDataContainerBean(ServiceWrapper.java:196)
         at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.createDataObject(CAFServiceAccessBeanImpl.java:159)
         at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.createDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:775)
         at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.insertAspectRow(AspectServiceAccess.java:215)
         at com.sap.caf.rt.ui.cool.generic.Aspect.insertRows(Aspect.java:1425)
         at com.sap.caf.rt.ui.cool.generic.Aspect.sendChanges(Aspect.java:1543)
         at com.sap.caf.ui.ptn.objecteditor.ObjectEditorCC.executeCoolAction(ObjectEditorCC.java:550)
         at com.sap.caf.ui.ptn.objecteditor.wdp.InternalObjectEditorCC.executeCoolAction(InternalObjectEditorCC.java:249)
         at com.sap.caf.ui.ptn.objecteditor.ui.OElayout.onActionGenericAction(OElayout.java:383)
         at com.sap.caf.ui.ptn.objecteditor.ui.wdp.InternalOElayout.wdInvokeEventHandler(InternalOElayout.java:297)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.caf.mp.mmr.adapter.exception.NullSourceOrTargetForMapping: Target or source of mapping are null!
         at com.sap.caf.mp.mmr.adapter.MMServiceRetrievalAdapter.readMappingRule(MMServiceRetrievalAdapter.java:236)
         at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerBean.readMappingRule(MMServiceRetrievalAdapterCallerBean.java:142)
         at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.readMappingRule(MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.java:697)
         at com.sap.caf.mp.core.data.service.DataServiceBridge.getMappingRuleIds(DataServiceBridge.java:666)
         at com.sap.caf.mp_mmr_bridge.rt.impl.RuntimeHelper.getExternalOperationConfig(RuntimeHelper.java:127)
         at com.sap.caf.mp_mmr_bridge.rt.IRuntimeHelper.getExternalOperationConfig(IRuntimeHelper.java:48)
         at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.create(RemoteDataAccessService.java:443)
         ... 46 more
    Bala

Maybe you are looking for

  • No data output field in DAQ Assistant

    I am currently trying to read temperature from my NI WSN 3202. I have a thermistor connected to AI0 and AIGND.  I am following a tutorial to convert from volts to degrees F and everything has been working so far.  Once I reach the step for DAQ that i

  • Proxy triggering in central instance but not in application

    Hi friends, There is one report which triggers the proxy. but this is not triggering in application servers and it is working fine when i trigger it in central instance. In this case i am executing this report in background and at that  time i can't

  • Canon G10 Raw and Others fixed

    Check you software update for: This update extends RAW file compatibility for Aperture 2 and iPhoto '08 for the following cameras: Canon EOS 5D Mark II Canon PowerShot G10 Pentax K2000/K-m Leaf AFi-II 6 Leaf AFi-II 7 Leaf Aptus-II 6 Leaf Aptus-II 7 L

  • Problems after updating to 4.2.1

    Hi, I cant sync aby apps or music since I updated to 4.2.1. Tells me an internal error has occurred. I tried to restore my phone back to factory setting multiple times. Any tips on what to try next ?

  • Packaging and Deploying war

    I have written a servlet and packaged it to a war using export in wsad(Right click on the project and export to WAR file).Now i deploy this war .However when i try to access the servlet from browser i get this error: Error 404: No target servlet conf