Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

Architecture diagram debug

$
0
0

Hello, 

please help me to breakdown this diagram (explanation), point wise


Where is 'Go to Main Table' in Dynamics 365 FO?

$
0
0

Hi there,

Those who worked on Dynamics AX 2009 and 2012 are familiar with the Right Click > Go to main table which was a time saving shortcut to, for example, to update an item in its master table and return back to continue the transaction, and this was available for almost all tables.

Is there a similar thing for Dynamics 365FO? 

all I can see is Right click>View Details, which will pop up a window on the side displaying the Item's general info. I will have to browse to the Products modules and go to the released products table to update the item. This is a time consuming activity specially that the Dynamics 365 seems to not accept an "Open in new window" option or "Open another instance" where you can keep 2 forms Open and work in parallel.

I hope I am wrong, Can anyone tell me that I am wrong please.?

Thanks

Data entity created in one cloud hosted environment does not reflect in other

$
0
0

Hi Folks,

We have multiple cloud hosted environments for development which are periodically synced by means of doing objects checking-in and doing get lated by source control in other machines. After doing this I see all the objects as expected but when I try to access the entity in CDS for Integrating with Dynamics 365 sales by selecting the machine where entity was NOT created it does not reflect.

But please note I can see the entity if I select the environment where I created the entity but not able to see if I select other environment. Am I missing any steps which I need to do in other environment where entity was not created ?

Adding field to an Existing form

$
0
0

Hello All,

I want to add Product Name field in InventTransItem form. I have added EcoResProductTranslation in data source of that form and added the Product Name field in Grid of the form.

The problem is that my form is displaying data but its random data. I want to manipulate data on the basis of Item Number (the data should be fetched according to Item Number column). As shown in the screenshot.

I know about display method but I dont know how to use it as I am new to X++.

Can anyone help me in this regard.

Any help would be appreciated.

Thanks.

The "select all" of checkbox in grid does not select records that are not yet loaded in the form, how to be able to select all records?

$
0
0

Hi,

When I try to select all records in the grid for a custom form, it only selects records that are currently loaded and not the total number of records in the grid.

For example, I select all the records loaded, when I scroll up / down to load the other records, those other records are not selected.

The custom form has a pattern of "Simple List". But since it is a custom form, are there any setup or properties I need to adjust for the form / grid to be able to fix this issue? Or if not, are there a code I can add to achieve this?

Thank you!

error generating the XML document

$
0
0

Hi ,

There is a piece of code which is not able to generate xml document below:

private void methodxyz (RetailEodTransactionAggregationHeader _aggregationHeader, CustomerOrderInfo _custOrderInfo)
{
   if (_custOrderInfo)
  {
     str custOrderInfoXml = _custOrderInfo.ToXml();

  }

The error says :There was an error generating the XML document  as shown in the screenshot above.

Can someone help on how to resolve this.

Thanks!

Oracle EBS to D365 Migration

$
0
0

Hi Everyone,

We are planning to migrate from Oracle EBS to Microsoft Dynamics 365 and I would need your support to know the migration of data process.  I would like to know whether Microsoft has come up with default tools which enable in a smooth transition from Oracle to D365.   If Microsoft has default tools, is it worth to use those tools or is it recommend to opt for other options. 

Regards,

Uday

Data Entities Container fields

$
0
0

I have a need of using unmapped fields on a data entity of type container. I know that there are 2 ways in using unmapped fields, either by setting the isComputed property to yes, or no.

I have created a new unmapped container field on the FMCustomer extension entity for testing. In the post load method, I am setting a value for this container, as below:

    public void postLoad()
    {
        super();
        this.Age = this.calculateAge();  //integer
        this.PaymentInformation = ["test1", "test2"];  //container
    }

As you can see, there is another unmapped field of type int, which is being calculated and loaded correctly. However, the container is either loaded as null, or a system null exception is thrown.

Any ideas on how to solve this? I know that this is a new addition, possibly on update 2, and maybe it has not been implemented fully yet.

Thanks,

MAtthew


Document routing is only use for print Label printing?

$
0
0

Hi All,

I searched in Google reg Document Routing. It's only use for print 'Label printing ?

Please let me know in detail. I never before work with Document routing.

Please give me more shed on this.

Thanks!

Building class took 80 minutes

$
0
0

 

Hi I got  new VM and just added a class salesformletter_invoice  in my project and  complied the project  then it  got stuck in building project for 4657454 m  = 80 minutes (approx)

 

Do I need to do some compilation  and synchronize  to make it fast in visual studio?

its local D365 VM  and I have installed VM in my local laptop which has 16 GB RAM  and I have allocated 10000 MB for MY VM.

 

Thanks,

Rohit

Cross-company query where the link exists across companies

$
0
0

Hi all

Running AX 2012 R3 CU9.

Have a query which I need to feed to an SSRS report, but the query involves inter-company purchase and sales orders. I've, through testing, created a query which shows all information for all companies on the sales side through a view, and one which shows all companies' purchase information through a view, but any attempt made to make one view link to the other - or extend the sales query so it links SalesLine and PurchLine tables, results in no records.

I know my logic is correct because I'm testing the same links on SQL Server, and it's been running in Access for 2 years (we're trying to replace it with an SSRS report we can run in batch).

Is there some extra step involved in cross-company queries when the linked fields are in two different companies?

Thanks very much in advance for your help

Luke

How i can return a condition in a method? Is possible?

$
0
0

I use 'IN' a lot, and I want to create a function that allows me to put less code. Is it possible to return certain conditions to a query from a method?

This is my requirement as an example


Thanks in advance!

Test Plan shows zero records On Load of RSAT configuration file

$
0
0

This is first time we are using RSAT tool and on Load of Test plan in RSAT configuration , The Test plan shows zero.  Pls review below screen shot.

Pls suggest

An exception occured when invoking the operation - Stack trace: Cannot run form on non interactive session.

$
0
0

Hi All,

I was hitting this error while consuming my D365FO Custom Web Service for Posting Confirmation of Sales Order.

Is there anyone encounter same before? appreciated if can share to us some lights to solve.

"Message": "An exception occured when invoking the operation - Stack trace: Cannot run form on non interactive session.",
"ExceptionType": "InfoException",
"ActivityId": "14c671fe-e9e1-0003-93eb-c714e1e9d401"

Regards,

Ariston Javier

HOW TO ADD FIND AND EXISTS METHOD IN NEW TABLE

$
0
0

Can anyone please help , how to add new methods in Newly created tables and existing table .


Custom RDP: CustDueDetailReportDP

$
0
0

Hello master, I have a problem. I got request to add Customer name and invoices description to Detailed Due Day Report. You can access the report in AX with this steps: AR (Account Receiveable) > Report > Status

I checked and i found that report use CustDueDetailReportDP as the RDP. But i'm stuck about how to relate tables inside that RDP with another table that contains customer name and invoice description. I think i have to relate it to CustInvoiceJour or CustInvoiceTrans.

I already create 2 more columns to the temporary table for the report with "String" as the type but dunno how to relate the tables inside the RDP.

Can you show me how to relates the tables? You don't have to write the column name exactly like mine, you can use random name and i'll rename it according to my needs. Any help will be appreciated :)

Can't import MODELS on VisualStudio TEAM SERVICES

$
0
0

Hi everyone,

I have an environment with a connection to Team Project in visual studio. 

I can connect correctly with the repository. When i load the proyect a error "one or more projects in the solution were not loaded correctly" appears and when i build this error appear:

 The solution do exist.

When the build is complete i have a lot of errors related with MODELS:

Error        No assembly matching referenced module 'CONModel' is found.
CONModel is one of the models of the solution, no one loads.

more than 60...

I'm alomst sure the problem is in the descriptor, but i dont know where because i have all the configurations rigth:

and when i go to Source Control Explorer the files are there:

 I search in folder and they are there.

and the project:

The thing is that in other enverionment these errors doesn't appear, its only in this one. Things that i have do/tried (several times):

  • Open VS as administrator
  • Get the last version
  • Syncronize with database
  • Restart IIS, AOS WEB, BATCH SERVICES
  • Delete work space and build again.
  • Restart environment

I search this in web but no solutions works for me. I don't know what more can i do. Has something similar happened to someone?

Thanks.

Odata endpoint returns null exception

$
0
0

Hi All,

Is there any service we can reset to restart the Odata endpoint? I get the following error on all the data entities that I try to access on a Dev machine? 

<ExceptionType>System.NullReferenceException</ExceptionType><StackTrace> at Microsoft.Dynamics.Platform.Integration.Services.OData.MetadataResourcesDefinition.Microsoft.Dynamics.Platform.Integration.Services.OData.IResourcesDefinition.get_ExtensionsResources()
at Microsoft.Dynamics.Platform.Integration.Services.OData.Metadata.MetadataModelBuilder..ctor()
at Microsoft.Dynamics.Platform.Integration.Services.OData.Metadata.MetadataModelBuilder.InitLazyInstance()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Microsoft.Dynamics.Platform.Integration.Services.OData.Metadata.MetadataModelBuilder.get_Instance()
at Microsoft.Dynamics.Platform.Integration.Services.OData.Metadata.EdmModelProxy.get_DirectValueAnnotationsManager()
at Microsoft.OData.Edm.ExtensionMethods.SetAnnotationValue(IEdmModel model, IEdmElement element, String namespaceName, String localName, Object value)
at Microsoft.OData.Edm.Csdl.SerializationExtensionMethods.SetEdmxVersion(IEdmModel model, Version version)
at System.Web.OData.MetadataController.GetModel()
at System.Web.OData.MetadataController.GetServiceDocument()
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.&lt;&gt;c__DisplayClass10.&lt;GetExecutor&gt;b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.&lt;TraceBeginEndAsyncCore&gt;d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;InvokeActionAsyncCore&gt;d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.&lt;TraceBeginEndAsyncCore&gt;d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.&lt;ExecuteAsync&gt;d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.Tracers.HttpControllerTracer.&lt;ExecuteAsyncCore&gt;d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.&lt;TraceBeginEndAsyncCore&gt;d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.&lt;SendAsync&gt;d__1.MoveNext()</StackTrace></Error>

 

Duplicate rows (records) on a view

$
0
0

Hi All, 

I made a view based on Query.

Query is:
InventTrans

->InventTransOrigin (TransOriginRecId->RecId)

->CustInvoiceTrans  (InventTransId->InventTransId) + RANGE InvoiceId = !""

->CustPackingSlipTrans (InventTransId->InventTransId)

and in view sometimes I have duplicate records...

Maybe someone of You know a solution of this problem?

Adding callback method for .net event in x++

$
0
0

So the System.Net.ServicePointManager has the function, to add a callback method for the ServerCertificateValidationCallback method/event

I want to add my own callback method to this in x++.

The background is the following post, where this is appearently done in AX2012:

https://community.dynamics.com/ax/b/dynamicsax_wpfandnetinnovations/archive/2012/11/25/making-calls-to-secure-web-services

In AX 2012 it can be done the following way:

System.Net.ServicePointManager.ServerCertificateValidationCallback += delegate(object sender,
                         System.Security.Cryptography.X509Certificates.X509Certificate certificate,
                         System.Security.Cryptography.X509Certificates.X509Chain chain,
                         System.Net.Security.SslPolicyErrors sslPolicyErrors) { return true; };
This is not possible to do the same way in D365FO/AX7.
The += operator is only allowed with the eventhandler(...) pattern, not with delegate(...)
I have tried several takes, including trying to create a new System.Net.Security.RemoteCertificateValidationCallback object, but can't find a way to make it even compile.
Does anyone have experience with this?
I would prefer to keep the code in x++, and not having to make it in c#, but if that's the only option I may have to go for the red pill

Kind Regards

Tommy Axelgaard

Viewing all 17532 articles
Browse latest View live


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