Skip to main content

Posts

Showing posts from 2014

Parameter _reportName cannot be null or empty.

Recently came over a problem with running SSRS reports from AX 2012 (R2).  This Infolog error message was presented immediately when trying to run a report: Parameter _reportName cannot be null or empty.   The [ CLASSNAME ].[METHODNAME]() reflection API could not create and return the SrsReportNameAttribute object.   In this specific case it looks like an earlier full compile did not finish.   If you encounter this problem I would suggest that you first compile the class mentioned in the error message and see if this solves the problem. Then you should schedule for a new full compile of the application.

AX 2012 Report Error

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:queryBuilderArgs . The InnerException message was 'Element 'http://tempuri.org/:queryBuilderArgs' contains data from a type that maps to the name 'http://schemas.datacontract.org/2004/07/XppClasses:SrsReportProviderQueryBuilderArgs'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'SrsReportProviderQueryBuilderArgs' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.'.  Please see InnerException for more details. Solution Check the Temp files in you AOS server locations and try by deleting them. C:\Users\AOSAccount\AppData\Local, Delete the all the AUC and KTI files. C:\Users\venkatesh.vk\AppData

validateWrite() in Dynamics AX 2012

public boolean validateWrite() {     boolean ret=true;     HCMJob                  _HCMJob;     HcmPositionDetail       _HcmPositionDetail;     int                     _diff;     ;         select * from _HCMJob where _HCMJob.RecId == HRMRecruitingTable.Job;     select   count(recId) from _HcmPositionDetail   where _HcmPositionDetail.Job == HRMRecruitingTable.Job;     _diff = _HCMJob.MaximumPositions-_HcmPositionDetail.RecId;        if (HRMRecruitingTable.qty>_diff)     {         ret = false;     }   if (ret)     {         ret = super();     }     else     {     if (HRMRecruitingTable.qty>_diff)        {             info("You cannot Add Any Opening");        }        else        {             info("You Cannot Add more than " + int2str( _diff )+ " Opening");        }     }     return ret; }

Add Month in Date on the behalf of other Date Field

public boolean modified() {     boolean ret;     utcDateTime _CloseDate;     utcDateTime _OpenDate;     Date _FinalDate;     ret = super();             _OpenDate = DateTimeUtil::newDateTime(HRMRecruitingTable.startDate, 0, DateTimeUtil::getCompanyTimeZone());     _CloseDate = DateTimeUtil::addMonths(_OpenDate, 3);     _FinalDate = DateTimeUtil::date(DateTimeUtil::applyTimeZoneOffset(_CloseDate, DateTimeUtil::getUserPreferredTimeZone()));       HRMRecruitingTable.endDate = _FinalDate;             return ret; }

Container and unbounded string (text) fields are not allowed in a WHERE expression in AX

Reason : Axapta does not allow you to use an unbounded string in a where clause Solution : You must use a ‘bounded’ string. To do this you must declare your string with a numerical limiter e.g. str 50. Example: PurchTable getFirstByCustomerPOId(str 50 customerPOId) { PurchTable purchTable; ; purchTable.selectForUpdate(true); select firstonly purchTable where purchTable.My_CustomerPurchaseOrderId == customerPOId; return purchTable; }

CRM 2013 Outlook not responding in Mail Merge

HI All In this article I will update you  the Dynamics CRM 2013 SP1 I am facing issue in Mail Merge . -In Dynamics CRM 2013 RTM Mail Merge send Email successfully but Activity windows stuck getting this error. Microsoft.Crm.Application.Outlook.WebFormsHost.exe has stopped working. -In Dynamics CRM 2013 Rollup 1 and Rollup2  .Mail Merge Button is not perform any function after click. Solution: After installing Dynamics CRM 2013 Sp1 Mail Merge for Outlook is working fine.

CRM 2011 – C# Data types

CRM2011  Visual Studio 2010 Asign Command EntityReference Entity["Field"] = new EntityReference(“Entity Related”, Data Type Guid(“Related Entity ID”)) Client Entity["Field"] = new EntityReference(“Entity Related(account/contact)”, Data Type Guid(“Related Entity ID”)) OptionSet Entity["Field"] = new OptionSetValue(Data Type Int) Currency Entity["Field"] = new Money(Data Type Decimal) 2 options Entity["Field"] = Data Type Bool DateTime Entity["Field"] = Data Type Datetime o Datetime.ToString(“format”) Line of text Entity["Field"] = Data Type String Decimal Number Entity["Field"] = Data Type Decimal Integer Number Entity["Field"] = Data Type Int Double Entity["Field"] = Data Type Double Owner Entity["Field"] = new EntityReference(“Related Enti

The Report Server Cannot Access The Private Key For The Service Account

The Report Server Cannot Access The Private Key For The Service Account Error The report server cannot access the private key for the service account. This key is used to decrypt the symmetric key that protects content in the report server database. This condition might occur after the password is reset for the report server service account. You must either restore a backup key or delete all encrypted content. (rsKeyStateNotValid) Solutions Open Report Services Configuration Connection Connect Server Click on  "Encryption Keys" right side  "delete Encrypted Content"  delete Apply

Failed while monitoring asynchronous operations queue

Host SERVERNAME: failed while monitoring asynchronous operations queue. Exception: System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: http://social.msdn.microsoft.com/Forums/en-US/7121ba60-b58e-42ba-878b-733d11d68e05/dynamics-4-asynchronous-service-will-not-start?forum=crm

Workflow paused due to error: Unhandled Exception: System.Reflection.TargetInvocationException

Workflow paused due to error: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.  at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)  at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)  at System.Activator.CreateInstance(Type type, Boolean nonPublic)  at System.Workflow.Runtime.Hosting.DefaultWorkflowLoaderService.CreateInstance(Type workflowType)  at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime)  at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime)  at System.Workflow.Run

Change App Name and Logo Windows Phone 8

if anybody required to change the APP NAME and Logo which is display in Windows Phone 8. Steps are 1- Double Click WMAppMainfest.xml  in IMAGE 1 2-Another page will be open where you can Change App Name and App Logo in IMAGE 2 Image 1    Image 2

Retrieve Entity and EntityCollection From CRM 2011 Plugin C#

For EntityCollection    private EntityCollection RetrieveEntityByAttribute(ref IOrganizationService service, string _Entity, string[] _ColumnSet, string[] _AttributeRange, object[] _AttributeValue)         {             EntityCollection mcs_QueueItemComplaint = null;             ColumnSet Indexcol = new ColumnSet(_ColumnSet);             QueryByAttribute indexattribute = new QueryByAttribute();             indexattribute.EntityName = _Entity;             indexattribute.Attributes.AddRange(_AttributeRange);             indexattribute.Values.AddRange(_AttributeValue);             indexattribute.ColumnSet = Indexcol;             RetrieveMultipleRequest req_index = new RetrieveMultipleRequest();             req_index.Query = indexattribute;             RetrieveMultipleResponse resp_index = (RetrieveMultipleResponse)service.Execute(req_index);             if (resp_index != null)             {                 mcs_QueueItemComplaint = resp_index.EntityCollection;            

Passing Query string between pages in Windows Phone 8 C#

 Using the query string You can pass parameters through the query string, using this method means have to convert your data to strings and url encode them. You should only use this to pass simple data. NavigationService . Navigate ( new Uri ( "/Pasge2.xaml?parameter=value" , Urikind . Relative )); Pick it up on the target page using NavigationContext.QueryString : protected override void OnNavigatedTo(NavigationEventArgs e) {     if (NavigationContext.QueryString.ContainsKey("key"))     {          string val = NavigationContext.QueryString["key"];     } }