Sage 100

 View Only
  • 1.  ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 08:32
    ProvideX Data Question: Is it possible to make a UDF a Key field? I am encountering an error #14 reading AR InvoiceHistoryDetail (with 6M records) via a pass-through query. I can avoid the error if I can filter the pass-through query on a key field, but I need to be able to filter based on a UDF. Ideas? If so, is this advisable?


  • 2.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 08:36
    I believe a UDT has a key field.


  • 3.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 08:37
    Thanks @DougHiggs I need to make a UDF in AR InvoiceHistoryDetail a keyed field though.


  • 4.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 08:56
    There is a providex KEYED directive used to create tables and define the keys to the table. This directive could be used to define a new table with an whatever keys you need. I am not sure what implications that would have on the system. You should consult with a Sage development partner. http://manual.pvxplus.com/


  • 5.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 08:57
    I know you need the new key in ARInvoiceHistoryDetail. You MAY be able to create a new ARInvoiceHistoryDetail with an additional key and transfer the data to the custom table. Consult a Sage developer.


  • 6.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 12:11
    Create a new table using a select query to pull data from the PTQ table?? Could you then make the UDF field a key field in the select query table?


  • 7.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 15:22
    Agree with Jeff, I'd create an update query off the PTQ to a new table, then multi-key the new table. Add an index to the UDF as well.


  • 8.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 12-16-2016 16:09
    Can you paste a copy of your pass thru query?


  • 9.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 04-18-2018 12:36
    Dan, did you get this resolved? I'm running into the same problem.


  • 10.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 04-18-2018 13:44
    I resolved this by filtering by filtering on one of the existing key fields. I needed to reduce the number of records based on a keyed field and was able to do it (with assumptions particular to the customer) on HeaderSeqNo. So, no I didn't find a solution to the original idea. If you do please post.


  • 11.  RE: ProvideX Data Question: Is it possible to make a U

    Posted 04-19-2018 11:17
    Well Dan, I found out that the link to AR Inv History Detail for the company was ""damaged"". Once I deleted it and made a new link, the query worked. (I made a temp table on only invoices for the last two years and then link to the detail file.) However, I had to do the same thing for another company (same client) and cannot resolve error #14. There are 7 million records (from 2006!) My first thought is to make a backup company and purge old history. Interestingly enough, I can write crystal report on the same thing without error. (But for various good reasons, I cannot write the custom report in crystal.)