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

X++ MenuFunction MorphX report run in CIL throw exception

$
0
0

Hi guys,

faced weird issue in AX 2012.

I have a customization on posting advance invoice.

Once invoice has been posted successfully following method is run from customization (some debug info lines are added for tracing purposes):

void printJournal()
{
    Args                args = new Args();
    ReportRun           reportRun;
    ;

    if (xSession::isCLRSession())
    {
        info('Running in a CLR session.');
    }
    else
    {
        info('Running in an interpreter session.');
        if (isRunningOnServer())
        {
            info('Running on the AOS.');
        }
        else
        {
            info('Running on the Client.');
        }
    }

    args.record(custInvoiceJourPrint);
    args.caller(this);
    new MenuFunction(menuitemOutputStr(FreeTextInvoiceOriginal), MenuItemType::Output).run(args);

}

This code is being called from class running on Server SalesInvoiceJournalPost (it is set in standard as runOn = Server).

When logic is run in p-code interpreter session code works well. Report is rendered on the screen and sale invoice itself posted correctly (report is not a SSRS report but old MorphX report).

But if "Execution in CIL" option is enabled, sales invoice is not posted and following line throw exception:

new MenuFunction(menuitemOutputStr(FreeTextInvoiceOriginal), MenuItemType::Output).run(args);

Exception is caught by block in FormLetterService class:

    catch
    {
        // exceptionTextFallThrough();
    
        code = WinAPIServer::getLastError();
        info(strFmt("error code - %1, ", code));
    }

It says that Error code is = 0;

Full CIL has been generated successfully, AOS restsrted and I deleted all old caches as well but no luck.

I tried to debug it in VS, all symbols have been loaded and code is the same as in p-code version but result is the same. No information about sort or CLR error.

I enabled all exceptions in VS and caught following:

Additional information:
Das Socket wurde abgebrochen, da ein asynchroner Empfangsvorgang vom Socket nicht innerhalb des zugewiesenen Zeitlimits von 00:02:00

In English: The socket was abortedbecause an asynchronous receive operation from the socket failed within the allotted timeout.

Any ideas would be much appreciated. Many thanks!


Void check problem

$
0
0

Hi Friends,

our user tried to void check, when comes to post the check reversal journal, it failed. 

It's due to reusing of old voucher number, reason is someone deleted a void check, and number sequence is set 'continuous'. 

So, I un-check the 'continuous' for number sequence,  we can delete the reversal journal, but how can we undo the 'void' check, then re-void it?

Many thanks,

Get table, field and its properties using metadata support class

Event log warning BuildXppServiceAssembly, CheckReportingQBClass

$
0
0

Hello everyone,
I was browsing the events that occur on the AOS server and found two warnings that occur repeatedly:

  1. CheckReportingQBClass: Reporting QB Class Name: SrsReportProviderQueryBuilderArgs. ClassId: 1019715. Class EXISTS.
  2. BuildXppServiceAssembly: QBTrace Enabled: False.

EventLog

I'm curious what AOS is trying to tell me.

Why is Item Price History empty for the cost prices?

$
0
0

Hello,

In Released products>Manage Costs>Item Price for a particular item in some legal entities the Cost price history is missing. Last price history parameter in Inventory parameters is activated for all legal entities. I've checked the InventItemPrice table and there are no records for some countries. 

What could be the reason for cost price history disappearance? How do the records related to the cost price appear in InventItemPrice in the first place? I only know about setting them and activating manually in Pending prices tab. Are there any other processes that create records in Item price history for the cost price?

Thanks

How to post order confirmation when order line is picked

$
0
0

Hello,

I'm not able to post Order confirmation for a Sales order when a Sales order line is picked because "Overdelivery of line is 100,00 percent, but the allowed overdelivery is only 0,00 percent."

Is there a way around it? I need to be able to print out the Order confirmation document with the picked line even if it's picked already.

Thank you.

Actual receipt Date of sales order by the customer

$
0
0

Hello Community, 

I would like to know what is the right column name and table to have the actual receipt date of a sales order by the customer, I have found only the requested and confirmed dates by the customer but not the actual receipt date. 

On the Sales Table, I have found these two dates: 

 \

I am working on Ax-2012 for Dynamics 365 FinOps.

Thank you 

Sort, range not working - fetching data from AX table using Query AIF service

$
0
0

Hi,

I' am successfully retrieving data from Microsft Dynamics Ax2012 via AIF document services. However, it shows me all the records with no filters applied and not sorted. I didn't get any error message.

C# Example:

public async Task<QueryResult> GetCustTableByCurrencyCodeAsync(string currencyCode)
{
    QueryResult queryResult;
    ExecuteQueryResponse executeQueryResponse;

    try
    {
        var customerDataSource = new QueryDataSourceMetadata
        {
            Table = "CustTable",
            Name = "CustTable",
            HasRelations = false,
            Enabled = true,
            DynamicFieldList = true,
            EnabledSpecified = true,
            FetchModeSpecified = true,
            DynamicFieldListSpecified = true,
            OrderModeSpecified = true
        };

        var range = new QueryDataRangeMetadata
        {
            TableName = "CustTable",
            FieldName = "Currency",
            Value = currencyCode,
            Enabled = true
        };

        customerDataSource.Ranges = new QueryRangeMetadata[] { range };

        var sort = new QueryDataOrderByMetadata
        {
            DataSource = "CustTable",
            FieldName = "AccountNum",
            SortOrder = SortOrder.Descending
        };

        var query = new QueryMetadata
        {
            QueryType = QueryType.Join,
            DataSources = new[] { customerDataSource },
            OrderByFields = new QueryOrderByMetadata[] { sort }
        };

        var paging = new PositionBasedPaging
        {
            StartingPosition = 1,
            NumberOfRecordsToFetch = 10,
            NumberOfRecordsToFetchSpecified = true,
            StartingPositionSpecified = true
        };

        ExecuteQueryRequest req = new ExecuteQueryRequest(query, paging);

        using (var client = ClientFactory.CreateClient())
        {
            executeQueryResponse = await client.ExecuteQueryAsync(req);
        }

        queryResult = createQueryResponse(ToDataSet(executeQueryResponse.ExecuteQueryResult));

    }
    catch (Exception ex)
    {
        throw new FaultException(ex.Message);
    }

    return queryResult;
}

Why is sort and filter not working?

Thank you in advance,
Janos


BOM integration for AX2012

$
0
0

Hi

We need to implement an integration with our PLM (Teamcenter) to automatically create Items and BOMs in AX2012.

Is there any documentation available to understand APIs available and how to set it up?

Any experience sharing would also be very helpful

Thanks a ton

Riccardo

AX2009 kernel 5.0.593.4 download package

$
0
0

Hi all,

I'm currently working on a rollout project from AX2009 to D365FO, we're trying to install the data migration tool following this guide , as a prerequisite for the installation of this tool it is needed to install a patch provided with the DMT package. 

Unfortunately the AX2009 version we are working on has a kernel ( 5.0.593.0 ) which is older than the one needed to run the patch ( 5.0.593.4 or later), so we searched for the package to update the kernel but we were not able to find any useful link, the best we found was this  one:

Overview of Microsoft Dynamics AX build numbers - Microsoft Dynamics 365 Blog

where the "closest" package available is for a 5.0.1500 version which probably is note compatible with the one we're working on ( 5.0.1001.96 SP1 ),

it is possible to have a link where to get the kernel 5.0.593.4 or later?

thanks,

Alessandro

AX2012 Advanced filter does not always work

$
0
0

Hello,

Have been struggling with the following problem.

In a list page view (e.g. Production orders list page) - after pressing <CTRL-F3> and adding a related (e.g. N:1) to ProdTable new data source and further use the new table source in the range lines:

and pressing OK - the new condition (range) would not be applied. In these (faulty) cases - when reopening again the advanced filter with <ctrl-F3>,  it could be seen that both: the Query used and the Previously Used Query - do not contain any more the newly added table-source and condition line. I had succeeded to apply the filter by accident some time ago (and even was able to save it), but in 99% of the successive attempts I was unable to do it any more. I fail to see any logic of when the filtering works and when not. The important note here is that this problem appears when new table source is added.

On debugging - it could be seen that under the "Previously Used Query" - the saved query has the correct number of DataSources (in this case 4), but the execution does not take the new one into account and the stored in the "Previously Used Query" query does not contain any more the new data source.

Has any of you experienced this - or do you have any idea what might be the cause? 

Thank you!

Nikolay Nikolov

Transfer/Clear Intercompany Balance

$
0
0

Hello,

My user is trying to clear a balance in our intercompany account as the entity has been closed.  

The issue is that the manual entry they perform to move this balance, generates more intercompany transactions, and has a net zero impact on the intercompany account  balance within the entity. How can we process an adjustment to clear this balance? 

Any direction is greatly appreciated, 

Thank you

JH

How to add new Inventory dimensions or Financial dimensions in D365FO

