Total Pageviews

Search This Blog

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.

Friday, January 20, 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

Thursday, January 12, 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