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 :
Small and medium business | Business Central, N...
Suggested Answer

Issue in generating proxy tables command for dataverse integration

(1) ShareShare
ReportReport
Posted on by
when running the proxy table command as below,
 
PS C://Users//SK//.vscode//extensions//ms-dynamics-smb.al-12.5.914975//bin> .//altpgen -project:/C://Users//SK//Documents//AL//TestComp/ -packagecachepath:/C://Users//SK//Documents//AL//TestComp//.alpackages/ -serviceuri:https://abc.crm3.dynamics.com// -entities:msdyn_functionallocation -tabletype:CDS
 
It gives below error,
 
Authenticating Dataverse using ServiceUri=https://abc.crm3.dynamics.com/
Authenticated.
Retrieving entity metadata.
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Collections.Immutable.ImmutableArray`1.get_Length()
   at Microsoft.Dynamics.Nav.TableProxyGenerator.BuilderBase.CalcDataType(XrmEntityAttribute attr) in D://a//_work//1//s//source//Prod//Microsoft.Dynamics.Nav.TableProxyGenerator//BuilderBase.cs:line 456
   at Microsoft.Dynamics.Nav.TableProxyGenerator.BuilderBase.AddNormalField(XrmEntityAttribute attr) in D://a//_work//1//s//source//Prod//Microsoft.Dynamics.Nav.TableProxyGenerator//BuilderBase.cs:line 84
   at Microsoft.Dynamics.Nav.TableProxyGenerator.BuilderBase.BuildFields() in D://a//_work//1//s//source//Prod//Microsoft.Dynamics.Nav.TableProxyGenerator//BuilderBase.cs:line 56
   at Microsoft.Dynamics.Nav.TableProxyGenerator.BuildContext.BuildFields() in D://a//_work//1//s//source//Prod//Microsoft.Dynamics.Nav.TableProxyGenerator//BuildContext.cs:line 140
   at Microsoft.Dynamics.Nav.TableProxyGenerator.TableProxyGeneratorTool.RunCore(CompilerTextWriter consoleOutput, ErrorLogger errorLogger, CancellationToken cancellationToken) in D://a//_work//1//s//source//Prod//Microsoft.Dynamics.Nav.TableProxyGenerator//TableProxyGeneratorTool.cs:line 62
   at Microsoft.Dynamics.Nav.CodeAnalysis.CompilationDependentTool.Run(CompilerTextWriter consoleOutput, ErrorLogger errorLogger, CancellationToken cancellationToken) in D://a//_work//1//s//source//Prod//Microsoft.Dynamics.Nav.TableProxyGenerator//CompilationDependentTool.cs:line 125
   at Microsoft.Dynamics.Nav.CodeAnalysis.CompilationDependentTool.Run(CompilerTextWriter consoleOutput, CancellationToken cancellationToken) in D://a//_work//1//s//source//Prod//Microsoft.Dynamics.Nav.TableProxyGenerator//CompilationDependentTool.cs:line 77
   at Microsoft.Dynamics.Nav.TableProxyGenerator.TableProxyGeneratorCommandLineTool.Run(String clientDirectory, String baseDirectory, String[] args) in D://a//_work//1//s//source//Prod//altpgen//TableProxyGeneratorCommandLineTool.cs:line 29
 
Any experts can tell what is this error?
Note: table names are correct with case sensitive.
 
Thanks.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at
    Hi, I've done a simple test before and hope it can give you some tips.
    Dynamics 365 Business Central: Customizing an Integration with Microsoft Dataverse (Integrate custom tables)
     
     
    Thanks.
    ZHU
  • Community member Profile Picture
    2 on at
    Hi, I have the same issue. Did you finally find how to solve 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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans