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 :
Microsoft Dynamics AX (Archived)

Unable to create table in Azure external DB through publishing data entities in Data management

(0) ShareShare
ReportReport
Posted on by

Hi,

I can able to publish the standard data entities in D365 for operations, to a external SQL DB which creates a table with columns same as that of data entities fields.

On creating a table directly using CREATE sql command, table is getting created in Azure DB. So there is permission for table creation in Azure SQL DB.

But on publishing the data entities to external SQL DB which is in Azure, the entities are not published and table creation is failed with the message "Error on publishing the data entity. Create for Table dbo.xxxxx."

And the stack trace is,

at Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.DmfEntityProxy.DoWork[T](Func`1 work)

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Dynamics.Ax.Xpp.CLRInterop.MakeReflectionCall(Object instance, String methodName, Object[] parameters)

 

Can anyone help guide me to publish the entity to Azure SQL DB.

Thanks, 

Elamathi. S

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at

    Hi Elamathi,

    What is the purpose of an external DB? How is a data entity related to this? Can you explain the scenario? Where did you use a CREATE SQL command? How do you publish a data entity to external SQL DB? Or are you trying to tell that the data of a certain AX table needs to be exported to another database using Data Entities?

  • Community Member Profile Picture
    on at

    Hi André,

    My requirement is to publish the data entity to a external DB. The publishing process creates a table in the external DB with the exact schema as that of the published entity.

    Publishing data entity is a standard process in Dynamics 365 for operations. This process done through Data management module. In this module, we will setup a connection string by specifying the DB name along with credentials, which is to be connected while publishing the selected entity.

    So on clicking the Publish button, the selected entity got published and the schema of the staging table (for the selected entity) will be created along with the data, in the external DB. This external DB with the tables (by the publishing process) can be used for further process as per requirement. Data from the tables are exported to external DB via data entities.

     My point is, if the external DB is an Azure DB, creation of tables in this DB is failed with the exception, 

    "Error on publishing the data entity. Creation failed for Table dbo.xxxxx." And I didn't use CREATE SQL statement explicitly for this table creation. It is been handled by the DMF framework itself.

    It is found that this table creation exception is from the DLL, Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy, by doing debug on standard DMF X++ classes. It is unable to find from where and why this exception occurs in the DLL. 

    Thanks,

    Elamathi. S

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans