Skip to main content

Notifications

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'

  • fgs Profile Picture
    fgs 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.

  • 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
  • Suggested answer
    Waller Walker Profile Picture
    Waller Walker 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.

  • 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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans