Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
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.
Categories:
  • 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 73,647 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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans