The AX Wiki on Dynamics 365 for Operations does contain an article on Discrete manufacturing, have a look at that, maybe this is what you are looking for:
RE: Discrete Manufacturing in Dynamics365
RE: AX 7 workflow error
i think the relationship has not been created??? have done it?
RE: How to create Batch Job in Microsoft Dynamics AX 2012 R3?
Thanks Vilmos,
i just try for Create Batch Job with simple case.
Actually, i have another case not like this case.
But, my batch Job not work.
RE: Grid value
Hi,
On button click you can check either you are retrieving correct values or not which is wrriten using clicked method.
refreshes the form level datasource
RE: see a customer's total sales and payment amount
Hi,
1. Total sales amount for the Invoice can be fetched from CustInvoiceJour.InvoiceAmount (or if you want for the entire sales order, not just this invoice - select it from SalesTable.amountMST() )
2. Total paid amount, can be fetched from CustTrans.SettleAmountCur where CustTrans.Invoice == CustInvoiceJour.InvouceId && CustTrans.TransType == enum('Payment')
3. Once you have 1 and 2, this is done.
see a customer's total sales and payment amount
Hello experts
My client asked us for a customized customer invoice which includes Total Sales Amounts, Total Payment and the Customer Balances.
I found the standard Customer Balance List report and it shows Debit Balance - Credit Balance = Total Customer Balances, and I think this is not my client wants. For example, Credit Balances not only include the customer payment, but also include canceled sales amounts.
As I mentioned above, In the newly customized report, I want to include
1) Total Sales amount = Customer Sales - canceled Sales
2) Total Payment amount
3) Customer Balance= 1) - 2)
and I want to know where can I bring those amount.
Can you please let me know the AOT path for those data ?
Thank you
RE: data Area changed to DEL
DataAreaId field cannot be modified inside AX. Do you have any virtual company created with the DEL name, or something similar? If not, then surely someone has altered it from SQL Server side, which is very alarming - there should be no modifications allowed on SQL side. In that case you may try to update it from there, but first validate the solution and the impact of it in a separate environment that you have backed up/restored from Production.
RE: How to create Batch Job in Microsoft Dynamics AX 2012 R3?
Can you please answer my request and provide additional details?
RE: Newly created Legal Entity on Ax unable to reflect on Management reporter
This article mentions that you have to enable the integrations in the MR console, and import the company accounts:
vsitblog.blogspot.hu/.../install-and-configure-management.html
It is on the ERP Integrations node, Import button. Have you done that step?
Newly created Legal Entity on Ax unable to reflect on Management reporter
Hi Guys,
I'm having a hard time discovering why the newly created legal entity in ax does not shows on Management reporter.
We are using Dynamics AX 2012 R3 Cu9 with Management Reporter v. 2.12.14001.45
Below are the screenshots of my Management reporter.
I want to show the newly created entity "DemoPaul - DMO" on Management reporter we encounter some information about the error.
We already disable and enable the integration, but same result.
Same with re-publishing server connection, restarting both AOS, DB, MR Server.
Can someone help me identify and resolve this issue.
Thank you so much in advance.
Regards,
r0bert
RE: How to create Batch Job in Microsoft Dynamics AX 2012 R3?
When you say, your batch job doesn't work, can you share the code you have written to update TableB?
There are only 2 chances, when you don't get any error.
a. The batch job did not run
b. Your code is not selecting records from TableA. (This could be because of the flag, or an incorrect statement. I'm ruling out an incorrect insert(), as you never mentioned an error)
RE: How to create Batch Job in Microsoft Dynamics AX 2012 R3?
Thanks Crispin..
this my code.
class RunBaseDemo extends RunBaseBatch
{
}
client server static ClassDescription description()
{
return "Test Batch Job";
}
public void run()
{
PIL_RunBaseDemo _baseDemo; //this second table
PIL_DepositoMaster _depositoMaster; //this first table
ttsbegin;
try
{
while select _depositoMaster
{
if(_depositoMaster.PIL_Started == NoYes::Yes) //flag 'Yes'
{
_baseDemo.clear();
_baseDemo.PIL_DepositoID = _depositoMaster.PIL_DepositoID;
_baseDemo.insert();
}
}
ttsCommit;
}
catch
{
error("Process failed");
}
}
static void main(Args _args)
{
RunBaseDemo objClass = new RunBaseDemo();
if (objClass.prompt())
{
objClass.run();
}
}
And then i open this class. i set 'Recurrence' every 2 minutes for testing.
i follow this link https://www.dynamics101.com/runbase-framework-microsoft-dynamics-ax-2012/
Earning Statement Negative Hours Line Logic
RE: TMS: RateShopBroker Error
HI ,
Error is resloved with Enable the hot-swapping of assemblies for each development session.
it works for me.
TMS: RateShopBroker Error
We experience this error, RateShopBroker Error, in a customer installation, when running the rateshop.
The error can be reproduced in the customers UAT environment. We have an identical develop and test environment at Azure, this run without this error.
When the AOS has been restarted, the first user run the rate shop – it rates with no errors.
No user will have problems.
When the first user log off - the error will occur when another user try to rate shop.
If the first user logon again and now trying to rateshop – error occurs also for this user.
We can make it run Again by restarting the AOS. Then it works until the first user that have run the rateshop first time, logoff.
It seems the first user session blogs for the rating
Anyone have experience or suggestions for solutions?
Exception at level 0
Message: Error RateShopBroker, TMSException
Source: Microsoft.Dynamics.Ax.Tms
Stack trace: at Microsoft.Dynamics.Ax.Tms.API.TmsService.ExecuteTransaction(String requestXml)
Exception at level 1
Message: The requested operation cannot be performed because you are not logged on to Microsoft Dynamics.
Source: Microsoft.Dynamics.AX.ManagedInterop
Stack trace: at Microsoft.Dynamics.AX.ManagedInterop.CMultiSession.{ctor}(CMultiSession* , IAxSession* pAxSession, Boolean* pfSessionTerminated)
RE: How to create Batch Job in Microsoft Dynamics AX 2012 R3?
First of all the entire TTS block must be inside your try-catch, currently you do a ttsBegin outside, which is incorrect.
Secondly, why do you put an if statement on checking the field content, when it could be put in a query criteria, so you do not have to loop through all records?
Also you should never ever prefix internal variables with the underscore, since that is only reserved for the method's parameters, to indicate that the variable comes from an external call.
You should do such buffer operations in a single call anyway, because while select is a slower row-by-row based operation.
Try something like this:
insert_recordset baseDemo(PIL_DepositoId) select PIL_DepositoId from depositoMaster where depositoMaster.PIL_Started == NoYes::Yes notexists join baseDemoNotexists // Declare this new variable! where baseDemoNotexists.PIL_DepositoId == depositoMaster.PIL_DepositoId;
RE: How to create Batch Job in Microsoft Dynamics AX 2012 R3?
Your code can be improved a bit. Here are my suggestions:
while select _depositoMaster
where _depositoMaster.PIL_Started
{
_baseDemo.PIL_DepositoID = _depositoMaster.PIL_DepositoID;
_baseDemo.insert();
}
There is no need for .clear() in your case.
ttsbegin; should go inside the try block.
The only way to find why your code doesn't work is to make an infolog in the while loop, to display _depositoMaster records. See if atleast one record is selected.
RE: AX 7 workflow error
Hi Yuji,
How did you create the workflow definition? Did you copy a database from one environment to another?
RE: AX Very Slow for particular time
Hi Muthusamy,
Like Vilmos stated you have to do monitoring to be able to find the culprit. Is it running slow daily at the same time? If so, there should be something running. I have seen a virus scanner causing similar issues. Also, the automatic cleanup of continuous number sequences can cause long waiting times.
Finished Goods with 2 Bill of Material
Hello ,
Please can someone help me with this issue,
I have two BOM for just One Finished good, please what is the best thing to do,
1. to create two different BOM
2. To create single BOM with version 1 and 2
Also , how can I use the 2 BOM during production.
Many thanks