Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

Database upgradation from AX 2012 R3 to D 365 !

$
0
0

Hi Friends, I have a new requirement on Database upgradation from AX 2012 R3 to D 365 (Cloud). But I am not aware of how to do ?

Please give me the suggestions/articles 'step by step' how to do the data  Upgradation.

Thanks,

Vinaykumar.


query for all shipment details

$
0
0

can anyone hep me to find the database query to create a report like this:

I need t create a process to extract how many lines we send to the warehouse every hour and send it by email.

thanks

Import model store into a fresh new installed Database AX2012R3CU11

$
0
0

Hi all,

I recently installed a new databases for a fresh environment. But I want to install only the ModelStore of our previous customized enviroment.

I haven't been in this process but I tried Exporting and importing by creating a new schema and the applying the changes. Everything looks fine until I Synchronized the recently installed model on target database.

And 4 error shows up after database synchronization on tables I never used before (at least they are not customized)

the problem is that when I go to the AOT and look on this fields I don't find them anywhere. They are in SQL for sure but not showing in the AOT so it makes difficult to track their IDs.

My question. What should be the right process to install a customize modelstore into a new database. I that ok what I am doing?

thanks for your time beforehand.

CASEDETAILBASE
Illegal data conversion from original field CASEDETAILBASE.APPROVED to CASEDETAILBASE.HoursWorked: Unable to convert string data types to anything but INT, or REAL field types (2).
Illegal data conversion from original field CASEDETAILBASE.APPROVEDBY to CASEDETAILBASE.HoursWorkedPayrollIntegration: Unable to convert data types to anything but character field type (0 to 4).
Illegal data conversion from original field CASEDETAILBASE.APPROVEDHOURS to CASEDETAILBASE.LeaveReason: Unable to convert data types to anything but character field type (2 to 4).
Illegal data conversion from original field CASEDETAILBASE.FMLAHOURSAVAILABLE to CASEDETAILBASE.LeaveSchedule: Unable to convert data types to anything but character field type (2 to 4).
Illegal data conversion from original field CASEDETAILBASE.HOURSWORKED to CASEDETAILBASE.LeaveStartDate: Unable to convert data types to anything but character field type (2 to 3).
Illegal data conversion from original field CASEDETAILBASE.HOURSWORKEDPAYROLLINTEGRATION to CASEDETAILBASE.LengthOfService: Unable to convert string data types to anything but INT, or REAL field types (2).
Illegal data conversion from original field CASEDETAILBASE.LEAVEREASON to CASEDETAILBASE.MilitaryFMLAHoursAvailable: Unable to convert string data types to anything but INT, or REAL field types (2).
Illegal data conversion from original field CASEDETAILBASE.APPROVED to CASEDETAILBASE.HoursWorked: Unable to convert string data types to anything but INT, or REAL field types (2).
Illegal data conversion from original field CASEDETAILBASE.APPROVEDBY to CASEDETAILBASE.HoursWorkedPayrollIntegration: Unable to convert data types to anything but character field type (0 to 4).
Illegal data conversion from original field CASEDETAILBASE.APPROVEDHOURS to CASEDETAILBASE.LeaveReason: Unable to convert data types to anything but character field type (2 to 4).
Illegal data conversion from original field CASEDETAILBASE.FMLAHOURSAVAILABLE to CASEDETAILBASE.LeaveSchedule: Unable to convert data types to anything but character field type (2 to 4).
Illegal data conversion from original field CASEDETAILBASE.HOURSWORKED to CASEDETAILBASE.LeaveStartDate: Unable to convert data types to anything but character field type (2 to 3).
Illegal data conversion from original field CASEDETAILBASE.HOURSWORKEDPAYROLLINTEGRATION to CASEDETAILBASE.LengthOfService: Unable to convert string data types to anything but INT, or REAL field types (2).
Illegal data conversion from original field CASEDETAILBASE.LEAVEREASON to CASEDETAILBASE.MilitaryFMLAHoursAvailable: Unable to convert string data types to anything but INT, or REAL field types (2).
CORTANAMODELBUILDPARAMETERS
Illegal data conversion from original field CORTANAMODELBUILDPARAMETERS.ITEMCUTOFFUPPERBOUND to CORTANAMODELBUILDPARAMETERS.FbtMinimalScore: Unable to convert string data types to anything but INT, or REAL field types (2).
Illegal data conversion from original field CORTANAMODELBUILDPARAMETERS.FBTSUPPORTTHRESHOLD to CORTANAMODELBUILDPARAMETERS.InstanceRelationType: Unable to convert data types to anything but character field type (1 to 49).
FBGENERALADJUSTMENTCODE_BR
Illegal data conversion from original field FBGENERALADJUSTMENTCODE_BR.SPEDADJUSTMENTCODEPISCOFINS to FBGENERALADJUSTMENTCODE_BR.IsPovertyFund: Unable to convert data types to anything but character field type (0 to 4).
Illegal data conversion from original field FBGENERALADJUSTMENTCODE_BR.SPEDADJUSTMENTCODEPISCOFINS to FBGENERALADJUSTMENTCODE_BR.IsPovertyFund: Unable to convert data types to anything but character field type (0 to 4).
RETAILPRODUCTATTRIBUTESLOOKUP
Illegal data conversion from original field RETAILPRODUCTATTRIBUTESLOOKUP.INFOCODE to RETAILPRODUCTATTRIBUTESLOOKUP.LabelAttribute1: Unable to convert data types to anything but character field type (0 to 49).
Illegal data conversion from original field RETAILPRODUCTATTRIBUTESLOOKUP.INFOCODE to RETAILPRODUCTATTRIBUTESLOOKUP.LabelAttribute1: Unable to convert data types to anything but character field type (0 to 49).

Sales order once invoiced are allowing customer ref

$
0
0

Hi 

can we stop to user for changing Customer reference number in sales order once sales order already invoiced ? Via any option or with any security role in Ax2012 R3? 
We know we cannot delete this field because user using for customer Ref/ PO number but how we can stop after invoiced in sales order .

this is creating issue when we consolidation run 

regards 

Line number minus in Transfer Orders

$
0
0

Hi All,

I have something problem with my transfer order, when I add some new line, the line number have a minus number and add it above not below the existing line. Can anyone help me to solve this problem ? 

Thanks,

Line number minus in Transfer Orders

$
0
0

Hi All,

I have something problem with my transfer order, when I add some new line, the line number have a minus number and add it above not below the existing line. Can anyone help me to solve this problem ? 

Thanks,

How to apply Latest CU updates in AX 2012 R3

$
0
0

Hi All,

We need to upgarde latest CU updates on AX 2012 R3,

Currently we have 6.3.3000.111 version(CU 10),

Please provide any step by step document or link  to apply latest CU update.

We are able to see latest update is Cumulative Update 13 (6.3.6000.149*13 Sep 2017) and February 2019 Update (6.3.6000.814920 Apr 2019), and Recent kernel build (6.3.6000.8144 28 Feb 2019) which one we need to apply, please let us know.

Thanking in anticipation.

Regards,

Akbar

Structure Compilation taking long time to execute

$
0
0

Hello,

Can someone tell why is structure Compilation taking long time (around 4 hours) for each entity ?

Is there any way that I can reduce the execution time ?

Thanks in advance !


AX not showing open Invoices

$
0
0

AX is showing some balance for one vendor but when we go to the transaction details, there are no open invoices. need to identify the invoices to which this balance relates to. kindly advise. 

Purchased and produced item in AX

$
0
0

Hi Everyone,

Can someone please tell me is it possible to produce and purchase same item in AX. This items are to be resold or to become part of next level BOM.

This change need to be done periodically depending on production capacity.

Thanks

Closing and Adjustment

$
0
0

Hello,

In Inventory management/Closing and Adjustment transaction has been used, problem is that number of iterrations is set to 1000000.

Now transaction is blocked, i can not close any period after date of this transaction. Have tried to find on forums solution but w/o success. 

Thanks for any help.

Getting error while running Preserve legacy element IDs in code upgrade checklist in AX 2012 R3

$
0
0

Hi All,

I am upgrading from AX 2009 SP1 to AX 2012 R3 Cu13, I am getting below error while running 

Preserve legacy element IDs in code upgrade checklist

Error : ERROR: Cannot bulk load because the file "C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities\IdDataFormat.xml" could not be opened. Operating system error code 3(The system cannot find the path specified.).

Command used : axutil idkeep /idfile:e:\ki\SysUpgradeExportIdMap.csv /renamefile:e:\ki\MicrosoftElementsRenamed62.csv /verbose /s:DBServername /DB:DBName

Error screen :

Retail P-Job Not Applying.on one of the POS Machine

$
0
0

Dear AX Tech Experts,

We have run 1020 job on all pos machine from channel database. It has applied successfully on all POS but not applying on one of the POS.

Job status in Head office remain on Available but channel db shows error in event viewer:

Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.ProcessTargetRequestHeaderException:
ProcessTargetRequestHeader failed to execute all delete requests --->
Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.ProcessDeleteRequestException:
Delete request on table:[ax].[PRICEDISCTABLE] failed to execute. --->
Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.RunException:
Query: DELETE FROM [ax].[PRICEDISCTABLE] ;; filterNameList: ;filterValueList: ; --->
System.Data.SqlClient.SqlException: Execution Timeout Expired.

Strange is: when I cancel & delete this job  from Headoffice and run any other job like 1040 but it is showing same PriceDiscTable error.

Question is : where this error has stuck and why this is not allowing any other job to run.

Please suggest me to get out of this error situation.

Regards

Kamran

Running Accrued Purchases Report in certain companies leads to a result set with "blanked" rows

$
0
0

We are having a very odd issue when we run the Accrued Purchases report (VendAccruedPurchases_NA) and I have searched both this forum and life cycle services and have not seen a solution to this issue, mainly because what we have done to try and figure out what is actually going on here, but at this point I am stumped. 

The scenario is that in our Production environment, when we run the Accrued Purchases report in certain companies, we receive a result set that contains results that look like it is just returning a collection of initialized table buffers. What I mean by this is that if the report were to run properly in those companies we would receive something like 29 pages of rows in the report and we do receive that many rows, but every row looks as though it has been initialized to hold the default value of the field, so strings become the empty string and reals and integers become zeros. To compound matters however, the report only behaves like this in our Production environment. If I move the dataset to a test or development environment, the report runs just fine in those companies (to the point that we are currently running the report in the test environment, which is updated from the production environment nightly, and giving the output to the affected users.) As such, there is no way for me to debug what is actually happening here. So with that in mind, I wrote a job that would mimic running the report and passed an instance of the VendAccruedPurchasesDP_NA data provider to try and generate the data in the affected companies and then dump it into an infolog in order to see if the data was generated properly or if the record buffers returned in the dataset would return to their initialized state. We imported the job into the Prod environment and the data was returned properly, which indicates to us that the issue MUST be happening somewhere between the end of the DP execution and when the report renders in SSRS. However, as I started to dig, I found out that this report uses TempDB tables to generate the output, but at the same time, does NOT extend the SRSReportRunRdpPreProcessTempDB class in the VendAccruedPurchasesDP_NA class. At this point, I get a little lost, as the documentation indicates that the TempDB and Regular table report data sources are reports that use pre-processing, but the data provider class that serves as the parent does not appear to have any of this functionality, even though the report itself has dynamic filters set and the report has the AX_RdpPreProcessedId parameter as part of its design. I can't help but think that it is the AX_RdpPreProcessedId parameter that is leading to the result we are seeing in those companies, but I am not sure how that works and can't speculate further.

I have noted that the VendAccruedPurchases_NA report has had a number of hotfixes released over the years, but the fact that this report works fine in every environment I run it in for every company EXCEPT PRODUCTION makes me believe that the hotfixes we have not applied would have no impact on resolving this issue.

Has anybody seen anything like this or know why this may be happening? At this point I have tried everything I know and apart from getting my SQL admin to monitor a report run (which is scheduled, but I wanted to post this while I have been thinking about it) I am not sure what else I can do here.

Any knowledge you guys have would be very appreciated.

Brandt

Can't Create New Record

$
0
0

Hello,

I create New Form this form working according to employee

I've faced a problem when open this form is getting the last record is created and I can't create a new record
These properties a form

* my table is not Temp table 


         

I'm using Dynamics 365 for f&o


AP invoice and payment approve button

$
0
0

I need to block the ability for a user to approve the ap and invoice journal. does anyone know which privilege this is. they just need to be able to report as ready but not approve> 

Open Journal Quantity

$
0
0

HI,

There is a need of a report to find the quantities pending to be posted across journal.

Is there any standard functionality available or need to seek the developers

Free trial account access/Demo account Dynamics AX

$
0
0

Hello

Is that possible to get access to an demo/ free trial environment so I can try to build an integration with Dynamics AX?

I wanna build an script that will be reading Purchase order line item details and also receipt/GRN line item details.
Then I'll fetch the invoice line items from another system that is extracting the invoice data via OCR(Optical Character Recognition), run some logic then create the API Invoice on Dynamics AX.

I already found some documentation on how to setup/expose some operations via HTTP.

docs.microsoft.com/.../walkthrough-exchanging-documents-by-using-the-http-adapter 

Thanks

Tiago

Translating x++ query to AOT query in SSRS Report

$
0
0

Hi, 

So i have 2 contract parameters (fromDate, andToDate) and i have an x++ query that was used in ax 12, And i want to do it again in d365

Here's AX12 code:

Query                   query = new Query();
        QueryBuildDataSource    queryBuildDSCustTrans;
        QueryBuildDataSource    queryBuildDSCustTable;
        QueryBuildRange         queryBuildRange;
        QueryRun                queryRun;
        CustTrans               custTrans;
        CustTable               custTable;

   
        queryBuildDSCustTrans  = query.addDataSource(tablenum(custTrans));
        If(dateFrom || dateTo) //coming from Contract
        queryBuildDSCustTrans.addRange(fieldnum(CustTrans,TransDate)).value('(TransDate >= '+date2StrXpp(dateFrom)+') && (TransDate <= '+date2StrXpp(dateTo)+')');

        queryBuildRange=queryBuildDSCustTrans.addRange(fieldnum(CustTrans,RecId));
        queryBuildRange.value(@'(((Transtype ==0)&&(Txt like "A*"))||((Transtype ==0) && (Txt like "C*"))||((Transtype == 0) && (Txt like "B*"))||((Transtype ==0)&&(Voucher like "A*"))||((Transtype ==0) && (Voucher like "C*"))||((Transtype == 0) && (Voucher like "B*"))||(Transtype == 14)||(Transtype == 15)||(Transtype == 27)||(Transtype == 29)||(Transtype == 36))');

        queryBuildDSCustTrans.addGroupByField(fieldNum(custTrans,TransDate));
        queryBuildDSCustTrans.addGroupByField(fieldNum(custTrans,DueDate));
        queryBuildDSCustTrans.addGroupByField(fieldNum(custTrans,AccountNum));


        queryBuildDSCustTrans.addSelectionField(fieldNum(custTrans,AmountMST),SelectionField::Sum);
        queryBuildDSCustTrans.addSelectionField(fieldNum(custTrans,TransDate));
        queryBuildDSCustTrans.addSelectionField(fieldNum(custTrans,DueDate));
        queryBuildDSCustTrans.addSelectionField(fieldNum(custTrans,AccountNum));

        //
        // Setup the secondary (joined) datasource.
        queryBuildDSCustTable   = queryBuildDSCustTrans.addDataSource(tablenum(CustTable));


        queryBuildDSCustTable.addGroupByField(fieldNum(custTable,EnterpriseCode));
        queryBuildDSCustTable.addGroupByField(fieldNum(CustTable,AccountNum));
        queryBuildDSCustTable.addGroupByField(fieldNum(custTable,Party));


        queryBuildDSCustTable.addSelectionField(fieldNum(custTable,EnterpriseCode));
        queryBuildDSCustTable.addSelectionField(fieldNum(custTable,AccountNum));
        queryBuildDSCustTable.addSelectionField(fieldNum(custTable,Party));

