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

Query extended range failure: Syntax error near 257

$
0
0

Hi everyone,

I am facing an issue.

I have a Policy on a Role.

I created an AOT Query for policy containing only one table InventTransferTable. And add a range on field InventLocationIdFrom.

For value of this range, I created a method in class SysQueryRangeUtil. 

I want to only filter those LocationId(s) from InventTransferTable which map the User assigned LocationId. (which come through loop)

Either this LocationId exist in InventLocationIdFrom field or it exist in InventLocationIdTo field. here is the code:

Here is the AOT Query range image:

So when I open the TransferOrder Form, this code generate the following error:

Query extended range failure: Syntax error near 257.

I tried different code but no result.

The main loop have 6 LocationId(s). On 2 to 3 LocationId(s), It did nót get any error.

For the User Assigned Location consider,  1,2,3,4,5,6

Need help for this. Your help will appreciable.


Cartesian product of three tables via Query and QueryBuildDataSource

$
0
0

Hello,

I need to connect three tables in a Query in order to get the cartesian product of all three in runtime. How can I achieve this requirenment using Query, QueryBuildDataSource and QueryRun. If I do it in the following matter the tables are fetched one after the other in the queryrun (first all values of "TableBase",  second all values of "Table1", third all values of "Table2"). The cursor "qr" never contains all the values at the same time.

Query                   queryAll  = new Query();

QueryBuildDataSource    qbds_base          = queryAll.addDataSource(tableNum(TableBase));


QueryBuildDataSource qbds_table1 = qbds_base.addDataSource(tableNum(Table1));
qbds_table1.joinMode(JoinMode::InnerJoin);

QueryBuildDataSource qbds_table2 = qbds_base.addDataSource(tableNum(Table2));
qbds_table2.joinMode(JoinMode::InnerJoin);

QueryRun qr = new QueryRun(queryAll);

while (qr.next())
{

TableBase tableBase = qr.get(tableNum(TableBase));

Table1 table1 = qr.get(tableNum(Table1));

Table2 table2 = qr.get(tableNum(Table2));

}

 

Thanks

Sebastian

Reorder Temporary Table Records.

$
0
0
I'm working to sort records from a temp table used for reporting.
When doing insert_recordset it ends up crashing.
I have the following code in the Extended ProcessReport method, any tips on what to do ?

public void processReport()
    {
		ttsbegin;

        next processReport();
		
		LedgerTransStatementTmp			ledgerTransStatementTmp2, localLedgerTransStatementTmp = this.getLedgerTransStatementTmp();		

        insert_recordset ledgerTransStatementTmp2
        (
            MainFocusValue,
            MainFocusName,
            MainFocusDescription,
            PeriodCode,
            TransDate,
            Voucher,
            AmountDebit,
            AmountCredit,
            AccumulatedMST,
            ReportingCurrencyAmountDebit,
            ReportingCurrencyAmountCredit,
            ReportingAccumulatedMST,
            AmountCur,
            TransactionCurrencyAmountDebit,
            TransactionCurrencyAmountCredit,
            AmountMSTDebCred,
            CurrencyCode,
            GeneralJournalAccountEntry,
            GeneralJournalEntry,
            GeneralJournalEntryDataArea,
            PreviousCreditTotal,
            PreviousDebitTotal,
            Reversed,
            SecondaryFocus,
            SecondaryFocusName,
            TaxAmount,
            TaxCode,
            TraceNum,
            TransTxt,
            OffsetAccount,
            IsFinalRecord,
            BudgetModelId,
            LedgerPostingType,
            RecordType,
            BudgetTransactionStatus,
            IsEndingBalance,
            GroupRowNum,
            AccountMain,
            Active,
            Currency,
            CurrentCreditTotal,
            CurrentDebitTotal,
            DefaultDimension,
            FromDate,
            IsGroupedOpeningTrans,
            LedgerDimension,
            MainAccount,
            MainFocus,
            PostingLayer,
            AccountName_PTR,
            AccountNum_PTR,
            AccountType_PTR,
            DocumentDate_PTR
        )
        select
            MainFocusValue,
            MainFocusName,
            MainFocusDescription,
            PeriodCode,
            TransDate,
            Voucher,
            AmountDebit,
            AmountCredit,
            AccumulatedMST,
            ReportingCurrencyAmountDebit,
            ReportingCurrencyAmountCredit,
            ReportingAccumulatedMST,
            AmountCur,
            TransactionCurrencyAmountDebit,
            TransactionCurrencyAmountCredit,
            AmountMSTDebCred,
            CurrencyCode,
            GeneralJournalAccountEntry,
            GeneralJournalEntry,
            GeneralJournalEntryDataArea,
            PreviousCreditTotal,
            PreviousDebitTotal,
            Reversed,
            SecondaryFocus,
            SecondaryFocusName,
            TaxAmount,
            TaxCode,
            TraceNum,
            TransTxt,
            OffsetAccount,
            isFinalTrue,
            BudgetModelId,
            LedgerPostingType,
            RecordType,
            BudgetTransactionStatus,
            IsEndingBalance,
            GroupRowNum,
            AccountMain,
            Active,
            Currency,
            CurrentCreditTotal,
            CurrentDebitTotal,
            DefaultDimension,
            FromDate,
            IsGroupedOpeningTrans,
            LedgerDimension,
            MainAccount,
            MainFocus,
            PostingLayer,
            AccountName_PTR,
            AccountNum_PTR,
            AccountType_PTR,
            DocumentDate_PTR
            from ledgerTransStatementTmp
        order by MainFocusValue, TransDate, IsEndingBalance, SecondaryFocus, GeneralJournalEntryDataArea, PeriodCode, RecordType, Voucher, TaxCode;

        _ledgerTransStatementTmp = ledgerTransStatementTmp2;
		
		ledgerTransStatementTmp2 = null;
		
		ttscommit;
		
	}

dimension location cannot be left blank if dimension serial number is set

$
0
0

Hello All,

I am getting the below error while generating the packing slip all lines are already picked and work is already closed for this lines and we are using the mobile device.

If anyone please help me in this. 

Error : Cannot create a record in Project revenue header (ProjectRevenueHeader). Reference: 5637468082. The record already exists.

Partner recommendation for AX 2009 support/training and potential migration project

$
0
0

Can anyone recommend a good (tried and tested) AX 2009 partner in the UK?

Primarily we need some master planning guidance/training as we've recently lost some knowledgeable staff members and need to fill in the gaps.

As a secondary task, we may ask them to showcase Dynamics 365 Enterprise(?) to our key staff for a potential migration project in 2022/2023.

Thanks in advance

AX 2009

$
0
0

Hello,

How can I get Invoice Posting Time in AX 2009

Cancel a IC-Returorder when the PO already is canceled _Ax2012

$
0
0

Hello

We have an IC-order, where the purchase order is canceled (I don´tt know why) and then we need to cancel the Return order.

The problem is that the return order already has the status "Delivered" and I can´t cancel the Packing slip.

 

Anyone have a good idea on how to possibly cancel the apcking slip  (which normally doesn´t work on return orders) or just cancel the entire Return order?


Relation between Free text invoice (CustInvoiceTrans) to GeneralJournalEntry table

$
0
0

Hello,

Can anyone please let me know what is the relation between the Free text invoice (Custinvoicetrans) to GeneraljournalEntry table?

Calling same menu item from Controller Class

$
0
0

HI Dynamics Community,

                                      I have one query I have 2 reports design and have Two menu items of same type . I want to call  it from same controller class Using if condition 

but facing difficulty in syntax .

Increase report size displayed in browser

$
0
0
hello, as I increase the size of the report displayed in the browser ? I think the limit is at 13mb.

I use D365FO.

report ledgerTransStatementTmp.
thanks in advance.
 

How to update a checkbox in the field and display the checkbox tick to a particular field

$
0
0

Hi,

I have created a field in the Form and the field is a check box.!

i am working on master planing and in that i need to add a custom field showing safety stock, so i have added a checkbox field in the form  now i want only the checkbox ticked when the safety stock is available and if its not available i want the check box anticked so how do i proceed ahead now as i am not understanding how to move forward....

Thanks in Advance;

Josiah 

vendor payment proposal journal - locked by system?

$
0
0

Hi all,

we have a problem with vendor payment proposal journal. It was created, but couldn't be proceeded further. 

When anylising the problem I found out the checkbox "locked by system", it is activated in thas journal.

