Tuesday, 24 January 2017

Enable or Disable Secuirty Policies in ax 2012 R2

Enable or Disable Secuirty Policies in ax 2012 R2

For my issues Security policies is working fine for all forms but particular transfer order form no need to work.

When i am getting the error while transfer items from one warehouse to another warehouse getting error.

I find the issues is InventSite table --> exist method.

So, i added below code for that.

static public boolean exist(InventSiteId  _inventSiteId)
{
    InventSite  inventSite;
    #define.InvalidContext('DisplayBrachData')
    boolean isFound;
    XDSServices xds = new XDSServices();
    // Disable the address book XDS by passing an invalid context string
    xds.setXDSState(0);
     select RecId from inventSite
                                 index SiteIdx
                                 where inventSite.SiteId == _inventSiteId;//.RecId != 0;
    isFound = _inventSiteId && (inventSite.RecId != 0);
    xds.setXDSState(1);
    return isFound;
}

Friday, 6 January 2017

Exception occurred on the metadata service on client or server in ax


Exception occurred on the metadata service on client or server in ax 

I am working on SSRS Reports getting a error while selecting a query.

For this error you have to refresh WCF Configuration file.

Go to :

Control Panel --> All Control Panel Items ---> Administrative Tools --> Open Ax 2012 configuration 

Click on the Refresh Configuration button. As shown below.

Note: For original Configuration file it is disable. For that you have to create a new configuration with same Server, TCP/IP and WSDL Port.


Close the visual studio and re-open it.