in D365 i built the AOT query and added the range of the contract parameter in RDP class

by using this

public void processReport()
    {
        TTTContract contract = this.parmDataContract() as TTTContract;
        Query query = this.parmQuery();
        if(contract.parmFromDate() != dateNull() || contract.parmToDate() != dateNull())
        {
            query.dataSourceTable((tablenum(CustTrans))).addRange(fieldnum(CustTrans,TransDate)).value('(TransDate >= '+date2StrXpp(contract.parmFromDate())+') && (TransDate <= '+date2StrXpp(contract.parmToDate())+')');
        }

        QueryRun            queryRun = new QueryRun(this.parmQuery());
        while (queryRun.next())
        {
        }
    }

Now i debugged both query to see the differences

AX12 Query

SELECT SUM(AmountMST), TransDate, DueDate, AccountNum FROM CustTrans(CustTrans_1)
 GROUP BY CustTrans.TransDate, CustTrans.DueDate, CustTrans.AccountNum, CustTable.EnterpriseCode, CustTable.AccountNum, CustTable.Party
WHERE (((TransDate >= 04\11\2018) && (TransDate <= 04\08\2018)))
AND (((((Transtype ==0)&&(Txt like "A*"))||((Transtype ==0) && (Txt like "C*"))||((Transtype == 0) && (Txt like "B*"))
||((Transtype ==0)&&(Voucher like "A*"))||((Transtype ==0) && (Voucher like "C*"))||((Transtype == 0) && (Voucher like "B*"))
||(Transtype == 14)||(Transtype == 15)||(Transtype == 27)||(Transtype == 29)||(Transtype == 36))))
 JOIN EnterpriseCode, AccountNum, Party FROM CustTable(CustTable_1)}

D365 QUERY ( please note that i added the TransType range in AOT query value field, exactly the way it appears in the code)

SELECT SUM(AmountMST), TransDate, DueDate, AccountNum FROM CustTrans(CustTrans)
GROUP BY CustTrans.AmountMST, CustTrans.TransDate, CustTrans.DueDate, CustTrans.AccountNum, CustTable.EnterpriseCode, CustTable.AccountNum, CustTable.Party
WHERE (((((Transtype ==0)&&(Txt like "A*"))||((Transtype ==0) && (Txt like "C*"))||((Transtype == 0) && (Txt like "B*"))
||((Transtype ==0)&&(Voucher like "A*"))||((Transtype ==0) && (Voucher like "C*"))||((Transtype == 0) && (Voucher like "B*"))
||(Transtype == 14)||(Transtype == 15)||(Transtype == 27)||(Transtype == 29)||(Transtype == 36))))
AND (((TransDate >= 04\11\2018) && (TransDate <= 04\08\2018)))
 JOIN EnterpriseCode, AccountNum, Party FROM CustTable(CustTable) ON CustTrans.AccountNum = CustTable.AccountNum}

I have 4 questions:

1. As you can see in AX12 code, use relations was set to yes, and the query ended with this "FROM CustTable(CustTable_1)}"

However, in d365, i used use relations(true) instead of specifying the relation myself and i got this:  "FROM CustTable(CustTable) ON CustTrans.AccountNum = CustTable.AccountNum"
Does that make a difference? why they are different. I also noticed that there are 3 relations between CustTrans and CustTable

2. would there be any difference in performance when using AOT query or x++ query?

3. TransType is an extensible enum, and in the range i used sth like Transtype =15, etccc  so would this cause any issue?, because i read that extensible enums would result in different numbers when using different environment

4. In general is the way i wrote the ranges for date and TransType correct?

How to check adapter connection in AX 2012 R3

$
0
0

Hi All,

How we can check how many adapter connections are there in AX 2012 R3 with CRM.

Please guide us in finding out this number.

Regards,

Akbar

Viewing all 175888 articles
Browse latest View live


Latest Images

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