What does it actual mean, when it is activated? can I just unlock it?

Thank you!

Vendor balance report not matching with TB in AX 2012

$
0
0

Hi,

Greetings.Hope erverything is fine

I need small help for AX 2012 for one issueThe TB and Vendor balance report)AP-Report-Vendor balance report) has difference of 8.85 and do not match

I updated the Finacial dimension set and  update balance but no luck

Can you please let me know how  to compare the record and get the difference from voucher

I tried but couldnt succeed.

I need to find out from where the difference is coming.

Please help

Documentation or E Learning Course for Finance

$
0
0

Does anyone know how to find any training on AX 2009 General ledger Module or the older Finance Classes.  I am specifically looking for something that would help with Consolidation Multiple Currencies.  Any information would be appreciated.  Thanks


D365FO: Sync error on computed column in a view when "Valid Time State Enabled" set to "Yes"

$
0
0

Hello,

I have the strange situation that the activation of a "Valid Time State Enabled" = "Yes" leads to a synchronisation error. Here is the detailed description of the situation:

My view is based on a query with multiple tables including two times LogisticsPostalAddress

The view contains the following fields with some simple computed columns:

    public static server str accountNumSQL()
    {
        TableName       view = tableStr(???BankAccountVendCustTransView);
        ;
        return SysComputedColumn::if(SysComputedColumn::isNullExpression(SysComputedColumn::comparisonField(view, identifierStr(CustTable), fieldStr(CustTable, AccountNum)))
                                   , SysComputedColumn::returnField(tableStr(???BankAccountVendCustTransView), identifierStr(VendTable), fieldStr(VendTable, AccountNum))
                                   , SysComputedColumn::returnField(tableStr(???BankAccountVendCustTransView), identifierStr(CustTable), fieldStr(CustTable, AccountNum)));
    }

At this point everything works fine (Build & Sync). As a result I see all values in the view as expected.

Because some of the customers / vendors changed their addresses the join on the LogisticsPostalAddress will double the records because of the "ValidTimeState" handling of the table. So I tried to get rid of this with the view property "Valid Time State Enabled" = "Yes". (the relevant ValidFrom / ValidTo fields are already in the view and were synchronised correctly before the change of the property).

After changing the property the build runs without an error but the synchronisation ends up with a strange error pointing to the computed column:

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt.".....

Do you have any hint for me how I could solve this.

Thanks

Sebastian

Prohibited product on POS

$
0
0

Hi All. 

Im using AX 2012 R3 and connected MPOS. 

On MPOS side when try to sell on of the products the infolog appear: "Product can't be added. Following products are prohibited."

The product is in 'Active' lifecycle  status. Checked also on it is not blocked on POS, on site that brick and mortar use (no site specific set).

Product is also not restricted, reported etc. 

Any other ideas what can i check and how to fix this issue?

Dynamics AX update Installer,How do I obtain the installation package

$
0
0

During the installation process, there are two ways, one is to download and install the update, the other is to use the existing installation package, how to get this installation package, I can not find where to download  

AX 2009 trade and logistics I (80024) & II (80025)

$
0
0

Hi Experts,

I wonder if anyone still have these document for AX 2009: trade and logistics I (80024) & II (80025)? Could you help to share?

I searched the old posts but the document links are no longer accessible.

Thank in advance, 

Best regards,

Thu

Delete Some tables data after class sysdatabasetransdelete

$
0
0

Dear All

We are using ax2012 r3 and we need to clear all transactions in our company and keep only master
data so I used class sysdatabasetransdelete and after process finished I found some tables still
have huge data so my question can I delete data from them manually without problem?

tables still contain data:

INVENTSETTLEMENT,SOURCEDOCUMENTHEADER,SOURCEDOCUMENTLINE,INVENTTRANSORIGINJOURNALTRANS,INVENTTRANSORIGINJOURNALTRANSRECEIPT,

INVENTTRANSORIGINSALESLINE,INVENTTRANSORIGINTRANSFER,INVENTCLOSINGNONFINANCIALINVENTTRANS,GENERALJOURNALACCOUNTENTRYDIMENSION,DI

MENSIONFOCUSUNPROCESSEDTRANSACTIONS

Thanks 

Viewing all 46681 articles
Browse latest View live


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