Monday, November 28, 2011

Error while firming the planned order: "Lot ID for the production not specified"

Hi,

Sometimes it is possible to facing the error "LotID for the production is not specified." while firming the planned orders from 'Master Planning > Planned orders details'.

Solution:
Please make sure the number sequence settings for the Production must be setup as "Automatically". The above error will come if it is selected as 'Manual'.

Hope this helps.

/Ashlesh

Thursday, November 24, 2011

Enterprise Portal: Failed to “Generate Proxies”

Hi,

While creating proxy class from AOT and after generating proxy for the same from Tools->Dev. Tools-> Web Dev. -> Proxy, using Generate Proxy form. It gives the errors "ClrObject static method invocation error."

To overcome this,
1. go to AOT->Classes->SysEPDeployment->createDevWebsiteProxyDir().
2. find and comment below line,

dir = epSharepointAdmin.GetAppCodeDirectoryFromSiteId(guid2str(epGlobalParam.DevelopmentSiteId));
3. replace it with (locate your virtual directory app_code folder)
dir = "C:\\Inetpub\\wwwroot\\wss\\VirtualDirectories\\sharepoint80\\App_Code"; 
4. Save the class file.

Now, again run the 'Generate Proxy' class. 
 
It works fine.

Thanks.
/Ashlesh

Tuesday, November 22, 2011

EP tools are not visible in VS 2008 toolbox


Hi,

Recently i faced a problem that i can able to install EP development tools successfully. I can also select the Mciforost Dynamics Web project template while creating new Website. 
But not able to find any of the item of AX EP toolbox in the VS 2008 toolbox. So, after finding net a lot i found the below solution.


1. Got to choose item by right clicking on the toolbox in VS 2008.
2. in the .Net Framework component tab, browse for C:\Program Files\Microsoft Dynamics AX\50\Client\Bin\Microsoft.Dynamics.Framework.Portal.dll file.
3. Select all the items starts with AX*, and clickes ok.
4. restart the VS 2008.

Thats all. Hope it helps to someone.


Regards,
/Ashlesh

Thursday, November 17, 2011

AX 2009 - Enterprise Portal Documentation

Hi all,
I have installed and configured the Enterprise Portal for AX 2009 at our end. I faced troubles couple of times to successfully configured the EP on Windows Server 2008 R2 (64 bit) with Sharepoint Server 3.0 during that time. I found the web and got some very helpful documents on some blogs. I am sharing those with you. Hope it will reduce your time to install and configure the EP on  AX2009.

You can find the EP docs from below link:
AX 2009 - EP Documents

Thanks & Regards,
/Ashlesh

Monday, October 3, 2011

X++ code to validate only numbers in string

Hi,

Following job that illustrates the use of regular expressions in AX 2009 for validating only numbers exists in the string.

static void TextBuffer_regularExpression(Args _args)
{

    TextBuffer txt = new TextBuffer();
    str msg = "98797897";
    ;

    txt.setText(msg);
    txt.regularExpressions(true);   // activate regular expr in search

     // Regular expression to validate only digits
     if (txt.find("^[0-9]+$"))
    {
        info("string contains only numbers");
    }

}

Regards,
/Ashlesh

Thursday, September 29, 2011

Set Prefix in Infolog message

Use below code to set the grouping prefix for the different kind of errors in a single infolog message. 
 
static void TestJob(Args _args)
{
    setPrefix("Main");
    info("Prefix\tInfo1");
    info("Prefix\tInfo2");
    info("Prefix2\tInfo3");
    info("Prefix\tInfo3");
}
 
Regards,
/Ashlesh 

Sunday, September 11, 2011

TFS error while startup AX 2009 clinent after installing VS 2010

If AX 2009 is configured with TFS 2008 and later you have installed VS 2010 on the same system, you will get the below error.

Could not load file or assembly 'Microsoft.TeamFoundation.VersionControl.Client, Version=9.0.0.0,Culture=neutral,PublicKeyToken = b03f5f7f11d50a3a' or one of its dependencies, The system cannot find the file specified.

Follow the steps to resolve this error:
1. Install VS 2008 Team Explorer.
2. Install VS 2008 SP1.
3. Install VS 2008 Team Explorer SP1.

This is because AX uses the 9.0.XXX version of TFS-Client assembly.

Regards,
/Ashlesh