in

InaPlex Forums

Forums and downloads for InaPlex customers and partners.

How to resolve Multiple Matches on _details table

Last post 04-06-2009 15:23 by ksharpe. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 02-03-2009 18:05

    How to resolve Multiple Matches on _details table

    Hello! I am trying to import data from a DBF file (with only DONOR_NUMB and various data fields) that is tied to a field in CONTACT2 (UWESSID) and where I need to have custom Detail records created/updated. After unsuccessfully trying different two-table combinations, I found a prior Inaport post from Cerf on 02-13-2008 dealing with _Calendar items, so I am now trying three tables:

    1. _Contact2 as the top table, Match single existing record, #ACCOUNTNO as Primary Key, and match DONOR_NUMB from the DBF file to UWESSID in Contact2

    2. _Contact1 as the second table, Match single, #ACCOUNTNO as Primary and Foreign key

    3. CONTSUPP as third table -- child of _Contact1, Update single or create new record - single map, no match specified (since my DBF has only DONOR_NUMB and there is no appropriate matching field listed in the target) (I tried using _Details as the third table, but our custom detail data uses these fields CONTACT and PHONE, which aren't available fields in _Details...)

    The script processed my 10 test rows the first time - but the data never appeared under the right ACCOUNTNO. Now the script complains of Multiple Matches, but I have queried the data via SQL and can't find any multiple matches...

    (Another thing that I wonder about is that when I run it, it takes a long time before it starts processing rows: it says 'Adding Index Values to Index #ACCOUNTNO" for about 8 minutes while it counts up. How can I get it to use an existing Index?)

    Thanks for your guidance!

    Sue Burke/IT
    The JESUS Film Project
    www.JesusFilm.org
    Filed under:
  • 02-05-2009 20:59 In reply to

    Re: How to resolve Multiple Matches on _details table

    Hi Sue

    To match on a child table and then create update a parent table, you need to use the "Match for Child..." operations. This is not necessarily simple.

    I think both your issues would be made easier if you used SQL matching instead of Standard matching. The SQL matching would let you query contact2 from contact1. Also, because you use SQL instead of building the index first, you do not have the upfront cost.

    There is a tutorial on SQL matching in the resources section of the web site.

    Regards

    Admin

    Filed under:
  • 02-05-2009 21:04 In reply to

    Re: How to resolve Multiple Matches on _details table

    Thank you very much. SQL Matching is what I will use. Thanks again.

    Sue Burke/IT
    The JESUS Film Project
    www.JesusFilm.org
  • 04-03-2009 16:30 In reply to

    Re: How to resolve Multiple Matches on _details table

    Hi

    I've been reading your post about the sql query to update the contsupp table and thought I'd try it but when I select the sql query match type, it reverts to "no match". I suspect that this factility is available only in the professional edition and not the standard version that I think I bought. Do you know if that's true and if so, is there anyway that I can update the contsupp table with a custom detail record using the standard edition/

    Thanks for your help.

    Kim

  • 04-03-2009 18:11 In reply to

    Re: How to resolve Multiple Matches on _details table

    Hi Kim

    SQL Matching is only available in the Professional Edition.

    Standard matching will let you match on the parent _contact1 table, then match and create or update on the details table. Then reason we were talking about using SQL Matching earlier is that they needed to match on the child table (Details) then create/update the parent table. It is possible to do this using Standard matching, but it is quite a bit more complicated.

    You might like to have a look at the tutorials on matchign in the Resources section on the web site.

    HTH


    Regards

    Admin

    Filed under:
  • 04-03-2009 20:31 In reply to

    Re: How to resolve Multiple Matches on _details table

    Thanks Admin; so glad that I will be able to update contsupp under the standard version.

    I reviewed the slides in the tutorial for a standard match but unfortunately can't quite figure it out.

    I've selected the operation for the contsupp table to be create a new record always and no matching

    The tutorial says:

    On my profile, the relationship tab for contsupp has blanks and I'm not sure what to fill in there:

    The tutorial slide about the child table relationship, says:

    Person table is a child of Company, need to specify the foreign key that relates child table to parent

    and then says:

    Inaport will normally fill in automatically

    but nothing is filled in on my relationship tab for the contsupp table 

    I'm assuming that the FOREIGN key on the contsupp table is the accountno - but how does it know the field on the contact1 table that it matches to?

    Then, the PRIMARY key for contsupp to make it a unique record in the table. It looks to me as if it needs a recordid to make it unique but I don't know where that comes from; I'm assuming that it's a system generated number to make the record unique but is this generated by inaport? What do I specify for the primary key on contsupp.

     Thanks for your help

    Kim

  • 04-03-2009 22:58 In reply to

    Re: How to resolve Multiple Matches on _details table

    Hi

    Instead of choosing the CONTSUPP table, choose one of the logical tables that wrap the CONTSUPP: _Details, _AdConts, etc

    These tables overlay the CONTSUPP table with *lots* of business logic to make the table much easier to work with. As a bonus, inaport will also fill in the relationship tab... :-)

    Regards

    Admin

  • 04-03-2009 23:07 In reply to

    Re: How to resolve Multiple Matches on _details table

    Brilliant! Thank you so much, a great end to my week.

    Kim

  • 04-03-2009 23:08 In reply to

    Re: How to resolve Multiple Matches on _details table

    I do, however, feel a little daft that I didn't notice that table before.Embarrassed 

  • 04-04-2009 1:45 In reply to

    Re: How to resolve Multiple Matches on _details table

    No problem - it is a big application, with a lot of stuff in it.

    Smile

  • 04-06-2009 15:23 In reply to

    Re: How to resolve Multiple Matches on _details table

    Yes, it is; and then there's GoldMine itself, and MasterMine, and Crystal Reports and SQL queries, and SQL server management and reporting services, and, and, and  ...sometimes I think I may go mad; but you've helped to stave it off for a few more nano-seconds (I'm pretty far along already).

Page 1 of 1 (11 items)
InaPlex Limited 2011