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

D365FO File based Integration approach.

$
0
0

Little background about integration requirement.

  • 3rd party system is going send the Sales Order & Sales Invoice related information once in every day.
  • based on this information we are going to create the Sales Order & do the Sales Invoice.
  • once row from the file will have sales order & sales invoice information, i.e. by reading the a single line we should create the Sales Order & do the Sales Invoice as well
  • Successfully imported file should move the archive folder.

What is the best approach for file based integration in this scenario.

  • Should we go with data Entities
  • Should we create a Batch Job (class) which will run periodically


When exactly Data Package is created in D365FO.

$
0
0

Hi All

When exactly Data Package is created in D365FO.

Please give me more shed on this.

Thanks!

New Natural Key on Cust and Vend Transaction Tables for incremental data entity push

$
0
0

hi. A quick summary of my situation: (using D365FO (Update 7) environment).

Trying to create some data entities on transaction tables (cust/vend trans), to push data incrementally out.

This currently can’t happen because no natural key (those tables use recid which being a system fields isn’t allowed).

Workaround devised:

  • New field created (int64)
  • Clone recid value into that new field with SQL script (+ job) to populate field with recid.
  • Make new index using that new field.
  • Make index unique. (synchs fine after above script run)
  • Make tables primary index the new index
  • For new table entries (inserted records) - Class created with oninserted DataEventHandler similar as below:

    [DataEventHandler(tableStr(VendTrans), DataEventType::Inserted)]
    public static void VendTrans_onInserted(Common sender, DataEventArgs e)
    {

        // code to update new index field with recid.
    }

This works in the most part, but there are certain situations where duplicate key violations happen. For example, one scenario is probably that the Insert method is bypassed (a doinsert?). 

My question - Any ideas where else needs to be altered so that no violations of the index will happen - so that every time a new records is created a unique value is populated into it. It doesn’t matter if its recid or just an incremental number sequence really, as long as its unique so that change tracking will work.

As stated above, its mainly the custtrans, vendtran and taxtrans tables that are the problem.

thanks

Error when trying to add a new customer

$
0
0

When a user is trying to add a new Customer ship-to account, they are receiving an infolog stating "Access denied to table Party relationships (DirPartyRelationship).  This use has been able to perform this action and no security has changed for her.  I'm told that this happens occasionally and they try a second time, then it works.  However, today she has been unable to perform this action at all.

Anyone have an idea of what could be causing this?

Table Method, Class, Form- Run on, Server, Client

$
0
0

This is little basic doubt.

Debugger will hit only if the code runs on client? or will it hit on server methods too?

For debugging server methods, we use visual studio by attaching the process ax32serv.exe. This i know and have done.

So all server methods will be hit only via visual studio?

so if a class is explicitly stated server tier.. will the debugger not hit?

what about aosvalidate methods in table level? 

Please explain

How to import Ledger Closing trans

$
0
0

Hi guys 

I want to import data in the LedgerClosingTrans table. 

Have you already experienced it ? 

Path of form : Gl\periodic\Fiscal year close\Closing Period adjustment\Bottom:Transfer

Microsoft Dynamics AX 2012 R3 on VMWare

$
0
0

Hi,

We recently established our VMWare environment for AX but while putting all best hardware, we found sometime very slow performance. I reviewed all the practices offered by Microsoft even we are higher in specs but I believe this could not solve our problem. I also visited few clients who are using MS AX on Virtual environment and they all faced the same problem. I got a recommendation to move DB (SQL) server from VM to Physical. Will that resolve the issue. We have never gone beyond 75% where CPU or Memory but sometime even on 50% of CPU usage, windows gets hanged. I have installed RDS (Remote Desktop Server) and everyone logs in through RDWEB.

Can anyone who gone through this phase guide me to optimize my environment, We have 5 locations connected through MPLS and each MPLS connectivity is approx 2MB connection.

Regards

Ahsan 

Transfer Required For Bad Quantity To Rework Warehouse Not To Raw Material Warehouse From Quarantine Warehouse

$
0
0

Hi Folks,

I have one business scenario while processing the quarantine order below are the details.

I have one purchase order with item A quantity 10, warehouse Raw material. This item is serial number controlled. After entering test results (8 Pass) and 2 failed. I performed the validation for quality order. The quality order status is failed and the system has generated the quarantine order for all 10 items, there are 10 quarantine orders, each item have the different serial number.

Question 1: Why the system is taking the entire quality order quantity to the quarantine order? why not only the 2 failed items go to quarantine?

Now, once I have done with Report as finished and End the quarantine order, the items are back in the raw material warehouse

Question 2: Is there any way to transfer the failed items to rework warehouse from quarantine warehouse? Can I send the damaged items directly to the rework warehouse from quarantine warehouse?

Question 3: Do you have any workaround solution to transfer the damaged items from quarantine warehouse to rework or scrap warehouse?

 

Thanks, 


Org Chart facility or add-in which can link to Dynamics database

$
0
0

Hi

We are using Dynamix AX for financial and HR functionalities, among which is our employee database.  We would like to create an Org Chart from the existing employee database in Dynamics, and preferably have it linked to the database so that the Org Chart updates when the database is updated.

We are using SharePoint for application interfacing, which is reading from the Dynamics database.

Is there an Org Chart functionality within Dynamics (or SharePoint) which can be used for this purpose?  Or is there a SharePoint add-in which you can recommend which will enable us to create an Org Chart which reads from the Dynamics employee database?

Thank you

Chris

Filtering

$
0
0

Hi Community,

I have my Forms "Rentals" and "PriceTable".

In my Form "Rentals" I can choose the: "Vehicle Typ" , "Categorie" and "Model".

You see my Form "Price Table".
You see also in the Picture I send you, that I can choose the models.

But I want my models to be filtered by the "Vehicle Typ"  and "Categorie".


So When I choose "Car" and "Compact" that I can only take "C-220 d" - "Mercedes" as Option.

How is this possible ?

SQL insert into RouteOprTable

$
0
0

Hi all

Running AX 2012 R3 CU9

Looking at operations and we have a large number of records to add to RouteOprTable. It seems like a relatively straightforward table, and had no direct dependencies I could see, so the plan was to use SQL to load the data.

I used the following query on the SQL query server as a test:

INSERT INTO <database>.dbo.ROUTEOPRTABLE (OprId, Name, RecId,dataareaid) VALUES ('2','In = 2A',2,<our dataareaID>);

This created a record in the SQL database as expected, OprID value "2", the name as "In = 2A", a record-ID of 2, and the correct dataareaID.

However we can't see it when we look at the actual RouteOprTable in the AOT table browser.

We have used this method before and it has worked, is there something about this table/the method I am missing?

Cheers

Luke

Quarantine order required for the failed items only

$
0
0

AX2012R3

Module: Production and quality management

Subject: Quarantine order required for the failed items only

 

We are facing one issue while validating the quality order. We have created one production order(for 10 items) and at the time of report as finished(RAF) the system has generated the quality order(for 10 items). Once the quality order has been generated, user entered the Pass quantity(8) and failed quantity(2). After this, business user validated the quality order and system has automatically generated the quarantine order for the entire batch (complete 10 quantity).

 

Here, business user is  expecting that only the failed quantity(2) with serial number items should go to quarantine warehouse. However, the system is transferring the entire batch quantity 10 to the quarantine order. Each serial number item have its own quarantine order.

 

Questions

  • Can we generate the quarantine order only for the failed quantity?
  • Can we club the multiple serial controlled items and generate one quarantine order for 2 items (both items are serial controlled)?
  • Do we have any workaround solution from the standard system?
  • What if we customize the above solution, what will be the risk factor and impact of this development?

Unable to Convert SQL query in x++ for RDP Class?

$
0
0

Hi Everyone,

I have written a query in SQL (report builder ) and it is working fine but now i want to use this query in x++ RDP class for SSRS.

below is the sql query :

x-----------------------x-------------------------------------------------------x

from hcmworker

inner join DirpartyTable on hcmworker.PERSON = DirpartyTable.RECID
inner join dirPartyLocation on dirPartyTable.RecId = dirPartyLocation.Party
inner join HcmPositionWorkerAssignment on HcmPositionWorkerAssignment.Worker = hcmworker.RECID

inner join HcmPositionDetail on HcmPositionWorkerAssignment.Position=HcmPositionDetail.Position


inner join dimattributeomdepartment on dimattributeomdepartment .RECID=HcmPositionDetail.department


inner join logisticsLocation on dirPartyLocation.Location = logisticsLocation.RecId


inner join hcmemployment on hcmworker.recid=hcmemployment.worker
left outer join  assettable on hcmworker.personnelnumber= assettable.personnelnumber

--and LOGISTICSELECTRONICADDRESS.LOCATOR LIKE '%computers%'






where HcmPositionDetail.VALIDFROM <= getdate()
and HcmPositionDetail.VALIDTO >= getdate()
and hcmemployment.VALIDTO >= getdate()
--and hcmemployment.VALIDFROM >=getdate()

and ASSETTABLE.ASSETID IS NULL
OR assettable.assetgroup='computers'
and HcmPositionDetail.VALIDTO >= getdate()

ORDER BY hcmworker.PERSONNELNUMBER DESC

x-----------------------x-------------------------------------------------------x

Please help me in converting this query into X++.

i got stuck on how to handle getdate() and NULL query.

thank you

Difference between Run and execution

$
0
0

Hi,

i want to know this difference between run and execution based on this context

To debug X++ code, you use the Microsoft Dynamics AX debugger. This is the full-featured debugger that is part of the MorphX suite of tools. You can use this debugger to debug X++ code that:

  • Runs on the client

  • Runs on the server and is not executed in CIL

Docuref add URL note (network path)

$
0
0

Hi,

i want to add a type URL note  

Example: \\mypath\fi_pdf$\S726_17_B.pdf

The system don't give me error but open a  empty tabpage; it's possible to manage in D365Fo?

(For example on  Ax2012 is managed well)


How to integrate eCommerce magento website and dynamics 365 for finance and operations

$
0
0

Hello, we want to integrate the eCommerce website with dynamics 365 for finance and operations. We need basic information like items, customer etc. Automatic generation of sales order when item is purchased from site. Please provide some link from where we can study the details and implement the basics.

web.config in Visual Studio

$
0
0

How does the Visual Studio know to use the web.config located in the AosService\WebRoot folder ?

I mean How does the VS know to connect to the database specified in the web.config? 

Thank you! 

Insert values using Macros

$
0
0

Hi people,

What I am trying to do in making an insert using values from a method in my class, but I have some problems with the parameters. The macro that I have done is something like this.

#LOCALMACRO.InsertGroupValues

%1.clear();

%1.ItemId = %2;

%1.insert()

#ENDMACRO

public void InsertMethod()

{

Table1  table1;

#InsertGroupValues(table1, "00001")

}

And, in the class method I send the table I want to insert in. The problem is, when I declare the macro, it shows me a syntax error, that means it is not possible to send the table as a parm and insert values in, or I have an error that I haven't seen.

Thank you.

Could not able to access the global variable in the event handler class using reflections in ax 7

$
0
0

Hello!,

I couldn't able to access the global variable in the post event handler class using reflections concept in D365.

Please see the following image for further reference,

  

Hence I am getting an exception,

However the same process is working fine in platform update 7.

I am currently working on platform Update 10 and its not working for me in platform Update 10.

Please suggest any solutions.

Thanks,

How to import Ledger Closing trans

$
0
0

Hi guys 

I want to import data in the LedgerClosingTrans table. 

Have you already experienced it ? 

Path of form : Gl\periodic\Fiscal year close\Closing Period adjustment\Bottom:Transfer

Viewing all 17532 articles
Browse latest View live


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