Total Pageviews

Search This Blog

Loading...

Saturday, January 28, 2012

Troubleshooting Batch Client error ClrObject static method invocation error System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation

Recently, we shifted our Dynamics AX 4.0 Batch Clients from a Server box to Windows 7 Client. After the move, all other batches were running successfully except this batch which has some custom code to do FTP transmission and then move the files to a different directory

Error:

The batch Client was showing this error “ClrObject static method invocation error” and the inner exception revealed the below detailed error

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: The process cannot access the file because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.File.Move(String sourceFileName, String destFileName)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Refle! ction.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at ClrBridgeImpl.InvokeClrStaticMethod(ClrBridgeImpl* , Char* pszClassName, Char* pszMethodName, Char* assemblyName, Int32 argsLength, ObjectWrapper** arguments, Boolean* isException)
 

Troubleshooting Steps:
Tried Restarting Batch Client box and AOS Service but without any luck.


Solution:
As the issue was with the FTP batch job and all other batches were working fine, we tried introducing sleep method with 10 secs of delay before the file move process kicked in. Still didn’t work, increased the delay interval for a further of 60 secs and now the batch started working again.

Wednesday, January 25, 2012

Microsoft Dynamics Salary Survey 2012

Nigel Frank is conducting it's annual Microsoft Dynamics salary survey for 2012 (Across the globe). Please read more about it...http://dynamicserphub.com/blog/?p=6

It's a quick survey which you can expect to complete in 5-10 mins time.

Thursday, January 19, 2012

Register for Free Webcast on Dynamics AX 2012 Model Driven Layered Architecture Overview

Register below by clicking the Link:

Microsoft Dynamics Webcast: Microsoft Dynamics AX 2012 Model Driven Layered Architecture Overview (Level 100)

EventID:1032501357

Starts:Wednesday, January 25, 2012 10:00 AM
Time zone: (GMT-08:00) Pacific Time (US & Canada)
Duration: 1 hour(s)
Language(s): English.
Product(s): Microsoft Dynamics Existing Customer Portal.
Audience(s): Non-Tech Influencing BDM.
During this webcast we will look at the Microsoft Dynamics AX 2012 Model Driven Architecture and explain how it will accelerate the application development process for our partners and customers by enabling them to build solutions more quickly and increasing their time to value. After attending this webcast you’ll have a better understanding how our Model Driven Architecture provides Microsoft Dynamics AX 2012 customers the ability to effectively manage the application lifecycle and decrease their total cost of ownership.

Presenter: Arijit Basu, Senior Solutions Architect, Microsoft Corporation

Wednesday, January 11, 2012

Download WhitePaper on Dynamics AX 2012 Data Upgrade Best Practices

Dear Readers,

Wish you all a Very Happy 2012 and hope you had a good break!

Microsoft has released a whitepaper on best practices during Data Upgrade - http://www.microsoft.com/download/en/details.aspx?id=28701&WT.mc_id=rss_alldownloads_all

The following topics are discussed in the whitepaper:

  • Analyzing customizations
  • Purging and archiving data with the Intelligent Data Management Framework
  • Analyzing space requirements for databases
  • Creating project plans for testing
  • Recommended upgrade process
  • Preparing the source database
  • Preparing the source AOS instance
  • Using the state transfer tool
  • Preparing the target database
  • Preparing the target AOS instance

Tuesday, December 27, 2011

Issue Installing Intelligent Data Management Framework

Correction:

Update from the MS Folks - The correct link to download IDMF Installation and Admin Doc is http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=16111


Sorry, I had a wrong install document which was bunded with Dynamics AX 2012 Upgrade Docs (in which the below AxSummationProject.xpo is mentioned. With the new installation doc, this step is no longer required.



Thought to share with you an issue which I'm facing while Installing IDMF (Intelligent Data Management Framework)

Last week I downloaded Intelligent Management Framework from the below link in CustomerSource

I followed the Installation manual which comes with the download. There's a section in it which mentions about "Manually Running the Post-installation tasks"

If you go to Step 7 in that Section, you will find instruction to import Summation Xpo.






But, the issue here is you won't be able to find the xpo's anywhere in the location mentioned above. I did a search for the xpo's in my entire hard drive with no luck. Later on, I tried to examine the msi contents by extracting the msi file which I posted here and to my surprise, the .msi package is the culprit as there's no AxSummationProject.xpo in the XPO folder.

Anybody else facing this issue while installing IDMF, please drop a line? I have reported this issue to Microsoft via "Give Feedback" link.

Meanwhile, I was lucky to have an old copy of IDMF setup which I downloaded last year :) and it has the AXSummationProject.xpo which is missing from the current one.

I will be soon write a blog post on how I went with the installation and setup of IDMF. Watch this space!