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

Data export job does not generate real CSV file.

$
0
0

We are doing integration with a third party vendor. They are asking us to provide data package with CSV file inside it. But when I checked the CSV file that data export in D365f&O generated, the file type is "Microsoft Excel Comma Separated Values File" which is causing issue with the integraton

They want the file in real CSV format as shown in the figure below:

Any reason F&O generated CSV file is different than other CSVs? 


How to download the file from D365FO

$
0
0

Hi All

 

Environment: D365fo

Requirement: download the CSV file format data from D365FO

 For testing purpose, I use below code to get the data from ax to CSV file its working good on DEV server.

 

Problem: while using out side the DEV server(i.e) development server how to download the  file without any path   

Please share any code to resolve this.

 

   fileName    =  @"C:DataFolder\_AWS_Data_Export.csv";

        io = new CommaIo(strFmt("%1", filename), 'W');

        io.outFieldDelimiter(",");

        io.outRecordDelimiter('\r\n');

            io.write('MainAccountr','BusinessUnit','Event','AccountingCurrencyAmount','Description','TransDate');

 

        while select * from aws_Table

        {

 

            io.write(aws_Table.MainAccount,aws_Table.BusinessUnit,aws_Table.Event,aws_Table.AccountingCurrencyAmount,aws_Table.Description,aws_Table.TransDate);

        }

Training for D365 FO

$
0
0

Hi. Our company is upgrading to D365 FO on cloud this quarter. I would like to attend training in this regard. 

My role in the company is that of the IT manager and I will be in charge of the functional and technical side.

Our consultant will be providing functional training for Finance and SCM which are our current modules. 

However, I need to get a thorough understanding of the technical side, which includes development, reports customizations, security, administration etc.

Can you give me an idea of what courses I need to do? 

1) Coming from AX 2009, Is SSRS reporting still there on cloud for D365? Or is it entirely replaced with X++ reports?  

2) What about power BI? 

3) Do I need to train in Azure for D365 FO? 

4) What about Visual studio? 

5) Any specific courses for security, administration & setup? 

6) Are there any other courses or topics I need to cover for development? 

Trying to get a better understanding about everything before I decide. Some pointers would be much appreciated. Thanks in advance for your support. 

How to know Powershell script is running?

$
0
0

Hi guys,

I'm not sure I can get any answers or I'm in the right forum, but anyhow this is the only forum I 'live' with. So I have a question regarding my task to run a Powershell script which is the script is to run an RSAT (well, at least the RSAT is still F&O related). What I've been explore is, this script executed by put in Task scheduler. 

The setting is to run the Powershell.exe with the argument is the script file it self. Something like this:

I can share the content of the script if needed, but what I want to ask is how to know whether my script is run or not ? at the moment, when task is executed it will pop up Powershell window but blank only, I don't know whether it is running or error or simply not execute my script.

The intention of this script is to run my RSAT Testplan which already configured in my RSAT installation.

Thanks,

SSRS Unidentifiable substring 'Lookup' in expression

$
0
0

Hi,

I am trying to use this expression, but I am getting an error when deploying the report.

Lookup(Fields!Fiedl1.Value, Fields!Field1.Value, Fields!Fields2.Value, "DataSet2")

Report: Unidentifiable substring 'Lookup' in expression. The parser reported error message: Unrecognized identifier. 

Please help. Thanks in advance.

Computed field in View - Ambiguous column name

$
0
0

I have a custom made View in which I made a computed field which shows the difference between two date fields. This is a ViewComputedColumnString field.

I use the ViewMethod: calcdates, which I made as follows:

public class ELCWDOrderMismatchView extends common
{
    /// <summary>
    ///
    /// </summary>
    public static server str calcDates()
    {
     return strFmt("CASE WHEN ELCWDActualConfirmedToCustomerDate != '1900-01-01 00:00:00.000' AND ReceiptDateConfirmed != '1900-01-01 00:00:00.000' THEN DATEDIFF(DAY, %1, %2) ELSE 0 END",
                fieldStr(SalesLine, ELCWDActualConfirmedToCustomerDate),
                fieldStr(SalesLine, ReceiptDateConfirmed));

    }

}

This works fine. Untill I added an extra datasource to my view.

My view is based on salesline table. I added an innerjoin to the SalesTable (link on SalesId and DataareaId), of which I need to add the WorkerSalesTaker to my View.

When I sync I get a Sync error on the 'ReceiptDateConfirmed' field (Ambiguous column).
- I tried to remove my computed Date field: then it syncs fine

It seems that  the computed field method does not know what datasource to use for the 'ReceiptDateConfirmed' field. Is there something that I need to add to the code to make it look to Salesline only ? 

how to copy roles from one domain to another doamain users

$
0
0

Hi Experts,

We changed our domain and user id now , there is any possibility to bring security roles from old domain (ABC )  domain (xyz) for all user. If not i think i will do it manually. I will watch old domain(ABC) users one by one and assign that roles to new domain(xyz) users. 

Best Regards,

Shabir Ahmad

I start all over again every month?

$
0
0

Hi.

Why? I cannot connect to my finance manager? I was calling them.

Is there phone number are real?

What is the reason and the purpose they are working with me? 

How do I know that  they were sending the file into my bank?

Its Okward if I always guessing!

I hope everything here are real? Ha? Because what I doing on my work here are real antoniosagansay7.visualstudio.com and lastly why? You don't put the email add of my finance personnel? What is the big reasons for that?

Just I get pissed because I feel that pressure and stress for me. Many times that I told you I need money..

Thanks 


How to fill date field in x++ using .net

$
0
0

Hi,

i made a customer service where the input to my service is ToDate

but when i try to fill this date using .Net i get the following error:

 Line.Date = DateTime.now.Date

how can i fill it?

Select the SSRS report parameter to run the report

$
0
0

Hi All,

I created new SSRS report in D365FO with four parameter is there.

If I chose any parameter  to run the report  its working fine.

Needed : I try to open the report that four  parameter make as empty .

every time user want to select parameter to run the report .

Parameter in report is going to be removed or not editable

$
0
0

Hi Experts,

I can't remove or edite this parameter as shown from that journal line in query parameters. What is the issue.

Best Regards,

Shabir Ahmad

Add a bid Attachment

$
0
0

Hi all . 

I need to solve the below,

My request is : Mandatory Attachment to RFQ.

Path: Procurement and Sourcing>Purchase Requisitions> all Purchase Requisitions

Requirement :Upon accepting a vendor quotation, the system must check if Bid attachment exist. If yes, user can accept quotation.

Otherwise, the system should notify the user that there is no attachment on vendor replies. User then will go to manage reply, edit RFQ reply for this vendor and add the bid attachment.

I want on the Accept button into the form : PurchRFQCompare , as the sc below :

         when the user choose a vendor , they need to fill the attachment , so he can press the button aacept.

          Only the vendor chosen they  have to fill the build 

           what we should edit in the code to get this result.

     The code:

[Extensionof(classstr(PurchRFQFormLetter))]
final class PurchRFQ_Extension
{
    protected static void validatePurchRFQFormLetter(Args _args)
    {
        PurchRFQCaseTable           rfqCaseTable;
        PurchRFQTable               rfqTable;
        PurchRFQReplyTable          rfqReplyTable;
        PurchRFQUpdateType          parmEnum;
        DocuRef                     docuRef;
        boolean                     hasAttachment = false;
        next validatePurchRFQFormLetter(_args);
        rfqCaseTable = _args.record();
        while select rfqReplyTable
            join rfqTable
            where rfqReplyTable.RFQId == rfqTable.RFQId &&
                  rfqTable.RFQCaseId  == rfqTable.RFQCaseId
        {
            select firstOnly docuRef
                where docuRef.RefRecId      == rfqReplyTable.RecId &&
                      docuRef.RefTableId    == rfqReplyTable.TableId;
            if (!docuRef)
            {
                hasAttachment = false;
                break;
            }
            else
            {
                hasAttachment = true;
            }
        }
        if (!hasAttachment)
        {
            throw error ("Bid attachments must be present.");
        }
    }

}

I need to add to the code , the condition like the sc above , when the user select one of these vendors , if he has a bid attachement hon the Accept button he can send the quotation , otherwise an error appear that he have to fill the bid.

Thank you. 

Voucher Transaction error: '', hexadecimal value 0x02, is an invalid character

