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

RE: How to setup two dependent batch jobs in AX 2012 R2


RE: Purchase order sales tax class/table?

$
0
0

Hi,

If you are referring to the Totals on summary tab on vendor Invoice(Path:Accounts payable/Common/Vendor invoices/Pending vendor invoices) then the method purchTaxTotal of class PurchTotals calculates the value of tax through class variable taxTotal.
Below is the callstack, you can place breakpoint in the method purchTaxTotal and debug to understand the behavior

[s] \Classes\PurchTotals\purchTaxTotal 1
[s] \Classes\PurchTotals\cashDisc 28
[s] \Classes\PurchTotals_ParmTransEdit\cashDisc 18
[s] \Classes\PurchTotals_ParmTrans\calc 402
[c] \Forms\VendEditInvoiceTotals\Methods\calcTotals 38
[c] \Forms\VendEditInvoiceTotals\Data Sources\VendInvoiceInfoTable\Methods\linkActive 4
[c] \Classes\FormRun\run
[c] \Forms\VendEditInvoice\Designs\DesignList\ParmTableTotals\Methods\Clicked 12


RE: CombineXPO.exe and importing the combined XPO

$
0
0

We are having the same issues and have narrowed it down to the ModelSecurityPermissionCache table not correctly updating based on the XPOs we are importing. Still have not found a nice way to fix this issue, as the solution seems to be manually importing the XPO through the client.

CombineXPO.exe and importing the combined XPO

$
0
0

I don't have expectations of any direct answers, but I'm really hoping that someone can help give me some insight or direction of where to go next.  We're using Dynamics AX 2012 R2 CU7.

Part 1: The mystery of the out of order class import

As part of our automated build process, we use the combinexpo.exe utility that comes with Dynamics AX 2012 R2.  When it does the work of combining all of our XPO's, it seems to do something a bit funky with a base class and it's derived classes.  It puts the derived classes first and then puts the base class after during the import.   Because of this, we end up with some errors during the import as the classes are being imported in the wrong order ( in my opinion ).

Here's what I see in the import log.

<Info>Imported AOT element: \Classes\PdsFormCtrl_InventTransferUpdateRemain</Info><Info>Imported AOT element: \Classes\PdsFormCtrl_PurchUpdateRemain</Info><Info>Imported AOT element: \Classes\PdsFormCtrl_SalesUpdateRemain</Info><Info>Imported AOT element: \Classes\PdsFormCtrl_UpdateRemain</Info>

I'm thinking that the PdsFormCtrl_UpdateRemain should be imported first. 

Has anyone else seen this?

As well, I see this exception in the Event Log, but this is a brand new file that the CombineXPOs creates.

CombineXPOs.exe : Error [c:\somelocation\combinedmodel.xpo] System.IO.IOException: The process cannot access the file 'c:\somelocation\combinedmodel.XPO' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.Dynamics.AX.BuildTools.CombineXPOs.XpoReader..ctor(String file)
   at Microsoft.Dynamics.AX.BuildTools.CombineXPOs.MainClass.addFileNoCatch(StreamWriter destinationFile, String filename, Boolean allowDuplicate)
   at Microsoft.Dynamics.AX.BuildTools.CombineXPOs.MainClass.addFile(StreamWriter destinationFile, String filename, Boolean allowDuplicate)


Part 2: The mystery of why the hell does it take so long to import the combined XPO?

Further along our automated build process, we do the work to import the combined XPO.  It's imported via an XML startup file that used the XpoImport command and sets up logging. 

<?xml version="1.0" encoding="utf-8"?><AxaptaAutoRun version="4.0" logFile="importmodel.log" exitWhenDone="true"><XpoImport file="model.xpo" /></AxaptaAutoRun>

The arguments to do the import look like this:

$arguments = '-aol={0} -aolcode="{1}" -lazyclassloading -lazytableloading -nocompileonimport -internal=noModalBoxes -model=@{2} -startupcmd=autorun_{3}' -f $layer, $layerCode, $model, $importXml


So, this process has typically been about 30 minutes, but after some minor code changes that were checked into TFS, this jumped to ~63 minutes. The changes were to existing items that were in TFS and were quite minor. I've scoured through the import log ( that's where I found the errors in part 1 ), but I cannot find any indicator of why this is happening.  Nothing else changed on the server as far as I know and the build process has been zinging along without any changes for months and months.  I've also been through the event log and the import log.  I haven't seen anything that's an indicator.  I've also manually imported the combined XPO and haven't seen anything different than the automated import.

All of the other tasks excluding the AXBuild.exe process take approximately the same time to complete ( DB Sync, CIL, etc ).


Is there anywhere else I can look to see errors?  Could there be caching, settings, etc that's in Dynamics for the build user?  Any ideas of where I can look, what I can flush, or what I can beat up would be appreciated.


I've been assured by our infrastructure group that nothing on our servers have changed that would cause this ( I know, I know, never trust server guys ).

RE: Purchase order sales tax class/table?

Purchase order sales tax class/table?

$
0
0

Hello, where can I locate the class/table that calculates the sales tax?

This is in purchase order > Invoice > vendor Invoice > under summary > Totals

