Skip to main content

Data Query FAQs

Zuora
  • 日本語のコンテンツは機械翻訳されており、補助的な参照を目的としています。機械翻訳の精度は保証できません。英語版が正となります。また、現時点では検索機能は日本語での検索をサポートしていません。翻訳に関するフィードバックについては、docs@zuora.comに送信してください。

Data Query FAQs

  1. Q: Does Data Query support the currency conversion?

    A: Yes. For more information, see Foreign currency conversion for Data Query.

  2. Q: What are some common SQL errors that I should look out for?

    A:

    • Error: Column region_c cannot be resolved

      Solution: You are missing a reference to the table that includes region__c. Select or join from that table in your query and try again.

    • Error: Query exceeded the maximum time limit of 3600.00s

      Solution: This error is thrown when you reach one of the system limitations in Data Query. Queries running for longer than 1 hour will be canceled. Your query might be running for a long time for many reasons: you are doing complex JOINs across many tables without filters in your WHERE clause, or you are doing complex aggregate functions in your query, or you are running many SELECT clauses in one query, and so on. Try to address one or several of these issues to improve your query performance.

    • Error: Table owl.data.acccount does not exist

      Solution: The table you are trying to access either does not exist in your tenant or you have a spelling error in your query. Run SHOW TABLES to confirm that you have that table in your tenant.

  3. Q: Can I submit a ZOQL query to Data Query?

    A: No. Only SQL queries are supported. You must convert ZOQL statements to SQL statements before submitting data queries. See ZOQL to SQL conversions for more information.

  4. Q: Can I get real-time data with Data Query Live?

    A: Data Query Live runs data queries against Zuora transactional databases. The transactional databases are updated in near real-time. It might take some time for the databases to synchronize the changes you made in your Zuora tenant.

  5. Q: Can I run queries with more than 10 million input records?

    A: Yes. You can run queries against Zuora Warehouse, which has no limitations on input records and has better performance than the Zuora Transactional Database. For more information, see Zuora Warehouse.

  6. Q: Can I run queries with more than 500,000 output records?

    A: Yes. You can run queries against Zuora Warehouse. The maximum number of output records for each query in Zuora Warehouse is 50 million, which is 100 times more than the Zuora Transactional Database. For more information, see Zuora Warehouse.

  7. Q. What is the retention period for my Data Query export files?

    A: To meet the GDPR compliance requirements, Zuora only stores your data query export history information for up to 30 days. Zuora erases all data query export history information older than 30 days. 

  8. Q: What shall I do for the upcoming column deprecation in January 2023?

    A: The following columns will be end-of-life in January 2023. Zuora will no longer return these columns in the Data Query schema after these columns are deprecated. To minimize any impact on your queries, it is highly recommended to review your queries now and remove the columns to be deprecated. From now on, use the JOIN syntax to add these columns to your queries. An example is provided below. For any assistance please contact Zuora Global Support.

    The following columns in the invoiceitem object will be end-of-life:

    • accountid
    • parentaccountid
    • billtocontactid
    • soldtocontactid
    • defaultpaymentmethodid
    • productrateplanchargeid
    • rateplanid
    • productrateplanid
    • amendmentid
    • Productid

    The journalentryId column in the following objects will be end-of-life: 

    • CreditBalanceAdjustment
    • CreditMemoApplicationItem
    • CreditMemoItem
    • CreditTaxationItem
    • DebitMemoItem
    • DebitTaxationItem
    • InvoiceAdjustment
    • InvoiceItem
    • InvoiceItemAdjustment
    • InvoicePayment
    • JournalEntryItem
    • NonSubscriptionInvoiceItem
    • PaymentApplicationItem
    • PaymentApplication
    • RefundApplication
    • RefundApplicationItem
    • RefundInvoicePayment
    • RevenueEventItem
    • RevenueEventItemCreditMemoItem
    • RevenueEventItemDebitMemoItem
    • RevenueEventItemInvoiceItem
    • RevenueEventItemInvoiceItemAdjustment
    • TaxationItem

    Here is an example of using the JOIN syntax to add the columns to a query.

    01SELECT InvoiceItem.id, Account.id as aid, Invoice.invoicenumber as invn, ProductRatePlan.id as prpid,ProductRatePlanCharge.id as prpcid, RatePlan.id as rpid, RatePlanCharge.id as rpcid
    02FROM invoiceitem
    03JOIN productrateplan on invoiceitem.productrateplanid = productrateplan.id
    04JOIN rateplancharge on invoiceitem.rateplanchargeid = rateplancharge.id
    05JOIN productrateplancharge on invoiceitem.productrateplanchargeid = productrateplancharge.id
    06JOIN rateplan on invoiceitem.rateplanid = rateplan.id
    07JOIN account on invoiceitem.accountid = account.id
    08JOIN invoice on invoiceitem.invoiceid = invoice.id
    09JOIN subscription on invoiceitem.subscriptionid = subscription.id
    10JOIN account on invoice.accountid = account.id
    11JOIN rateplancharge on invoiceitem.rateplanchargeid = rateplancharge.id
    12JOIN rateplan on rateplancharge.rateplanid = rateplan.id
    13JOIN subscription on rateplan.subscriptionid = subscription.id
    14JOIN productrateplancharge on rateplancharge.productrateplanchargeid = productrateplancharge.id
    15JOIN productrateplan on productrateplancharge.productrateplanid = productrateplan.id

    For future reference, please find the following documents: