Quantcast
Channel: Forums - Recent Threads
Viewing all 143529 articles
Browse latest View live

Word Document Template - Sorting on related records table

$
0
0

Hello,

We have a requirement to display related entity records in word document in a tabular format and record rows should get sorted

based on one Date field.

But as I found records are displaying based on createdon field.

Is there any way to sort related records.


Bug in outomatic record creation?

$
0
0

Hi,

have a problem in "Automatic record creation".

I have a Query on "description" like "if description contains  'Low Warning' "  then create case.

But this runs in the following issue.

If the description contains more than 10 times "Low Warning", no record was created.
If the description contains 9 times "Low Warning", record will be created.

Regards

cancelling SO and intercompany PO

$
0
0

I have a scenario where I need to cancel sales order and related inter company purchase order  which are both in open state the problem is that  sales order gets cancelled but not the inter company PO after running my code.

SetIterator         setIterator;
    SalesLine           salesLineLocal,salesLineDel;
    NoyesId             updated;
    SalesId             salesId;
    InventQty           remainSalesPhysical = 0;
    InventQty           remainInventPhysical = 0;
    InventQty           pdsCWRemainInventPhysical = 0;
    MaximumString       errorMsg;
    SalesTable          salesTableDel;
    PurchTable          purchTable;
    setIterator = new SetIterator(_set);

    while (setIterator.more())
    {
        salesId = '';
        salesId = setIterator.value();

        try
        {
            ttsBegin;
            select count(RecId) from salesLineDel
                where salesLineDel.SalesId == salesId;

            if (salesLineDel.RecId >= 1)
            {
                while select forUpdate salesLineLocal
                    where salesLineLocal.SalesId == salesId
                    && salesLineLocal.SalesStatus == SalesStatus::Backorder
                {
                    salesLineLocal.RemainSalesPhysical  = 0;
                    salesLineLocal.RemainInventPhysical = 0;
                    updated = SalesUpdateRemain::updateDeliveryRemainder(salesLineLocal, remainSalesPhysical, remainInventPhysical, pdsCWRemainInventPhysical);
                }
                if (updated == 1)
                {
}
i found while debugging

\Classes\InterCompanyUpdateRemPhys_SalesLine\synchronizeInternal

newRemainInventPhysical = purchLine.RemainInventPhysical - diffInventPhysical;
newRemainPurchSalesPhysical = purchLine.RemainPurchPhysical - diffPurchSalesPhysical;

is not becoming zero because newRemainInventPhysical and newRemainPurchSalesPhysical is not zero because

diffInventPhysical and diffPurchSalesPhysical are zero.

how can we Optimized data from ms crm 365

$
0
0

Hello Every one ,

Question1- how can we Optimized data from ms crm 365

  

Question2- As i have i have two instance type Production and sandbox(for development).

and my total uses becomes more then 54% ..and we do not have much data in instance but still there is showing uses of 54% .

can please tell me what best we can do to optimized data and make free spaces ..

Question3-

this is production instance ..what this options all about.

Question4-

 


This is sandbox instance ..what this options all about.

Question5-  and also can i remove or delete everything from Sandbox and can we copy everything fresh from Production to sandbox

i mean replicate everything same from production to sandbox...

Question6and what an all possibility to clear unnecessarily data from the instance to make free spaces ..

please help my queries .

thanks

amit 

Email-amitamity81@gmail.com

Liquid template : get lookup value

$
0
0

Hi All,

I want to get the lookup value from the forloop, 1st condition is working but when i am checking minimum web role there is an error

{% for item in records %}		
			
{% if user.role_Keys contains 'partneradmin' and item.new_minimumwebrole contain 'partner admin'%}// i want to check  minimum web role (lookup field) is equal to 'Partner Admin'
 //logic
{% endif %}
{% endfor %}

any help would be appreciated.

Regards,

Shahbaaz

Dynamics 365 Online Web Api- Get Service Activities by Customer

$
0
0

Hi,

Can someone please help me

How to get list of Service Activities by Customer Id via Web API in CRM 365 online?

i can see Customer id is not in filter condition when i tried via CRM REST Builder

Thanks

Transfer order receive Error

How to group by with common table

$
0
0

How to group by a common table with a specific field?

I'm getting a syntax error on (dt.fieldname2Id('BatchNo'))

Here's my code:

Common          common;
SysDictTable    dt;

dt        =    SysDictTable::newName('Table1');
common    =    dt.makeRecord();

while select count(RecId) from common
    group by common.(dt.fieldname2Id('BatchNo'))//syntax Error here
    where common.(dt.fieldname2Id('flag'))==1
{ info(strFmt('%1',common.RecId));
}

Help with advanced find query

$
0
0

Hi,

 

I am trying to build a query using advanced find to view all meetings associated with one particular contact (so this particular contact has been set in the regarding field when the meeting was first created) where the 'required attendee' field contains specific contacts that I want to see, I need to be able to type the specific contacts names into the search criteria, which is where I am a bit stuck. So far I have the first part of the query which is related to the contact in the regarding field of the meeting:

In the 'look for' field I have selected 'meetings'

The query that follows is

1. Regarding Contact contains data

2. Full name equals 'ABC'

 I'm unsure of how to pull in the last section of the query that looks at the required attendees, as I said before the required attendees are also contact records.

 

Any help would be appreciated.

 

Thank you

Spaz

Cursor moving to next record when refreshing form

$
0
0

Hello Dax community, 

I am facing issue i never seen before, when i refresh my form the cursor move to the next record as if i was doing MyTable_DS.next(), to check this issue i have overriden task method on form and the cursor is moving after the super(Task_id) 

it's a very strange behavior, code for method task below:

public int task(int _taskId)
{
int ret;
PurchAgreementHeader test;
test = PurchAgreementHeader_ds.cursor() as PurchAgreementHeader;(there i have the currentRecord recId)
ret = super(_taskId);
test = PurchAgreementHeader_ds.cursor() as PurchAgreementHeader;(there i have the wrong record: next record)
return ret;
}

Thanks in advance for your help.

Mehdi SOUIHLI

Error on calling services from Resco Mobile

$
0
0

Hi Team, 

We have a service (.apk) installed on android mobile which is serving couple of features for our business needs.

HTML is configured to loaded on Iframe in Resco Mobile form and have the logic to trigger the above service from HTML by clicking the button on HTML.

 Below is the way how we call service in html : 

  <a id="continueButton" href="inapp://service">Start Android Native Service</a>

I am getting the below error when try to call the service.

Thanks & Regards,

Mamatha Raju Babu.

Independent Budgeting for subprojects checkbox

$
0
0

Hi

Why i can not uncheck the independent budgeting check box, in project management and accounting module? even budget have not been approved yet, but can not uncheck that checkbox, it is greyed out in edit mode.

Does any one knows the reason please? or it is a standard functionality? thanks

D365 Online -version 1710 (9.1.0.1847) Online: Unhandled exception

$
0
0

Hi,

We have two customers who have almost the same exception.

1. This exception comes when user is saving an order:

Unhandled exception: 
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Errors.ErrorInformation.LoadErrorDisplayText()
at Microsoft.Crm.Errors.ErrorInformation.get_DisplayTitle()
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.WrapException(Exception exception)
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.ReturnJsonException(Exception exception)
at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues)
at Microsoft.Crm.Core.Application.WebServices.InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8DA4CBDEDetail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>5965e6a7-71de-49f7-a329-bded2210cede</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)
at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)
at Microsoft.Crm.Errors.ErrorInformation.LoadErrorDisplayText()
at Microsoft.Crm.Errors.ErrorInformation.get_DisplayTitle()
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.WrapException(Exception exception)
at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.ReturnJsonException(Exception exception)
at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues)
at Microsoft.Crm.Core.Application.WebServices.InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8DA4CBDE</Message>
<Timestamp>2019-02-04T11:41:06.3359005Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

and this one when the user is opening an account form:

Unhandled exception:

Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]

Message: System.Xml.XmlException: System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)

   at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context) ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)

   at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)

   --- End of inner exception stack trace ---

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #31201AF5Detail:

<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">

  <ActivityId>4d8a8b98-939a-4237-88e2-09c992db31ca</ActivityId>

  <ErrorCode>-2147220970</ErrorCode>

  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />

  <Message>System.Xml.XmlException: System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)

   at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context) ---&gt; System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)

   at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)

   --- End of inner exception stack trace ---

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #31201AF5</Message>

  <Timestamp>2019-02-05T08:48:50.8308657Z</Timestamp>

  <ExceptionRetriable>false</ExceptionRetriable>

  <ExceptionSource i:nil="true" />

  <InnerFault>

    <ActivityId>4d8a8b98-939a-4237-88e2-09c992db31ca</ActivityId>

    <ErrorCode>-2147220970</ErrorCode>

    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />

    <Message>System.IndexOutOfRangeException: Index was outside the bounds of the array.

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.GetLocalizedEntityName(String errorMessage, Int32 objectTypeCode)

   at Microsoft.Crm.Application.Utility.RoleEditorLayoutMapper.FillPlaceholderFromLocalizedErrorMessage(String privilegeDeniedException, String localizedErrorMessage)

   at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.GetRefreshResponseHtml(IGridUIProvider uiProvider, StringBuilder sbTemp)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)

   at Microsoft.Crm.Core.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5F7748DE</Message>

    <Timestamp>2019-02-05T08:48:50.8308657Z</Timestamp>

    <ExceptionRetriable>false</ExceptionRetriable>

    <ExceptionSource i:nil="true" />

    <InnerFault i:nil="true" />

    <OriginalException i:nil="true" />

    <TraceText i:nil="true" />

  </InnerFault>

  <OriginalException i:nil="true" />

  <TraceText i:nil="true" />