RE: Extend/customize a Map - how is this done?

$
0
0

Brian Refshauge , did you find a solution, I am trying to extend the same exact code.  Right click on BankPaymAdviceTmpMap object in AOT, create extension is available but selecting it does nothing event though my project is in an extension model.  I end up creating my own controller class and related classes and creating my own map.

Extend/customize a Map - how is this done?

$
0
0

I'm trying to extend an existing map (SourceDocumentHeaderImplementation) in the SourceDocumentation package.

First problem is that it won't allow me to Extend.... only Customize. Not ideal, but let's run with it.

So I select the Customize option, and strangely the Mappings node is completely empty - I would expect to see the standard mappings here, but for some reason, I don't:

It allows me to add a new Mapping, but there doesn't seem to be anywhere to specify which table it maps to:

How do maps work in AX7??


RE: finding reference package for standard model

$
0
0

I think  you want to reference above package ? If you are not telling object name / explain your situation , what you want to do its going to be very difficult to understand

RE: How to setup two dependent batch jobs in AX 2012 R2

$
0
0

You can go to that batch job , then go to View task. Create new record for your first batch job. Then create second record for your second  batch job and in the bottom section of a screen create a condition by selecting first task id with expected status as Ended. This makes sure that when first batch job ends second one starts. Screen shot is from D365 but  same screen is present in Ax 2012

RE: Header shows current date, needs to show report date

$
0
0

I do not have the option for "Report generated date/time".  We are currently running version 2.12.16000.17 (CU16), is there another update that we are missing or something?

Header shows current date, needs to show report date

$
0
0

We run a daily balance sheet report in management reporter for AX 2012.  When you open a past version (prior date) of the report the header shows the report as the current date's report, it should show the date the report was ran.  All the report data is correct for the version shown, but the header always displays the current date.

In the designer, the header uses @PrintDateShort and @PrintTimeShort to show these dates, is there another option to display the actual date of the report?  Otherwise the report is useless as it shows incorrect data to the user.

RE: DynamicsAX RPC error: Failed to register service principal name (SPN):

DynamicsAX RPC error: Failed to register service principal name (SPN):

$
0
0

Hello everyone,

 I'm Newby working with AX and i have issues with one server, its losing the connection to the Domain Controllers

i got the following errors:

Object Server 01:  RPC error: Failed to register service principal name (SPN): '29D16D8E-32D1-433B-B77F-987C2408CEA4/AOS01.xxxxxxxxxx.xxxxxxx.CL:2712'

Event ID: 180

and the one following is this other:

Object Server 01:  The database reported (session 1 (-AOS-)): [Microsoft][SQL Server Native Client 11.0][SQL Server]No se encontró el procedimiento almacenado
'AXPROD_model.dbo.XU_IsModelIdInstalled'.. The SQL statement was: "{ CALL [AXPROD_model].[dbo].[XU_IsModelIdInstalled](?, ?) }"

Event Id:117

i think that my issue is related with domains controllers, but since its just 1 server and not all of them that hare having this issue i'm kinda confuse about it!

Please could you give a hand on this!

All Servers are running windows Server 2012R2 Standard.

Both of our Domain Controllers where 2000 then upgrade to 2003, then upgrade to 2008R2 and now Upgrade to 2012R2.

I just got them when they where all 2012R2.

Thanks in advance

We had several AX Services stop during the last week and the only thing that make sense to me that the service is stopped its because the RPC, but i'm really basic in AX! I really appreciated somed guidance in the troubleshooting process!

We have other AX Server that does not show those error in the event viewer and we had no issues its 100% fully working!

RE: Creating event handler for form part on payroll work space

$
0
0

PayrollWorkspaceFindPayStatementsPart form belongs to Package Application workspace. Reference your Model with Application workspace package and your error should go away


RE: Budgeting on inventory issuance

$
0
0

Hi Rahat Ali,

Can you elaborate on that?

What I don't understand from your scenario is the movement journal and work plan issue. Isn't the idea of a budget preventing people from spending too much?

Yet, when you have the items already on stock the money is already spend.

Does a budget check at this stage make sense?

Best regards,

Ludwig

Budgeting on inventory issuance

$
0
0

Hi All,

I have two question regarding budgeting.

1. We normally purchased items on department request and department have specific budget that already allocated, during creation of PR and PO need to check available budget but consumption of budget may have decided on Movement journal. i.e. give the expense account on movement journal to consume the budget.

So how we can handle this ?? 

2. We have 'Work Plan' that created and assign budget to work plan so department need to specify work plan for budget consumption. There is an option to use dimension for work plan, is there any other way ??

Thanks

-Rahat Ali

RE: Reset Number Sequence

$
0
0

If you have back up of the data prior to postings , you can try restoring that . Anyways you have to delete transactions from the company to reset number sequences  so why not restore.

Reset Number Sequence

$
0
0

Hi,

i have a test environment where users post many transactions in different modules. how can i reset related number sequences ?

RE: Make form control event handler post action

$
0
0

Copy OnClicked event for that button and write your code.

Viewing all 175888 articles
Browse latest View live


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