Skip to main content

Notifications

Power Apps - Microsoft Dataverse
Suggested answer

My Rows are not Loading.

(0) ShareShare
ReportReport
Posted on by 4
Hi Experts,
 
I have Oracle Database and SQL Query and Import from PowerApp using SQL query for only filter or required columns and rows from Oracle Database, On the Power Query Windows All rows and columns shows but when i publish no data / rows are displaying?
 
Can someone please help.
 
SELECT ra.TRX_NUMBER Sales_Tax_Invoice_Number,
       ra.TRX_DATE Invoice_Date,
       'Commercial Invoice' Invoice_Type,
     --  max(ool.PROMISE_DATE) Promise_Date,
       to_date(max(ool.SCHEDULE_SHIP_DATE),'DD-MM-YYYY') Dispatch_Date,
       (nvl(REGEXP_SUBSTR(name, '\d+'), 0) + ra.TRX_DATE) Payment_Due_Date,
       rla.SALES_ORDER Sales_Order,
       PARTY.PARTY_NAME Customer_Name,
       rla.DESCRIPTION Item_Description,
       case
         when rla.quantity_invoiced is null then
          rla.quantity_credited
         else
          rla.quantity_invoiced
       end Quantity_Invoiced_in_metres,
       rla.UNIT_SELLING_PRICE Unit_Rate,
       (rla.EXTENDED_AMOUNT * nvl(RA.EXCHANGE_RATE, 1)) Total_Invoice_Value,
       zl.tax_rate || '%' Sales_Tax,
       (zl.tax_rate / 100) *
       (rla.EXTENDED_AMOUNT * nvl(RA.EXCHANGE_RATE, 1)) Sales_Tax_Value,
       (rla.EXTENDED_AMOUNT * nvl(RA.EXCHANGE_RATE, 1)) +
       (zl.tax_rate / 100) *
       (rla.EXTENDED_AMOUNT * nvl(RA.EXCHANGE_RATE, 1)) Grand_Total,
       ool.FLOW_STATUS_CODE Payment_Status
  FROM RA_CUSTOMER_TRX_ALL       RA,
       Ra_Customer_Trx_Lines_All rla,
       ra_customer_trx_lines_all rctla_LINK,
       ZX_LINES                  ZL,
       oe_order_headers_all      ooh,
       oe_order_lines_all        ool,
       hz_cust_accounts          CUST_ACCT,
       hz_parties                PARTY,
       ra_terms_tl               term,
       QA_RESULTS                qr
where ra.CUSTOMER_TRX_ID = rla.CUSTOMER_TRX_ID
   and rla.CUSTOMER_TRX_LINE_ID = rctla_LINK.LINK_TO_CUST_TRX_LINE_ID
   and rctla_link.TAX_LINE_ID = zl.TAX_LINE_ID
   and ooh.HEADER_ID = ool.HEADER_ID
   and rla.SALES_ORDER = ooh.ORDER_NUMBER
   AND OOH.sold_to_org_id = cust_acct.cust_account_id(+)
   and CUST_ACCT.PARTY_ID = PARTY.PARTY_ID(+)
   and tax = 'PK OUTPUT ST'
   --AND RA.TRX_NUMBER = 'NRA-1020821'
   and ooh.ORDER_NUMBER = rla.SALES_ORDER
   and ooh.payment_term_id = term.term_id(+)
   and qr.ITEM_ID = ool.INVENTORY_ITEM_ID   
   and ra.TRX_DATE between '01-Jul-2024' and '31-Dec-2024'
   and ool.FLOW_STATUS_CODE not in 'CANCELLED'

GROUP BY ra.TRX_NUMBER,
          ra.TRX_DATE,
          rla.SALES_ORDER,
          term.name,
          PARTY.PARTY_NAME,
          rla.DESCRIPTION,
          CASE
            WHEN rla.quantity_invoiced IS NULL THEN
             rla.quantity_credited
            ELSE
             rla.quantity_invoiced
          END,
          rla.UNIT_SELLING_PRICE,
          rla.EXTENDED_AMOUNT,
          zl.tax_rate,
          NVL(RA.EXCHANGE_RATE, 1),
          ool.FLOW_STATUS_CODE
 
 
Note: As i do not have Primary Key in my table therefore i added "Index Colmn" and "Mark as Key" 
 
 
Categories:
  • OM-22110953-0 Profile Picture
    OM-22110953-0 4 on at
    My Rows are not Loading.

    Hi Experts,

    I’m working on creating an agent in Microsoft Copilot Studio to utilize our organizational database (Oracle) as the knowledge base. I used PowerApps Tables to import required data from Oracle Database into Dataverse.

    During the import process, I connected to the database, executed a custom query to fetch specific columns, and successfully previewed the required data in Power Query. However, after publishing, none of the rows appear in Dataverse. This is unexpected since a similar process with a different query worked flawlessly before.

    Could anyone advise what might be causing this issue or suggest troubleshooting steps?

    Thank you for your help!

  • Suggested answer
    MichaelFP Profile Picture
    MichaelFP 1,520 on at
    My Rows are not Loading.
    where do you are executing the select? 
     
    if you are running in power automate, are you using add a new row action for Dataverse in each row of the SQL query result?
     
    if you are using canvas app, are your using patch do create the record in the Dataverse table?
     
    The select only retrieve the record doesn't not create anything on the Dataverse side.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,174

Leaderboard

Featured topics