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

Community site session details

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

CDMUtil - missing tables and referenced function when creating entities

(0) ShareShare
ReportReport
Posted on by 5

Hello All

The Datalake Export is generally working and we have many tables running and several entities (views) created.

However we are getting an error when running CDMUtil on these tables missing

  • PROJECTCONTRACTLINEINTEGRATION
  • ResourceCategoryView
  • DIRPARTYBUSINESSLOCATION
  • CUSTDEFAULTINVOICELOCATIONVIEW
  • LOGISTICSADDRESSCOUNTRYREGTRANSLFILTERED
  • HCMPOSITIONLINEHIERARCHYVIEW
  • CUSTDEFAULTDELIVERYLOCATIONVIEW
  • RESOURCEWORKERVIEW
  • RESOURCEVIEW
  • HCMWORKERSTATUSVIEW
  • HCMWORKERPRIMARYPOSITIONASSIGNMENTVIEW

as you can see most of these table names and with VIEW, so I guess somthing else is going on...  These names cannot be found in the datalake export list...

Another issue we are having when creating entities is that some views refer these functions

Invalid object name 'dbo.GetValidFromDateInContextInfoAsTable'
Invalid object name 'dbo.GetValidToDateInContextInfoAsTable'

I have the same question (0)
  • Mariano Gracia Profile Picture
    on at
    RE: CDMUtil - missing tables and referenced function when creating entities

    When I have faced this kind of problem what I have done is to manually create this views in synapse from the sql management studio, you can get the view definition from the sql server's development environment

  • Suggested answer
    Waller Walker Profile Picture
    345 on at
    RE: CDMUtil - missing tables and referenced function when creating entities

    Hey fgs,

    These views are internal and are not available through the F&O interface.

    You can also specify a connection string to a development server to automatically create the views as they are defined in the database; that parameter would go in "AXDBConnectionString".

    Note that to do that you would have to run the script from a place with a direct connection to that server; most easily that would be from the DEV server itself.

  • Patrick Gilhuijs Profile Picture
    on at
    RE: CDMUtil - missing tables and referenced function when creating entities

    Regarding the cmdutil as a function app, I had to add replacement code to fix these function calls.

    For cmdutil as console app you can add some key/value pairs to the ReplaceViewSyntax.json like this:

      {
        "Key": "SELECT ValidFromInContextInfo FROM [dbo].GetValidFromDateInContextInfoAsTable()",
        "Value": "SELECT GETUTCDATE() as ValidFromInContextInfo"
      },
      {
        "Key": "SELECT ValidToInContextInfo FROM [dbo].GetValidToDateInContextInfoAsTable()",
        "Value": "SELECT GETUTCDATE() as ValidToInContextInfo"
      }
    Regarding the returned value, that's also what I found what the implementation should be while debugging.

    Regarding PROJECTCONTRACTLINEINTEGRATION I have the same problem. It tries to create a view for the entity PROJPROJECTCONTRACTLINEENTITY which fails because it cannot find it.
    Don't know how to solve that yet
  • fgs Profile Picture
    5 on at
    RE: CDMUtil - missing tables and referenced function when creating entities

    Thanks,

    We indeed face issues to connect to the JIT access from outside.

    We will have a try running this from the DEV server itself.

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 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans