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

Date period for batch job needs to be dynamic using runbasebatch x++

$
0
0

Hi,

The report will be planned to run in batch. The date period for batch needs to be dynamic. It’s planned to be run monthly to be run on the 3rd of each month. For batch, the date interval be used, so a date interval for the 3rd of or the previous month to the 3rd of the current month can be setup. If date intervals are used, then the ability to override the from and to dates should be allowed. kindly pls advice how can i do.

Thanks Advance


LakshmikanthanK

Alias Statement

$
0
0

Hi , 

I have the small x++ code i need to insert different data  by the date but from the same field how come

while select Name from salesPurchaseSite
join SiteId from subSalesPurchaseSite order by subSalesPurchaseSite.SiteId
where subSalesPurchaseSite.ID == salesPurchaseSite.ID

{

sagha_AllSalesTemp.clear();
select salesTable where salesTable.InventSiteId ==subSalesPurchaseSite.SiteId
&& salesTable.DeliveryDate >= str2Date('01/11/2016',123)
&& salesTable.DeliveryDate < str2Date('30/11/2016',123)
join sum(SalesQty) from salesLine where salesLine.SalesId == salesTable.SalesId
join inventTable where salesLine.ItemId ==InventTable.ItemId
join ecoResProductCategory where InventTable.Product== ecoResProductCategory.Product;


// here insert data in temp table  in field LineAmountY 


sagha_AllSalesTemp.LineAmountY = salesLine.SalesQty;


select salesTable where salesTable.InventSiteId ==subSalesPurchaseSite.SiteId
&& salesTable.DeliveryDate == str2Date('30/11/2016',123)
join sum(SalesQty) from salesLine where salesLine.SalesId == salesTable.SalesId
join inventTable where salesLine.ItemId ==InventTable.ItemId
join ecoResProductCategory where InventTable.Product== ecoResProductCategory.Product;

// here need to insert different data but the same field because the date is different  


sagha_AllSalesTemp.LineAmount = salesLine.SalesQty;
sagha_AllSalesTemp.DeliveryName = salesPurchaseSite.Name;
sagha_AllSalesTemp.insert();

}



Testing A Report Data Provider Class

$
0
0

Hi,

Is there a way to test a Report Data Provider class when building AX reports without creating reports in Visual Studio? In other words, I would like to be able to run code in my RDP class directly from AOT. I've created a separate test class before and mirrored the code to debug and enhance the code but that's a bit tedious. Once, all my development and testing is done, then I would create a report in VS and connect my RPD class.

Thank you!

Inventory Count Locking

$
0
0

Hi,

I made sure that the "Lock items during count" option is selected in Inventory Management > Setup > Inventory Management Parameters | General > Count. However, if I create a new count journal, items are not being locked in Products Information Management > Common > Released products | Manage Inventory > Warehouse > Warehouse Items | Default > Counting status > Counting started. Is there anything else I should check?

Thank you!

Error In Application & Binary update-4

$
0
0

Hi 

Yesterday i have upgrade my local VM with Binary & Application update-4 on Platform Update-11.

After successful update when i compile complete Application Suite then its showing me two error of systems standard classes TaxDPImport_NL (deliver (method Name)) && TaxDPSend_NL (getStatus(methodName)). Before this activity method signature was taking one class object, three string Object and one Integer.

After update of application & Binary method parameter signature are different.

Please someone guide me how to get resolve without over layering..

Please check the below screen-shots

Screenshot-2

  

Post Button Disabled

$
0
0

Hi all,

I'm currently unable to post a hour journal. The POST button is disabled, greyed out completely. but validation is ok. This happens in the test environment only and happening with multiple users. Kindly assist with this.

One Purchase Invoice against multiple Product receipts through Code X++

$
0
0

Is any one know the code or a job to create one Purchase invoice against multiple Product receipts in X++ Dynamics AX 2012.

An urgent feedback will be highly appreciated.

Thanks.

How can Move my SSRS report that I build from Test environment to Prod ?

$
0
0

How can Move my SSRS report that I build from Test environment to Prod ?


VS 2013 C Sharp project on AX 2012 R2 CU7 AX version

$
0
0

Hello,

On one of our customer's AOS box, we found  a customized (not a standard one) C sharp project. They use AX 2012 R2 CU7.

There is a visual studio 2010 installed on it. When I try to open this C Sharp Project, i get the message that 

'This project is incompatible with the current version of Visual Studio'.  I found that this project has few 3rd Party DLLs referenced in it. These 3rd Party DLLs are built against .NET framework 4.5.2. Hence I believe this VS project is created in VS2012 or VS2013 or higher version.

My questions are,

1) Is this possible to create project in such higher VS version and load in AX 2012 R2 CU7 AX? Does AX support this?

2) How does this 3rd Party DLLs are being shown in VS Project -> Project Output node?  I tried to create such a project using AX 2012 R3 and VS 2013. I referenced these DLLs and built my project and added it to AOT.  It doesn't show 3rd Party DLLs there. Only my project's compiled DLL file is being shown there. My project has Deploy to Client, Deploy to Server, Deploy to EP properties set as 'Yes'. What am I missing?

Reversal of vendor deletion in AX2009

$
0
0

Hi,

A user deleted a vendor unknowingly and system allowed it even though It has hundred of Purchase orders in 'Invoiced', 'Open Order' state.

How to revert this delete action now? 

Please note that, it doesn't have Global address book license probably. I couldn't see any tables like DirPartyTable in AOT or SQL.

Can we just create vendor again and would that work?

Logic App file integration with D365FO

Blob storage size

$
0
0

Hi,

In my understanding, the data entities store the zip files on Azure Blob storage. Does anyone know what the size limit of the blob storage that D365FO can use?

Thanks,

default inventory locations

$
0
0

is the transfer and other inventory journals can setup a default inventory location ?

i setuped in the warehouse but is not effected and only effect SO&PO

 

the system is 09 and 12

Workflow notification to the 'Worker' of the Record

$
0
0

Hi,

While setting up the workflow notification, we are getting only 2 options by default as shown in image below. but we want the 'Worker' field in the record to be used where we want to send the notification email. In our case, workflow originator is the different person than the worker for whom the record is created.

Can anyone advice if that's possible?

Movement Journal Creation Error through Batch Job (System.MissingFieldException: Field not found: 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase.__eventMap'.)

$
0
0

Hello Everyone !

I am creating movement journals through code. and it is working fine. 

Now I have put that code in a class that extends from RunBaseBatch to create a batch job so that my journal may be created through batch job. When I call that class through normal static job of AOT it works fine and created proper journals and post them. which proves that code is working fine.

But when I schedule the batch job on the mentioned class it throws error which is given below.

Can any one please tell me what is this error for and suggest me the solution of this problem.

ERROR: 

System.MissingFieldException: Field not found: 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase.__eventMap'.

at Dynamics.Ax.Application.DimensionStorage.loadFields()()

at Dynamics.Ax.Application.DimensionStorage..ctor(Int32 initialSegments, LedgerDimensionType ledgerDimensionType, Boolean )

at Dynamics.Ax.Application.DimensionStorage.construct(Int32 initialSegments, LedgerDimensionType ledgerDimensionType, Boolean , Boolean ) in DimensionStorage.construct.xpp:line 21

at Dynamics.Ax.Application.DimensionDefaultingEngine.Getstorage(LedgerDimensionType _ledgerDimensionType, Boolean ) in DimensionDefaultingEngine.getStorage.xpp:line 30

at Dynamics.Ax.Application.DimensionDefaultingEngine.Getledgerdimension() in DimensionDefaultingEngine.getLedgerDimension.xpp:line 16

at Dynamics.Ax.Application.DimensionDefaultingService.createLedgerDimension(Object[] _parms) in DimensionDefaultingService.createLedgerDimension.xpp:line 54

at DimensionDefaultingService::createLedgerDimension(Object[] )

at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26

at Dynamics.Ax.Application.SysDictClass.invokeStaticMethodIL(String className, String methodName, Object[] params, Boolean ignoreTtsLevel, Boolean ) in SysDictClass.invokeStaticMethodIL.xpp:line 39

at Dynamics.Ax.Application.Global.runClassMethodIL(String className, String methodName, Object[] params, Boolean ignoreTtsLevel, Boolean ) in Global.runClassMethodIL.xpp:line 30

at Dynamics.Ax.Application.DimensionDefaultingService.serverCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Int64 dimensionDefault2, Int64 dimensionDefault3, Boolean , Boolean , Boolean ) in DimensionDefaultingService.serverCreateLedgerDimension.xpp:line 58

at Dynamics.Ax.Application.DimensionDefaultingService.serviceCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Int64 dimensionDefault2, Int64 dimensionDefault3, Boolean , Boolean , Boolean ) in DimensionDefaultingService.serviceCreateLedgerDimension.xpp:line 49

at Dynamics.Ax.Application.DimensionDefaultingService.@serviceCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Int64 _dimensionDefault2, Boolean , Boolean )

at Dynamics.Ax.Application.DimensionDefaultingService.@serviceCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Boolean )

at Dynamics.Ax.Application.InventMovement.Updateledgeradjust(LedgerVoucher ledgerVoucher, InventUpd_Financial updateNow, Decimal costAmount, String projAdjustRefId, Date _projTransDate, Boolean , Boolean ) in InventMovement.updateLedgerAdjust.xpp:line 91

at Dynamics.Ax.Application.InventMovement.Updateledgeradjust(LedgerVoucher ledgerVoucher, InventUpd_Financial updateNow, Decimal costAmount, String projAdjustRefId, Date _projTransDate)

at Dynamics.Ax.Application.InventUpd_Financial.Updatefinancialissue(Decimal costAmountMST, Decimal costAmountSecCur) in InventUpd_Financial.updateFinancialIssue.xpp:line 173

at Dynamics.Ax.Application.InventUpd_Financial.Updatenow() in InventUpd_Financial.updateNow.xpp:line 107

at Dynamics.Ax.Application.InventMov_Journal.Journalposttrans(LedgerVoucher ledgerVoucher, InventUpd_Financial financial, Decimal _costAmount, Boolean , Boolean ) in InventMov_Journal.journalPostTrans.xpp:line 30

at Dynamics.Ax.Application.InventMov_Journal.@Journalposttrans(LedgerVoucher ledgerVoucher, InventUpd_Financial financial, Boolean )

at Dynamics.Ax.Application.InventJournalCheckPost_Movement.Posttransledger(JournalTransData journalTransData, LedgerVoucher ledgerVoucher) in InventJournalCheckPost_Movement.postTransLedger.xpp:line 75

at Dynamics.Ax.Application.JournalCheckPostLedger.Postvoucher(JournalTransList _journalTransList) in JournalCheckPostLedger.postVoucher.xpp:line 33

at Dynamics.Ax.Application.JournalCheckPostLedger.Postjournal(JournalTransList _journalTransList) in JournalCheckPostLedger.postJournal.xpp:line 28

at Dynamics.Ax.Application.InventJournalCheckPost_Movement.Postjournal(JournalTransList _journalTransList) in InventJournalCheckPost_Movement.postJournal.xpp:line 14

at Dynamics.Ax.Application.JournalCheckPost.Runpost() in JournalCheckPost.runPost.xpp:line 7

at Dynamics.Ax.Application.JournalCheckPost.Run() in JournalCheckPost.run.xpp:line 38

at Dynamics.Ax.Application.MTQSizeAdjustmentBatchJob.Run() in MTQSizeAdjustmentBatchJob.run.xpp:line 70

at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54

at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13

at BatchRun::runJobStatic(Object[] )

at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

at BatchIL.taskThreadEntry(Object threadArg)

 


distribution schedule p job

$
0
0

dear ,,

i have one store when start p job to upload data from store coming this error ,, i have change the file in cdx by file i am copy it before

but same error

Multiple Invoices for 1 PO qty

$
0
0

Hi,

We have a scenario in AX 2012 R3, where my PO is for a service item, and I am putting one quantity with full amount against it in a PO line eg. building a unit, but the Vendor gives me multiple invoices against it.

Currently we are splitting the qty in decimals to Invoice it, but it creates variance as three way matching is enabled, and causes GL/SL imbalance in few scenarios, as the GRN reversal and Invoices posted don't exactly match.

Workflows are enabled hence changing PO lines is not a option, also how the invoices will come and how many will come is not known while raising the PO

Is there a better way of dealing these scenarios?

Regards,

Vishal

MarkRefInventTransOrigin

$
0
0

Hi,

What is the significance of this field in InventTrans? Some item transactions have 0 value in MarkRefInventTransOrigin field and others have a value? on what basis, this value is getting updated.

job for upload product master and release product

$
0
0

Hi

I want to upload release product through job. Kindly provide assistance about the tables which will be going to hit.

I was trying to use DMF but i am not able to see product DMF in entity.

Learning functional part of AX

$
0
0

Hi All,

I am new in AX, can anyone suggest online tutorial or site where i can practice functional part of it (other than financial)

Thanks,

Ravindra 

Viewing all 46681 articles
Browse latest View live


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