web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Trying to export TABLEIDTABLE to the data lake

(0) ShareShare
ReportReport
Posted on by 8

Hello,

I need the table TABLEIDTABLE exported to the lake. But I am not even able to see the table on the AOT.

I have a view that uses that underline table and I understand that the values could vary on the environments, so it would be to hard code it.

Is there a way to do it?

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Astrid,

    I wonder why you would need table ID numbers in the data lake. What is the (reporting) requirement? Anyway, you can create a data entity based on the table SQLDictionary. You would only need to have the records where the FieldID is zero for the table number and table names.

  • AstridMalanka Profile Picture
    8 on at

    Good morning,

    There are some views that call for the table TABLEIDTABLE. For example: VENDORINVOICECHARGESVIEW, and I need the view for a entity schema.

    In order to export an entity schema on the lake, you need to be able to export the table. Since the new version was released we are able to export SQLDictionary, but that table will not give me the table name, just the ID, and the view (in this case, calls for the table name).

    SELECT COUNT(RECID) FROM VENDINVOICEINFOSUBTABLE T4 WHERE T4.TABLEREFID = T1.TABLEREFID AND T4.DATAAREAID = T1.DATAAREAID) = 1
                                                    THEN (SELECT ID FROM TABLEIDTABLE T2 WHERE T2.NAME = 'VENDINVOICEINFOSUBTABLE')
                                                    ELSE (SELECT ID FROM TABLEIDTABLE T3 WHERE T3.NAME = 'VENDINVOICEINFOTABLE') END) AS TRANSRECID) AS NVARCHAR(10))) AS TRANSTABLEID FROM VENDINVOICEINFOTABLE T1

    I have hardcoded the table ID, but if in production is different, it will be an issue.

  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Astrid,

    I still don't understand why you would need a table ID in the data lake. When exporting data, usually the natural key will be exported.

    The coding you shared is T-SQL to calculate a virtual column. That will be executed on SQL where the TableIdTable is present and known.

    Have you tried adding the VendorInvoiceChargesView as data source for your data entity? On a data entity, you can also add a computed column like it is done on this view.

    PS. The DataDictionary table has a column for the name which contains the table name in case the field ID is 0.

  • AstridMalanka Profile Picture
    8 on at

    When I try to export it says the following tables/views are missing. It is not an normal export, it is exporting through the lake, it does not work as a job export. Maybe I am not explaining myself?

    pastedimage1681748716115v1.png

  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Astrid,

    Is your last reply related to the original question? On the screenshot you shared, I don't see any warning or error message.

    Or do you want to clarify you are exporting the tables directly and you are not using data entities?

  • AstridMalanka Profile Picture
    8 on at

    Good morning, I was trying to explain what I am doing.

    I have a connector to my UAT environment that lets me export tables and entities schemas to the lake.

    From there I use the CDMUtilSolution to read the json and csv files into views and tables on synapse.

    One of the entities, has a view that is calling that table.

  • Suggested answer
    SAADULLAH M Z Profile Picture
    175 on at

    You can use SYSTABLEIDVIEW

    This is available in AOT > System Documentation > Views

    Hope this will help you. 

  • AstridMalanka Profile Picture
    8 on at

    Hi, the SYSTABLEIDVIEW, pull data for a table of a similar name, but when I checked the database the other day, the table was empty, the table is also not exposed on the lake.

  • SAADULLAH M Z Profile Picture
    175 on at

    Create a new View add the SYSTABLEIDVIEW as data source and create a new entity and expose this entity where ever you want.

  • AstridMalanka Profile Picture
    8 on at

    when exporting to the lake, you need the underline table, because you export tables, if they are not exposed i wont be able to export it.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans