Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Issue in generating proxy tables command for dataverse integration

Posted on by 410
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.
  • Issue in generating proxy tables command for dataverse integration
    Hi, I have the same issue. Did you finally find how to solve it?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,341 Super User 2024 Season 2 on at
    Issue in generating proxy tables command for dataverse integration
    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

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,246 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans