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

Unregistering Inventory with X++ - AX 2012

$
0
0

I was able to successfully register and receive items in AX 2012 with code.  I was wondering how to unregister inventory if receiving the registered qty fails? 

For instance, I register 1200 of something to be received.  Done.  Now I try and receive it in, but the order was only for 1000 with no over/under delivery %.  The receipt fails, but the registered qty remains. 

In this instance, I want to unregister the item(s) as to avoid accidental receipt of the item later. Or, in the above case, an error in my service saying there is no qty on order (it has Registered status now, not Ordered). 

Thanks!


x++ code for Inventory registration

$
0
0

I need to write some code to receive items and assign a batch # during the receiving

So, As I understand the only way to assign a different vendor batch# is to do an inventory registration.

So can any one provide me with code sample for inventory registration and assigning batch or serial # in AX 2012?

Management Reporter 2012 CU7 Installation Fails On Enabling Change Tracking

$
0
0

Hello all,

Recently I was installing Management Reporter 2012 CU7 from AX 2012 CU7 installation and it failed. 

Installation logged the error that it failed on running SQL Script (see in very end of the post):

An error occurred while configuring SQL change tracking. The error message is as follows: System.Data.SqlClient.SqlException (0x80131904): Cannot enable change tracking on table 'RetailTerminalTable'. Change tracking requires a primary key on the table. Create a primary key on the table before enabling change tracking.

The true reason was that some configuration keys (in particular Retail Headquarters) were not enabled. If I am not using it why do I need to enable it???

The tables that are affected by the script has the following configuration keys:

  • General Ledger
  • Budget
  • Cash flow forecast
  • Budget control
  • Budget planning configuration key
  • Trade
  • Trade and sales agreement
  • Project I
  • Retail
  • Retail Headquarters
  • Public Sector

Bold ones can be enabled or disabled. For non-bold one must ensure that license keys are not cleared out.

The script that failed tries to enable change tracking on some tables. Here is the script:

ALTER DATABASE [MicrosoftDynamicsAX]

SET CHANGE_TRACKING = ON (CHANGE_RETENTION = 3 DAYS, AUTO_CLEANUP = ON)

ALTER TABLE [dbo].[MainAccount] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[InventItemGroup] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[ProjTable] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[RetailChannelTable] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[RetailTerminalTable] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[HcmWorker] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[DimensionFinancialTag] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[DirPartyTable] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[LedgerFund] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[AgreementHeaderExt_RU] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETMODEL] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETSOURCE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETSOURCETRACKING] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETSOURCETRACKINGDETAIL] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETSOURCETRACKINGRELIEVINGDETAIL] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETTRANSACTIONHEADER] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETTRANSACTIONLINE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[DIMENSIONATTRIBUTEVALUE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[DIMENSIONATTRIBUTEVALUETOTALLINGCRITERIA] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[DIMENSIONATTRVALUECOAOVERRIDE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[DIMENSIONATTRVALUELEDGEROVERRIDE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[EXCHANGERATE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[EXCHANGERATECURRENCYPAIR] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[EXCHANGERATETYPE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[FISCALCALENDARYEAR] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[FISCALCALENDARPERIOD] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[GENERALJOURNALENTRY] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[GENERALJOURNALACCOUNTENTRY] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[LEDGER] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[LEDGERCOV] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[LEDGERFISCALCALENDARPERIOD] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[LEDGERJOURNALTABLE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[LEDGERJOURNALTRANS] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[OMHIERARCHYCHANGELOG] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETPLANLINE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETPLANHEADER] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETPLANNINGSTAGE] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETPLANPRIORITY] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)
ALTER TABLE [dbo].[BUDGETPLANSCENARIO] ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON)

Hope that helps!

AP History Extract

$
0
0

I have been asked to generate a file with the following information from AX 2009:

  1. Vendor Number
  2. Vendor Invoice Number
  3. Vendor Invoice Date
  4. Purchase Order ID
  5. Purchase Order Line
  6. AP Document Number (ie. Check number...)
  7. AP Document Date (ie. Date check was issued)
  8. Payment Amount

Has anyone else done something like this or come across a report that gives this information?

is It best to do something like this?

LedgerJournalTrans

innerjoin

VendTrans

on LedgerJournalTrans.dataAreaId = VendTrans.dataAreaId and

LedgerJournalTrans.VendTransId = VendTrans.RecId

innerjoin

VendTrans as VendTransOffset

on

VendTransOffset.OffsetRecId = VendTrans.RecId

innerjoin

VendInvoiceJour

on VendTransOffset.DATAAREAID = VendInvoiceJour.dataAreaId and

VendTransOffset.Voucher = VendInvoiceJour.LedgerVoucher

innerjoin

VendInvoiceTrans

on VendInvoiceJour.dataAreaId = VendInvoiceTrans.dataAreaId and

VendInvoiceJour.InvoiceId = VendInvoiceTrans.InvoiceId and

VendInvoiceJour.PurchId = VendInvoiceTrans.PurchId and

VendInvoiceJour.InvoiceDate = VendInvoiceTrans.InvoiceDate and

VendInvoiceJour.numberSequenceGroup = VendInvoiceTrans.numberSequenceGroup and

VendInvoiceJour.internalInvoiceId = VendInvoiceTrans.internalInvoiceId

where LedgerJournalTrans.TransactionType = 15 and

LedgerJournalTrans.AccountType = 2 and

VendInvoiceJour.PurchId <>''

Management Reporter shows blank financial data values in the report.

$
0
0

Management reporter is not showing financial values in the report.

Has anyone experienced this issue?

here is the error log:

Object reference not set to an instance of an object.

--- Exception Dump ---

Caught Exception: [System.NullReferenceException] Object reference not set to an instance of an object.

Stack trace:

at Microsoft.Dynamics.Integration.Adapters.AX2012GL.GeneralLedgerTransactionObjectProvider.PopulateAccountCategoryDimension(SqlDataReader reader, Dictionary`2 dimensions, DimensionValues partitionAccountCategories, Company company)

at Microsoft.Dynamics.Integration.Adapters.AX2012GL.GeneralLedgerTransactionObjectProvider.GetDimensionValue(SqlDataReader reader, Dictionary`2 dimensions, DimensionValues accountCategories, Company company)

at Microsoft.Dynamics.Integration.Adapters.AX2012GL.ActualTransactionObjectProvider.<ReadObjectsSql>d__e.MoveNext()

at Microsoft.Dynamics.Integration.Adapters.AX2012GL.ActualTransactionObjectProvider.<ReadObjects>d__0.MoveNext()

at Microsoft.Dynamics.Integration.Adapters.AX2012GL.GeneralLedgerTransactionObjectProvider.<ReadObjects>d__8.MoveNext()

at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ProcessRecordsImplementation(OperationType operationType)

HI I am facing a problem on DMF in 2012 r3.How to migrate the transactions through the dmf.can any one help me on this .

$
0
0

HI I am facing a problem on DMF in 2012 r3.How to migrate the transactions through the dmf.can any one help me on this .

Forecast reduction based on customer AX2009

$
0
0

Hi all,

it seems that the reduction principle "Purchase/ Sales orders" is not reducing the correct forecast if we enter forecasts on a customer base. I'd expect that with this principle it should reduce the forecast from customer B if I enter a sales order for customer B in the spezific time fence (based on reduction keys). Instead of reducing forecast from customer B it just reduces the forecast from customer A (the first one I've entered) as long as there is enough quantity open.

Before start debuging I just would like to know if that is wrong standard behavior or wrong setup.

thx,
Wolfgang

Inventory account

$
0
0

Hi All,

In AX 2012 CU7 , we have budget control (validation) on Profiut & Loss accounts only.

My question is  can i validate the defined budgets for balance sheet accounts at the time of transaction posting.

My requirement is that, i need to have budgets over my Inventory receipt account and need to track that it is not getting exceeded at the time of Purchase request.

I am aware that budgetary control is available for purchase request/order,. but  here my question is whether that can be controlled through balance sheet  account.

On invoicing the purchase order, the entry that will posted will be the below

Inventory Receipt a/c Dr

Sundry creditors(payables) a/c Cr

So i need to have budget on my Inventory receipt account and have control over that.

It would be great if some one can provide answer on this or anywork around to control inventory account.

Thanks in advance.

 


WHS Work break by quantity

$
0
0

Hi everybody,


does sombody know if it's possible to break wave-generated work by quantity?

The only parameter i found limits the line-quantity not the work-quantity.

For example:

Today we break the work by zones (we like to keep it like that). Lets say there is work for 1000 items in zone A but the pickers trolley is limited to 100 pieces. Today the picker starts work and breaks it when the trolley is full. The WHS generates new work for the remaining 900 items, right? Then another worker can continue with the newly generated work and pick the next 100 items. What we want is to generate 10 work items à 100 pieces during wave processing so that 10 pickers can concurrently start picking.

Is that possible?

Greetings

Nils

Importing Contoso Data in AX 2012 R3

$
0
0

Hi all,

I was trying to import the Contoso Demo Data to Dynamics AX 2012 R3 with "Dynamics AX 2012 Test Data Transfer Tool (Beta)".

after I print the Command [DP.exe IMPORT “E:\DynamicsAXR3DemoData” MicrosoftDynamicsAx] the following error occurred:

Unhandled Exception: System.InvalidOperationException: ExecuteReader requires an
 open and available Connection. The connection's current state is closed.
   at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean as
ync)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
ior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletio
nSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
ior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, S
tring method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behav
ior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
   at Microsoft.Dynamics.AX.Dataport.Extensions.<ExecuteLater>d__10`1.MoveNext()
 in e:\bt\110700\Source\DataPort\Dataport\Library\Extensions.cs:line 230
   at Microsoft.Dynamics.AX.Dataport.SqlHelper.<GetAllDatabases>d__22.MoveNext()
 in e:\bt\110700\Source\DataPort\Dataport\Library\SqlHelper.cs:line 846
   at Microsoft.Dynamics.AX.Dataport.SqlHelper.<GetAllConnections>d__18.MoveNext
() in e:\bt\110700\Source\DataPort\Dataport\Library\SqlHelper.cs:line 800
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at Microsoft.Dynamics.AX.Dataport.DataportApplication..ctor(String server) in
 e:\bt\110700\Source\DataPort\Dataport\Model\DataportApplication.cs:line 38
   at DP.Program.Execute(String currentDirectory, DataportDirection direction, S
tring directory, String database, String server, DataportAction action) in e:\bt
\110700\Source\DataPort\DP\Program.cs:line 108
   at DP.Program.Main(String[] args) in e:\bt\110700\Source\DataPort\DP\Program.
cs:line 82


and the Data Transfer Tool stooped as it showen in the screen shoot

I used the tool in the AOS Server (windows Server 2012 r2)

anyone would help with this please?

thanks for your help,

AX 2012 R3 failed to create session, during synchronization of database

$
0
0

While trying to resynchronize the database for R3 with SQL server, we are receiving an error 

"Failed to create a session,  confirm that the user has proper privileges to log on to Microsoft Dynamics"

We checked all the privileges and all privileges look right. We have run the script as per the website http://gappet.blogspot.com/2013/12/ax2012-r2-failed-to-create-session.html, which did nothing. Appreciate any help on this.

How to change label of YesNo Box

$
0
0

I am going to create a yes no box " box::yesno " box is appearing. I need to change the label of the buttons. 

Yes label should be New and No Should be Replace. 

IP Address Network Adapter

$
0
0

 Hi,

I need settings of the network adapter (Address IP, DNS) for Dynamics AX 2012 R3 Demo VM.

Thank you

Audit Trail for item reserved and picked- 2009

$
0
0

Hi,

Is there a way that I can check and/or monitor which batches are being reserved and picked for any given items/sku  after it was processed.?

Thanks,

Can't deploy SSRS Report

$
0
0

Hi all..

I have new environment AX 2012 R2.

I want to deploy report.

I open Development workspace--> in AOT i select SSRS Reports--> Reports.

i try to deploy one Reports but show info Error.


"Unable to find appropriate service endpoint information in the configuration object"

Can you help me for solved this issue ?

Thanks all..


Importing XPO programmatically

$
0
0

Greetings!!

I've developed a new module and i'm having complete xpo with me.

I've a scenario that, i need to give my product as installable.

How can i make it as installable?. Is it possible to import xpo programmatically,say for eg, from .Net ?

Any advice on this??

Sales orders of customer

$
0
0

Hi to all!

I want to display all the sales orders of a customer from (AX 2012 R2):

Accounts receivable > Common > Customers > All customers > (select one customer) > tab Sell > Orders > Sales orders

but the list is empty! I've tried on others AX 2012 R2 systems, but with the same result!

Any ideas?

 

Thanks

Martina

Code upgrade Ax 4.0 to Ax 2012 R2 (SalesFormLetterInvoice)

$
0
0

Hi All,

In Ax 4.0 have a class SalesFormLetter_Invoice in this class have a method updateNow.

In update Now have some custom code after marked line ( this.postJournal() ).

I need to upgrade this code in Ax 2012 R2. So can any please tell me where i can put this code in Ax 2012 R2 in which class

which method ?

AX 2012 R2 CU7 Data Import Export Framework crashes

$
0
0

Hi,

We recently moved a development environment to another set of servers.

Since then we were experiencing crashes of the DIXF service installed on our SQL server.

The cause was simple, SQL 2012 SP2. So we uninstalled it and everything went smooth from then on.

But just today, we've created a new processing entity and whenever we try to get the data into staging, the service crashes again.

It is quite a big file (250 Mb docref transfer) but it's not the first of his kind.

Anybody has any idea's ? I've copied the eventlog content into this mail at the bottom.

Kind Regards,

Sven Peeters

Application: Microsoft.Dynamics.AX.DMF.SSISHelperService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 00000000709154D5

Faulting application name: Microsoft.Dynamics.AX.DMF.SSISHelperService.exe, version: 6.2.1000.4051, time stamp: 0x5272cc67
Faulting module name: DTSPipeline.dll, version: 2011.110.2100.60, time stamp: 0x4f35eaf6
Exception code: 0xc0000005
Fault offset: 0x00000000000254d5
Faulting process id: 0x112c
Faulting application start time: 0x01cfd0d784421e12
Faulting application path: C:\Program Files\Microsoft Dynamics AX\60\DataImportExportFramework\Microsoft.Dynamics.AX.DMF.SSISHelperService.exe
Faulting module path: C:\Program Files\Microsoft SQL Server\110\DTS\Binn\DTSPipeline.dll
Report Id: 377d68e8-3ccb-11e4-93fb-005056b53a2b
Faulting package full name:
Faulting package-relative application ID:

Security Access changes

$
0
0

Hi,

Is there a tool in AX 2009 that will give me a summary report of any changes in the user group security access ?

Thanks,

Viewing all 72043 articles
Browse latest View live


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