Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

How to change the label of the query in sys operation

$
0
0

Hi,

Assume that SalesTable is used as a query datasource. When the same is been added as a parameter in sys operations contract class, the UI interface will display the query label as 'Sales orders'. Is there any possibility so that I can change the label to a customized one.

Thanks!


RE: Can't use BusinessConnector in ASP.Net app

$
0
0

Which version of .NET framework is the application using and what's its target processor architecture?

RE: Data Replication from Dynamics AX to MONGO DB

$
0
0

Extracting data directly from database is potentially risky and you would have to replicate logic that already exists in the application (table relations, interpreting enums, dealing with PartitionId and DataAreaId, display methods and so on). While you can get excellent performance, it's generally discouraged. Such a solution also couldn't be upgraded to AX 7, because there you don't have direct access to production databases.

Note that AIF already uses change tracking under the hood. I've once extended the solution to track deletions and used it for synchronization with an external system (using X++ and .NET, in my case Entity Framework).

I'm surprised that you didn't consider DIXF. For example, look at how Microsoft utilizes it to populate Entity Store, which is quite a similar scenario.

Data Replication from Dynamics AX to MONGO DB

$
0
0

we are attempting a solution to replicate data(transactional as well as reference) from microsoft dynamics AX to MongoDB

after reading a lot of blogs and doing brainstorming among my team, i have arrived at following three solutions

1. Creating Document Services over any transfer protocol

 poll through it and obtain the changes that have been done with regards to tables that document service is looking on

Fetch changed keys and subsequently obtain the row records based on changed keys

Pros:

since it is using AX document service, writing custom query or service with data source having multiple tables will make the process easier

Cons: 

each call to document service at an interval of 30 to 60 seconds for 40 services will burden the system and impact performance

2. Enable CreatedDateTime and ModifiedDateTime system columns on tables inside AOT, write custom stored procedures which will run at certain intervals and retrieve rows which have changed or newly created after last retrieval. 

Pros:

simpler approach and removes the dependency on dynamics ax

Cons:

we are unable to handle deleted records taking place in db with this approach

3. Turn on CDC on microsoft SQL Server residing behind Dynamics AX and monitor the change logs to replicate changes in mongo DB via message queues

Cons:

Enabling change tracking will slow down the performance of SQL Server and make it less responsive

is there any method through which we could get real time data push of table changes that a certain business flow has made?

could you suggest on best practices that are employed for replication using microsoft dynamics ax? also are there are any other approaches which we have not considered

RE: How to change the label of the query in sys operation

Double Product Name upon SO

$
0
0

Hi !

I created item with product dimension which is color Brown and RR, each color has different barcode and salesprice.  When i create Sales Order and input the color the product name doubled. See Image.

RE: How to disable removing the query ranges in sys operations

RE: Error while executing sysoperation in batch process

$
0
0

Hi Vilmos,

I have debugged in visual studio and found that the issue is with a webservice request part. The same works fine in x++. Below is the code sample at which it goes to CLR error. It goes to error at "xml = commProxy.sendRequest(xml);"

Any suggestion please!

void execute()

{

   TMSCommProxy        commProxy = this.getTMSCommProxy();

   container           con;

   XML                 xml;

   TMSTransaction      transaction;

   con = this.sendTransaction();

   xml = conPeek(con, 2);

   if (!manualApportionment)

   {

       xml = commProxy.sendRequest(xml);

   }

   ttsbegin;

   transaction = TMSTransaction::find(conPeek(con, 1), true);

   transaction.ResponseData = xml;

   transaction.write();

   ttscommit;

   this.readXML(xml);

}


Error while executing sysoperation in batch process

$
0
0

Hi,

I have created a sys operation framework functionality. The process works fine when the class is executed in UI through menu item. But when the same is executed as a batch job I am getting the below error in the execution log.

Error executing code: Wrong argument types for comparison.

But still the process is getting completed successfully. I have tried with full CIL generation and clearing the user data as well, but the error persist. Could anyone please provide a suggestion on this.

Thanks!

RE: Any official documentation on Microsoft.Dynamics.Ax.Xpp.MetadataSupport?

$
0
0

I'm not aware of any documentation, but IntelliSense does work fine for me.

No source code is distributed for this assembly, only the compiled DLL. But you can use a decompiler, if you want.

RE: Double Product Name upon SO

$
0
0

Hi,

Check if you have any custom code at the following places that might cause this problem:

\Forms\SalesTable\Data Sources\InventDim\Fields\InventColorId\Methods\modified

\Data Dictionary\Tables\InventDim\Methods\modifiedField

RE: Error while executing sysoperation in batch process

$
0
0

Look at which type is expected and returned from sendRequest() and use the same types in for the parameter and at the left side of the assignment.

I think the difference is between running in X++ and CIL, not about a batch. Try running it with the synchronous execution mode with "Execute business operations in CIL" enabled. If it's the case, it will make your debugging easier.

RE: Any official documentation on Microsoft.Dynamics.Ax.Xpp.MetadataSupport?

$
0
0

Interesting, well I'm glad there is intellisense on it to see the methods behind it.

Here's what it looks like for me:

Not sure how we are seeing different functionality but must be something up with my Visual Studio.

Any official documentation on Microsoft.Dynamics.Ax.Xpp.MetadataSupport?

$
0
0

With AX7 there has been a switch to use Microsoft.Dynamics.Ax.Xpp.MetadataSupport when getting any sort of metadata, and there are a number of posts/articles about how to use it.

But is there any documentation on what methods are available on this class? (something like MSDN has for almost every other AX class)

Intellisense in Visual Studio doesn't provide any methods at all and you can't F12 to see the code behind it.

The issue I am running into is that the GetDataEntityViewNames() call is not returning Composite or Aggregate Data Entities (it returns normal data entities just fine) and I wanted to see if there is a different call to get these.

RE: what is the difference between "Partition and Virtual company"

$
0
0

Thanks Andre,

Exactly, I did the same thing and i understand the logic of partition. When i create a new instance of "Test partition" it's look like that

After that i have 2 instances : Original configuration and Test Partition. and i create a new table "Employee details". which exist in both instances because both are sharing same database.

Then i checked in SQL server. It's showing different partition for 2 instances.

In Userinfo table it's creating "Admin" and "Guest" for each partitions:

Is't correct?

Please give me more shed on this.

Arpan


what is the difference between "Partition and Virtual company"

$
0
0

Dear All,f

Can you please let me know what is the difference between "Partition and Virtual company" in AX 2012 R3.

As i know both we are using for sharing data across company. Please give me an example.

Please give me more shed on this.

Thanks!

Arpan 

RE: Not able to create any entry in ax in all modules

$
0
0

Hi,

Please try the workaround specified at the following links:

(Cannot create a record in tablename. The record already exists. / Get new recid for a table)

community.dynamics.com/.../cannot-create-a-record-in-tablename-the-record-already-exists-get-new-recid-for-a-table

(Microsoft Dynamics AX Error: The Record Already Exists)
https://stoneridgesoftware.com/microsoft-dynamics-ax-error-the-record-already-exists/

(Misleading "The record already exists" message)

mybhat.blogspot.it/.../misleading-record-already-exists-message.html

Not able to create any entry in ax in all modules

$
0
0

When we try to create Purchase order, journal or any item in ax it is not allowing to create. Cannot create a record in table(standard) errr is shown .

We tried to update the NEXVAL in the table SYSTEMSEQUENCES with the MAX(RecID) from the corresponding table. Now, it allowd to Create once, when we create the next time, it throws same error. Now, when we checked the SYSTEMSEQUENCES table, it was not incremented there.

Also, we tried Full Compile, Synchronize and AOS restart. ALso, cache cleaning and usage data reset.

Please help.

Invent On Hand Item Form

$
0
0

Hello Gurus,

We recently installed WAX/TRAX and had a custom item form with fewer(or relevant) fields to make life little easier for end users. 

It worked well all along, however, when we try to access On-hand from Manage inventory tab, it is not populating or passing the Invent Dim values and gives an error saying Item Id and Product should be filled in. 

This is on Inventonhanditem form and I think the underlying reason is that inventdim is not being passed correctly. I checked all the classes and forms pertaining to it, couldn't make much headway. Can you please shed somelight on how the inventdim values are passed from "EcoResProductpercompanyListpage" or other form to this particular instance of Invent On Hand form. I understand it is being controlled by inventdim_ctrl_Frm_OnhandItem, everything looks ok. Is this a bug that needs to be reported? 

Respectfully,

Ken

RE: Invent On Hand Item Form

$
0
0

Hi,

On form InventOnhandItem,
Table InventSum gets the values(or ranges) from method initQueryInventSum of class InventDimCtrl_Frm_OnHand


Table InventDim gets the values(or ranges) from method formQueryAddDynalink of table InventDim

Please place breakpoints at this places and debug to check where the values are missing.

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>