$
0
0

Hi all

How to add new Inventory dimension or Financial dimensions in D365FO 

Please give me more shed on this 

Thanks!

SSRS Report

$
0
0

  

I have 3 arrays whose size is declared with variables as seen in the image, when I put a small value in my arrays, for example a size of 1, it works fine for me, but if I put a size greater than 5 it shows me this mistake

  

in the past they told me to increase the time, I did 2 tests, the first was 2 hours and the second 15 hours, but it gives me the same error, instead of setting 10 minutes, I set 2 hours and then 15 hours respectively

When a negative line discount is applied to the customer – sales order (part of the principal model), Discount amount is not translated into the Principal Purchase order - Line Discount.

$
0
0

In AX 2012, When a negative line discount is applied to the customer – sales order (part of the principal model), Discount amount is not translated into the Principal Purchase order - Line Discount.

Please find the below screen-print for reference.

Issue need to be resolved on priority, Please help me out ASAP ?


Get checkbox value defined in Accounts Receivable Parameters

$
0
0

Hi All,

          According to my requirements, I have added a new checkbox in Accounts Receivable parameters under General tab and in SalesParameters table. The checkbox is based on NoYes enum. My logic says that if this checkbox is Yes then 'do this thing' else if checkbox is No, then do other thing. 

I do not know how to get the value of that checkbox in my batchjob class and how to workwith it. I have written it like this but it is showing me an error. 

SalesParameters      salesPara;

salesPara = SalesParameters::find(_salesId);

The error says _forupdate is incompatible with the required type.

How to determine which tables extract data from (SQL connection in Excel)

$
0
0

Hello everyone,

I hope this is the proper place to ask this question, otherwise I apologize.

It's a somewhat basic question, but I'm unable to find an answer to it. 

I'm trying to extract data from AX into Excel by connecting to the AX SQL-server within Excel. I'm able to establish a connection to the SQL-server and see all the available AX data. My difficulty however lies in determining, which of the available tables in the established connection I'm supposed to extract data from? 

After all, there're >5000 tables and a ton of data; Suppose therefore I'd like to see the balance of all ledger accounts; How would I as an AX user be able to determine the name of the table within my SQL-connection, from which I'd need to extract data from? 

I hope my question makes sense. 

Sales order: Qty. to Handle & Qty. to Invoice in negative: Undefined

$
0
0

Hi... After placing a sales order, in the Item tracking line when loading the batches, the quantities are negative, and then it does not allow to invoice the sales order. An error appears saying: "Nothing to post".

How and From Where Data is being Inserted into Table ?

$
0
0

Hi all, 

         I am working on a batchjob class. There is a table named InventoryAdjustments. This table is used to get sales orders and then return orders are created out of those sales orders. There is a counter which adds every time job is run. Every time the batch job is run, the counter value increments to 1. 

I do not know from where and how the data is being inserted into this table. It does not show my newly created sales orders automatically, so it means the data is being inserted on some conditions. How can I find it ?

Do you want any other other information ?

Get Sales Order Picking List Journal Number

$
0
0

Hi all,

        I have created a sales order in AX 2012 and after filling in its header and lines, I clicked on Picking list button from Pick & Pack tab. It was done successfully, but then when I click on Picking list Registration button, It gave me below mentioned errors. My main aim is to fetch Picking list jouornal number, I want to use this journal string for some other requirements related to return order. 

A quantity cannot be picked.

Insufficient inventory transactions with status On order, Reserved ordered, Reserved physical and Picked.

An error occurred during update

Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.FormletterService.Run() in FormletterService.run.xpp:line 246
at Dynamics.Ax.Application.FormletterService.Postsalesorderpackingslip(SalesFormLetterPackingSlipContract _contract) in FormletterService.postSalesOrderPackingSlip.xpp:line 14
at FormletterService::postSalesOrderPackingSlip(Object , Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters)
at Microsoft.Dynamics.Ax.Xpp.DictClass.Callobject(String _methodName, XppObjectBase _Called, Object[] varArgs)
at Dynamics.Ax.Application.SysOperationServiceController.Runoperation(Boolean _async) in SysOperationServiceController.runOperation.xpp:line 93
at Dynamics.Ax.Application.SysOperationServiceController.runServiceOperation(Object[] parameters) in SysOperationServiceController.runServiceOperation.xpp:line 22
at SysOperationServiceController::runServiceOperation(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26
at SysDictClass::invokeStaticMethod(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)

Viewing all 175888 articles
Browse latest View live


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