$
0
0

We are getting this error when trying to run the Voucher Transaction inquiry in AX General Ledger module.  Not sure which GL transactions is causing it.  Any help would be appreciated.

How do I get a value in a label in dynamics

Purchase Requisition Number

$
0
0

Hello I want to display a method for PurchReqId.

Anyone can give me the code please.

[ExtensionOf(tableStr(PurchRFQCaseLine))]
final class PurchREQTable_Extension
{
public display PurchReqId Number()
{
    // what should I  write here to display the purchreqid 
}

}

Thank you


Text File not downloaded in browser outside the vm

$
0
0

Hi, I'm facing an issue which is the text file not be downloaded when I generate the EFT file in Vendor Payment Journal (dev and uat environment). It seems weird because it can be downloaded inside the VM's browsers but not at the outside (PC desktop browser). I tried on both Edge and Chrome. Pop up setting already allowed. Does anyone know or experience this issue? or maybe did I miss any setting to allow it? 

Thanks in advance!

Problem with inserting code

SQL Statement in CIL returns wrong data

$
0
0

Hi

We do have customized code where I try to get a record via sql statement

select forupdate mytable where mytable .extNum == '000052' && mytable .dataAreaid == 'TRV'

The record exist in mytable

Running the code in a job to verify it works....running it in a class called in CIL it never gets the record

Any suggestions?

Async not working as required

$
0
0

Hi,

I have a customized code not made by me that opens a dialog and some logic is done when ok is clicked.

I want to made an extension of this method and put code after super where i don't want their dialog (logic) to wait for my code until it closes. 

Which means their dialog must close right after their logic ends and my new logic can run in the background.

I think what I'm trying to achieve means that  I need to create a batch with Async right? but I tried to debug and the dialog didn't close directly and the debug went to my controller and waited for it to finish before the dialog was closed

so here's what i did: 

[ExtensionOf(classStr(class1))]
final class classAA_Extension
{
    protected void method1()
    {
        next post();
        Controller controller = Controller::construct(Id);
        controller.startOperation();
    }
}

contract

[DataContractAttribute]
class Contract
{
    Id id;

    [DataMemberAttribute]
    public Id Id(Id _id = id)
    {
        id = _id;

        return id;
    }

}

Controller

/// <summary>
/// 
/// </summary>
[SysOperationJournaledParameters(true)]
class Controller extends SysOperationServiceController
{
    /// <summary>
    ///   What method to call from the service class
    /// </summary>
    protected void new()
    {
        super(classStr(Service),methodstr(Service,Demo),SysOperationExecutionMode::Asynchronous);
    }

  
    public static Controller construct(Id _Id = "")
    {
        Controller controller = new Controller();
        controller.parmShowDialog(false);
        controller.parmShowProgressForm(false);
        Contract  contract =  controller.getDataContractObject();
        contract.Id(_Id);
        return controller;
    }

    /// <summary>
    /// main method of the controller class
    /// </summary>
    /// <param name = "_args">args</param>
    public static void main(Args _args)
    {
        Controller controller = Controller::construct();
        controller.startOperation();
    }

    /// <summary>
    /// caption that appears on the dialog
    /// </summary>
    /// <returns>the caption string</returns>
    protected ClassDescription defaultCaption()
    {
        return 'run';
    }

}

1. First, i had to pass the Id in the construct method and use this line in the method [Contract  contract =  controller.getDataContractObject();] to be able to pass the value to the service class, could i have done this in a better way? i don't think i should pass the value in construct or use getDataContract there as well.

Service class

class Service extends SysOperationServiceBase
{
    public void Demo(Contract _contract)
    {
       // logic
    }
}

2. How can i make it Async? what did i do wrong?

3. what is the difference between Async and ReliableAsync, which one should i choose?

AX crashes when clicking on buttons of some forms

$
0
0

Hi,

When I click on OK or Cancel button on some of the forms, AX automatically crashes. If I add a sleep() function it is solved and working fine. Looks like a bottleneck problem. 

As we can't add sleep() function to all the forms which makes AX crash, is there any other way to solve this problem?

Thanks & Regards,

Praveen

Viewing all 17532 articles
Browse latest View live


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