Wednesday, December 9, 2015

"Reporting framework error: Dynamic packed query not found"

When we run the report the error "Reporting framework error: Dynamic packed query not found." thrown.

Sol: Make sure the Business connector pointing to right AOS will fix this error.

Monday, December 7, 2015

"Parameter _reportName cannot be null or empty."

When any report opened in ax 2012 the below error message thrown.

"Parameter _reportName cannot be null or empty."
"The AssetBasisRdlContract.getAttributes() reflection API could not create and return the SrsReportNameAttribute object. Please check the parameters."


Solution: Compile the Application.

Tuesday, August 11, 2015

Navigate to a page in Ax 2012 Modern POS by using JS and Blank Operation

Follow the below steps to navigate to a page in AX 2012 Modern POS by using JS and Blank operation.
1. Create a Button grid and add a Button to it.
2. Select the button properties and set the operation as Blank operation and 
        Operation number as XXX. If required parameters also can be given. 
        Run the Distribution Schedule "Registers"(1090).
3. Open POS Client >windows> C1>POS solution in visual studio.
4. Open the POS.Js file and find for the Blank operation Case and add 
        the below code to navigate to Categories view.
                        
                        var parameters= actionProperty.split(";");
                         
                        if (parameters[0] == "XXX")
                            Commerce.ViewModelAdapter.navigate("CategoriesView");
                        return true;

5. Now create a package and install / execute the solution from Visual studio.
6. Click on the button created in 1st step it will redirect to Categories View page

Wednesday, August 5, 2015

AX 2012 Workflow Batch Job "Failed to find workflow" error

AX 2012 workflow batch job fails with the error "Failed to find workflow" message.

To resolve the error find the Record which is in queue and causing the issue and update MessageLifeCycleState to 2.

The below code will give you the record which is causing the error.
SYSWORKFLOWMESSAGETABLE SYSWORKFLOWMESSAGETABLE;
SYSWORKFLOWTABLE SYSWORKFLOWTABLE;

while Select RECID from SYSWORKFLOWMESSAGETABLE 
    Where SYSWORKFLOWMESSAGETABLE.MESSAGELIFECYCLESTATE == 1  && SYSWORKFLOWMESSAGETABLE.ROOTCORRELATIONID
notexists join SYSWORKFLOWTABLE 
    where SYSWORKFLOWMESSAGETABLE.RootCorrelationId == SYSWORKFLOWTABLE.RootCorrelationId
    {
        info(strFmt("%1",SYSWORKFLOWMESSAGETABLE.RecId));

    }


Wednesday, July 8, 2015

DIXF shared directory access validation error "Access is denied for the user"

While validating the service account access to DIXF shared working directory the error "Access is denied for the user" will be shown.

Solution:
1. Check the security of the file folder
2. Add the AOS Service account to the local DIXF Group,
3. Restart AOS, the validation of DIXF-Parameters will work fine.

Monday, March 9, 2015

"Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics"- error while import .xpo in ax 2012

The below error will come when you try to import and compare the objects from .XPO.

"Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics"

Solution: Full CIL will resolves the error.

If full CIL does not solves the issue then follow the below steps.

1. Stop the AOS. 
2. Delete the *.pdb and *.netmodule files
3. Start AOS and do full CIL.

Friday, January 23, 2015

"The given key was not present in the dictionary" Error while loading EP page

While loading the EP page the below error will be shown.

An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs.

The given key was not present in the dictionary.

mscorlib

   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
   at Microsoft.Dynamics.Framework.Collections.NameIdReferenceCollection`1.GetByName(String name)
   at Microsoft.Dynamics.AX.Framework.Portal.Data.DataSetView.AddFieldToSelectionList(DataSourceDataFieldMetadata displayedField, String referenceFieldGroupName, Boolean skipResolvingTheField)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.ControlsCommonFunctionality.GetAndEnsureDataKeys(DataSetView dataSetView)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxForm.EnsureAllBoundFields()
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxForm.OnPagePreLoad(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.Page.OnPreLoad(EventArgs e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The root cause for this issue is missing Super() method in DataSet.init() method.