</OrganizationServiceFault>

Both exceptions appeared this week.

Can someone help us, thank you :)

Error on creating a new Web Application in Dynamics 365

$
0
0

I am trying to register a new application by going to Dynamics 365 > Settings > Event settings > Web Applications but when i click add and fill in the values and click save i get the above error what might be the problem

Refresh database failed for UAT environment

$
0
0

Hi all

We have an actual issue with refreshing database between two UAT environments, let's say UAT1 and UAT2.

When we start refresh database: UAT1 -> UAT2, we get the following error:

Executing step: 11
GlobalUpdate script for service model: MRApplicationService on machine: ...
Updating the financial reporting database after data movement swap.
Cannot open Failover Group "... .database.windows.net" requested by the login. The login failed.

Bot the environments have the same application / Plattform versions.

Any ideas how to solve it? Thank's in advance!

When I log on the db I see the following


Message Code: AtLeastOneEventManagementConfigurationRecordShouldExist

$
0
0

Good day

Please adivse how i can resolve this issue.

When trying to create a web Application on the New Dynamics Marketing Module. On save, i receive the below error (Downloaded Log File)

How do i fix this issue:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute):  Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.WebApplicationPlugin: System.AggregateException: One or more errors occurred.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>cd3e4e36-2da1-48a2-8815-39c25a1253a2</ActivityId>
  <ErrorCode>-2147220956</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute):  Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.WebApplicationPlugin: System.AggregateException: One or more errors occurred.</Message>
  <Timestamp>2019-02-05T07:55:01.2350909Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText>

[Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin: Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.WebApplicationPlugin]
[33ae64db-98c8-e811-b812-00155d952b18: Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.WebApplicationPlugin: Create of msevtmgt_webapplication]

Begin: GetLocalizedMessage, messageCode: AtLeastOneEventManagementConfigurationRecordShouldExist
User language is: 1033
Begin: RetrieveJsonWebResourceByName, languageCode: 1033
Webresources returned from server. Count: 1
End: RetrieveJsonWebResourceByName , webresourcePath: msevtmgt_/Localizations/plugins1033
Begin: RetrieveLocalizedStringFromWebResource
Message value: Error: You must have at least one event management configuration record. The record can't be deleted.
End: GetLocalizedMessage, message: Error: You must have at least one event management configuration record. The record can't be deleted.
Exception while running ExecuteCore in plugin: System.AggregateException: One or more errors occurred. ---&gt; Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Error: You must have at least one event management configuration record. The record can't be deleted.
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureEntityRetrieved()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureConfigurationPopulated()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.Get(String configNamespace, String configName)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.BuildFullUriString(String organizationId, String[] parameters)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.&lt;RegisterWebApplication&gt;d__17.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Strategies.GenerateTokenStrategy.Execute()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.WebApplicationPlugin.ExecuteCore(ICrmServices crmServices, IWebApiRequest webRequest)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.EventManagementWebRequestBasePlugin.ExecuteCore(ICrmServices crmServices)
---&gt; (Inner Exception #0) Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Error: You must have at least one event management configuration record. The record can't be deleted.
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureEntityRetrieved()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureConfigurationPopulated()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.Get(String configNamespace, String configName)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.BuildFullUriString(String organizationId, String[] parameters)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.&lt;RegisterWebApplication&gt;d__17.MoveNext()&lt;---

Exception: System.AggregateException: One or more errors occurred. ---&gt; Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Error: You must have at least one event management configuration record. The record can't be deleted.
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureEntityRetrieved()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureConfigurationPopulated()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.Get(String configNamespace, String configName)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.BuildFullUriString(String organizationId, String[] parameters)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.&lt;RegisterWebApplication&gt;d__17.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Strategies.GenerateTokenStrategy.Execute()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.WebApplicationPlugin.ExecuteCore(ICrmServices crmServices, IWebApiRequest webRequest)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.EventManagementWebRequestBasePlugin.ExecuteCore(ICrmServices crmServices)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Plugins.EventManagementBasePlugin.Execute(IServiceProvider serviceProvider)
---&gt; (Inner Exception #0) Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Error: You must have at least one event management configuration record. The record can't be deleted.
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureEntityRetrieved()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.EnsureConfigurationPopulated()
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Common.Services.SolutionConfiguration.Get(String configNamespace, String configName)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.BuildFullUriString(String organizationId, String[] parameters)
   at Microsoft.Dynamics.EventManagement.CrmPlugins.EventMgmtPlugin.Services.EventManagementCrmApiClient.&lt;RegisterWebApplication&gt;d__17.MoveNext()&lt;---



</TraceText>
</OrganizationServiceFault>

Any info on this will be highly appreciated

How to get cgst, sgst, igst ledgerjournaltable and ledgerjournaltrans in D365FO

$
0
0

Hi Friends,

How to get CGST SGST IGST from ledgerjournaltable and ledgerjournaltrans In D356FO.

In sales order we can get using following code.

 SalesTable =   SalesTable::findRecId(SalesTable::findRecId(SalesTable.RecId).RecId);
      

        bundler = TaxableDocumentDescriptorFactory::getTaxableDocumentDescriptor(SalesTable);
        taxableDocumentObject = TaxableDocumentObject::constructServer(bundler);
        taxDocument = TaxBusinessService::getTaxDocumentBySource(SalesTable.TableId, SalesTable.RecId);

        if (taxDocument)
        {
            lineEnumerator = taxDocument.lines();

            taxDocumentLine = null;

           
            SalesLineLoc  = SalesLine::findRecId(SalesLine.RecId);

            while (lineEnumerator.moveNext())
            {
                taxDocumentLine = lineEnumerator.current();

                if (taxDocumentLine)
                {
                    taxDocumentComponentLineEnumerator = taxDocumentLine.componentLines(#TaxType);

                    if (taxDocumentLine.originSourceRecId() == SalesLineLoc.RecId && taxDocumentLine.originSourceTableId() == tableNum(SalesLine))
                    {
                        while (taxDocumentComponentLineEnumerator.moveNext())
                        {
                            taxDocumentComponentLine = taxDocumentComponentLineEnumerator.current();

                            switch(taxDocumentComponentLine.metaData().taxComponent())
                            {
                                case #SGST:
                                    ABC_SalesTaxInvoiceTmp.SGSTRate   = taxDocumentComponentLine.getMeasure(#TaxRate).value().value();
                                    ABC_SalesTaxInvoiceTmp.SGSTAmount    = taxDocumentComponentLine.getMeasure(#TaxAmount).value().value();
                                    break;
                                case #IGST:
                                   
                                    ABC_SalesTaxInvoiceTmp.IGSTRate   = taxDocumentComponentLine.getMeasure(#TaxRate).value().value();
                                    ABC_SalesTaxInvoiceTmp.IGSTAmount    = taxDocumentComponentLine.getMeasure(#TaxAmount).value().value();
                                    
                                    break;
                                case #CGST:
                                    ABC_SalesTaxInvoiceTmp.CGSTRate   = taxDocumentComponentLine.getMeasure(#TaxRate).value().value();
                                    ABC_SalesTaxInvoiceTmp.CGSTAmount   = taxDocumentComponentLine.getMeasure(#TaxAmount).value().value();
                                    break;
                            }
                        }
                    }
                }
            }
        }


but from ledgerjournaltable and ledgerjournaltrans table we are not able to get.

Please help us.

Thanks & Regards

Rahul

How to identify the macros in AX2009

$
0
0

Hi All,

How to identify which macro is largest volume of contents in AX 2009. Please anyone suggest.

Thanks.

Closing the Year - cannot see menu items (MS NAV 2017)

$
0
0

Hi Guys,

This seems like a really really stupid question but i am trying to close of the financial year however cannot see the option.

Using MS NAV 2017

When i go into Periodic Activities > Fiscal Year >

Here i should see Accounting Periods. However i do not have that option.

I only have Calender Setup & Close Income Statement.

Can anyone help please.

Thanks

consolidate loadlines for same itemID

$
0
0

Scenario:

we have 2 sales orders for the same customer / same delivery address

both sales orders have a line with the same itemID.

SO 001   5x item X

SO 002   10x item X

Using Advanced Warehouse management i am able to combine these 2 sales orders in one shipment and one work to pick the sales lines.

But I need an additional level of consolidation....

I also want to consolidate the shipment (load) lines with the same itemID.

So instead of one work with two picking lines (1 line to pick 5x item X and 1 line to pick 10x item X) i want to have one work with only one picking line to pick the total qty of 15 x item X.

Any thoughts ?

Viewing all 143529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>