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

RE: AX2012 - Calling product configuration from a batch job throws an error

$
0
0

Hi Ronnie,

This post is pretty old but I'm currently trying to call ProductConfigurator from within a batch job.  I'm facing the face issue within CIL execution when entering subscribeToEvents method.  It looks like error "Object reference not set to an instance of an objec" is caused by this part :

new ManagedEventHandler(this, methodStr(PCRuntimeConfigurator, calculationSummaryEventHandler))

Looks like ManagedEventHandler class cannot be used within CIL.  I'm just curious to know if you did find a work-around for this problem ?

Regards,


AX2012 - Calling product configuration from a batch job throws an error

$
0
0

Hi AX gurus!

I am trying to create a product configured order, and the code works fine when I run it manually, but when I run it through a batch it throws an error.

It seems like its trying to cast a Super(PCAdaptorComponent) class to a Sub (PCAdaptorRootComponent) class.

Heres the error.

: Unable to cast object of type 'Dynamics.Ax.Application.PCAdaptorComponent' to type 'Dynamics.Ax.Application.PCAdaptorRootComponent'.

  at Dynamics.Ax.Application.PCXmlParseComponent.Parse(PCClass _component, XmlReader _xmlReader, PCComponentInstanceValue _componentInstanceValue, String _expectedName, PCAdaptorRootComponent _adaptorComponent) in PCXmlParseComponent.parse.xpp:line 131

  at Dynamics.Ax.Application.PCXmlParseProductConfigurationModel.Parse(PCProductConfigurationModel _productConfigurationModel, PCProductConfiguration _configuration, String _xmlContainer, PCAdaptorProductConfigurationModel _adaptorProductConfigurationModel) in PCXmlParseProductConfigurationModel.parse.xpp:line 60

  at Dynamics.Ax.Application.PCXmlParseConfigurationInstance.Parse(PCProductConfigurationModel _model, PCProductConfiguration _productConfiguration, String _userSelectedValues, String _boundValues, PCRuntimeMode _runtimeMode, PCAdaptor _adaptor) in PCXmlParseConfigurationInstance.parse.xpp:line 43

  at Dynamics.Ax.Application.PCExecuteVariantConfiguration.Runbackendconfiguration(Boolean _wdxAutoCalcPrice, Boolean ) in PCExecuteVariantConfiguration.runBackEndConfiguration.xpp:line 23

  at Dynamics.Ax.Application.PCExecuteVariantConfiguration.Saveconfiguration() in PCExecuteVariantConfiguration.saveConfiguration.xpp:line 7

  at Dynamics.Ax.Application.WdxWebOrder.Create(Int32 salesQty, String userSelectedXml, String boundValueResXML) in WdxWebOrder.Create.xpp:line 96

  at Dynamics.Ax.Application.WdxWebOrder.Import() in WdxWebOrder.Import.xpp:line 38

  at Dynamics.Ax.Application.WDXTestRunbaseBatch.Run() in WDXTestRunbaseBatch.run.xpp:line 7

  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)

RE: Acquiring old Fixed Assets

$
0
0

Hi Daniel,

Do you want to depreciate the assets for three months in the month July? If the start date is May, it will catch up for three months, but probably will suggest a posting date for May and June as well. If there are not that much assets involved, it would be possible to change the posting date to July. It will then not affect closed periods.

I would suggest to test it in a separate environment first.

RE: Acquiring old Fixed Assets

$
0
0

Thanks Andre -

What i'd ideally like to do, is have a posting date of 7/31 and have it post june and july's depreciation expense in July (since the asset was to go into use on 5/31, there is no depreciation at 5/31).  how would i let the system know that even though the posting date is july, i want it to catch up for 2 months depreciation?

Thanks you,

dp

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

$
0
0

Hi Arpan,

This is correct. Each partition has its own user list. This to be able to have different users, but also different accounts for the admin.

Also the employees are different, however your example shows the same IDs. Note that the AOS is firmly adding the partition as fixed part of the query plan, so employee E001 from the first partition cannot be used in the second.

E001 could be "Arpan" in the Initial partition where the same ID in the Test partition can be "André".

RE: Acquiring old Fixed Assets

$
0
0

Hi Daniel,

I do now understand the two months. You can indeed run the depreciation proposal in one journal until the end of July. It will catch up the depreciation from June if the start date of the depreciation is May 31 or a date in June.

Like mentioned, you probably have to adjust the June transaction dates to July, but then can post it. It should deduct two periods from the remaining periods for depreciation per asset involved.

RE: Not allowing to delete a customer newly created with no transactions for the customer.

$
0
0

There is some new information in your reply. It seems like you hit the debugger. Can you explain what you were doing exactly using the debugger or just the AX client?

Not allowing to delete a customer newly created with no transactions for the customer.

$
0
0

The error is occured when a customer is deleted from ax and not deleting in ax.

The unknown error occured while accesing an unnamed file


How to Correct / Modify Product Receipt

$
0
0

Hi Friends,

While modifying the Product Receipt Quantity means Click on the Correct button in product receipt button some time system is allowing the to post the modification but some times system is throwing different errors as below, please suggest.

Error Message 1. ''Transaction date must be specified'' 

Error Message 2. The state of the source document or source document line could not be updated.

Error Message 3. Exception has been thrown by the target of an invocation.

Like above different Error Messages are throwing by system please suggest on the same.

Regards,

Ramanadham.

Workflow pedidos de compra

$
0
0

Al editar un pedido de compra que tiene ativado el flujo de trabajo emite el sigt. mensaje al volver a enviar por el workfows.

where to setup the elimination transactions balance account?

$
0
0

Dear 

In the elimination rules, there is a place where you setup an account for the difference of elimination transactions? my elimination transactions need an account to balance 

where do i set it up ?

regards  

RE: TTS LEVEL ISSUE

$
0
0

Hi,

When we also faced the same issue and couldn't be able to reset with the abort job, executed the following job and able to resolve the issue. You also please give a try.

static void ttslevel(Args _args)
{
    ttsBegin;
    ttsCommit;
}


TTS LEVEL ISSUE

$
0
0

Hi Everyone,

I have Error: An Unbalanced X++ TTSBEGIN/TTSCOMMIT pair has been detected... TTS level : 2
When running inventory calculation from Inventory >> Periodic >> Closing and Adjusting
i have do some reseraches and i have found the following job to reset the ttslevel;
static void TheAxaptaResetTTS(Args _args)
{
while (appl.ttsLevel() > 0)
{
info(strfmt("Level %1 aborted",appl.ttsLevel()));
ttsAbort;
}
}

but this doesn't resolve my problem
because each time that i try to run "calculate" i get the same error message "TTS LEVEL 2", i have tried to check code related to the calculate function but i didn't found any unbalanced TTSBEGIN/TTSCOMMIT
Any suggestion please?

Thanks.

RE: Help toubleshooting intermittent print/email failures during invoice processing... Ax 2012 R2 CU6

$
0
0

Hi

@smilner1971 - We are facing a similar problem on our side. Did you find a solution to the problem ?

Help toubleshooting intermittent print/email failures during invoice processing... Ax 2012 R2 CU6

$
0
0

Hello!

I'm hoping to find some assistance diagnosing a problem where our AR specialist is seeing intermittent print failures during invoice processing.

We are using AX 2012 R2 CU6.  The AX clients are installed locally on workstations.  Our invoice process is run manually (not via batch processing).

Our invoice process posts the sales order invoices and utilizes print management to either print a copy for mailing or to send a copy via email (per the customer setup) via the local computer's Outlook 2013.  Our AR person has issues every day with a random percentage of the invoices failing to both print and send (today 6 out of 64 invoices processed failed).  

There doesn't seem to be any pattern to which invoices fail.  I every case, we get the invoices to print/send by determining which invoices failed to print and then reprocessing the associated sales order... we don't make any changes to the account or to the invoice.  

The common thread seems to be that in every failure, both the print and email functions are not done for that particular invoice (we never seem to have an invoice that doesn't print but does email, or vice-versa).  AX doesn't inform the user that the print jobs fail--she only finds out when she goes to file the invoices with the sales orders and finds she is missing copies.

I've searched the event logs on the client workstation, the print server, and the AOS, but no messages are being logged that point to the issue.  This morning I set up a new print server and updated printer object for her to print to, but the problem remained the same.

I've tried clearing all usage data for the AR specialist, but that didn't help with the issue, either.

There has been no customizations done to either invoicing or to the print management, with the exception of some customization of the actual printed invoice (adding our logo and such).


Can anyone offer a suggestion for further problem determination?  One suggestion that I've heard is move to batch processing and thereby be able to obtain some AOS logging of the process, but I'm told that we tried that a few years ago and abandoned it in favor of manual processing of the invoices.  I'm not certain why.

I'm at a dead-end here... I'd appreciate any thoughts anyone might have.


Thanks,

Scott


Transfer Order Registration

$
0
0

Hi

One of our warehouse workers needs the ability to register shipped transfer orders but at the moment they cannot

select the 'Auto-create' tick box under registration (it does not allow them to 'tick' it). I do not want to assign them another role so would like to modify their existing role so they can do this. Which security privileges need to be added to achieve this?

  

RE: Acquiring old Fixed Assets

$
0
0

Thanks Andre -

How do i alter the start date of my depreciation if the asset was acquired on 7/31?

Thank you very much,

dp

RE: Email Template placeholders

RE: Acquiring old Fixed Assets

$
0
0

Hi Daniel,

In the asset value model (book), you can set the depreciation start date.

RE: Acquiring old Fixed Assets

$
0
0

Got it -

So by doing this, when depreciation is run at 7/31, the assets in question will 'catch up' on depreciation that should have been booked in previous months?

sorry for all of the questions and thank you!

Viewing all 175888 articles
Browse latest View live


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