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

How to get the data entities size in Dynamics 365 Finance and Operation

$
0
0

Hello expert, 

I did some research over the internet on this and I haven't found anything. I looked Dynamics F&O GUI interface, I didn't find anything related as well.  We could get some estimation based on X++ code although we could not deploy this to customer's production env.  Just wonder if there is any other way for this.  thanks. 


Fetch filtered data on class to export data on excel

$
0
0

Hi all,

In a formA an "Export to Excel" button is added to export some particular fields  ,this button is connected to a menuiten MenuItemA(action) . The code to export is handled using a class ClassA. There can be 3 scenarios:

1. Without selecting any record the user clicks "Export to excel" - all the records are fetched in an excel sheet 

2. Selecting a few records the user clicks "Export to excel"- the selected records are fetched in an excel sheet( code done using form data source anymarked() method)

3. User filters data on one field (using ctrl+G ) and clicks "Export to excel"- the filtered records are to be fetched in an excel sheet.

How can we achieve this third scenario? (the rest 2 are done)

AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect

$
0
0

We got an incident where users cannot log in to AX2012 for like 30 minutes. (They can open client but the screen is freezing without showing any error)

During that time we found the error below in event log.

 

I also attached the events, could you please have a look.

The time that this issue occur is around 4.30PM – 4.54PM. In security log it shows that a lot of failed login of ax administrator account but we did not update anything on this account.

Object Server 01:
An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect.

at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle)
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
at Microsoft.Dynamics.Ax.Services.AxSessionInitBehavior.getUserSid(String logonAsUser)
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)
at System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
at Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext)
The Zone of the assembly that failed was:
MyComputer

Form string control modify height & width

$
0
0

In D365 new form pattern, how can I specify one string control to specific height and width ?

For example in a tab page, I would like the control to take up the whole length of the display webpage. 

Form method extension

$
0
0

I would like to extend createPurchTableForm metod from PurchTable form.

I create extension class and trying to do something like this:

protected boolean createPurchTableForm()

if (sth) 

return purchTableForm.createFromSth()

next createPurchTableForm();

}

Of course I can't do that because call to 'next' should be done only once and unconditionally.

If someone has any other idea how to do that in extension?

System.OutOfMemoryException: Array dimensions exceeded supported range.

$
0
0

I have a service which recursively creates a large array of objects. When i run this code in client, it works fine, but when i pass it off to the aos to execute as a batch using sysop framework i get this error

System.OutOfMemoryException: Array dimensions exceeded supported range.at System.Collections.Generic.List`1.set_Capacity(Int32 value) at System.Collections.Generic.List`1.EnsureCapacity(Int32 min) at System.Collections.Generic.List`1.Add(T item) 

at Microsoft.Dynamics.Ax.Xpp.Array.arrayValue(Int32 _index, Object _arg, Boolean isDefaultParam)

i have seen other examples of this in other .net languages. they say that you have to add a block to the app.config file to allow large arrays like this:

<configuration>
  <runtime>
    <gcAllowVeryLargeObjects enabled="true" />
  </runtime>
</configuration>

but since i dont have access to ax's app.config, what can i do? this cannot be addressed another way.

Procurement categories/ vendor statistics to inquire the supplier performance

$
0
0

Hi All,

I know we have item/Vendor statistics report, which displays which item is distributed by which vendor. 

Example :Item A  is distributed by Vendor V0001,V0002,V0003. 

In ax do we have a reports which lists which procurement categories is distributed by which vendor. 

Example : Procurement Category - "Conveyor", is distributed by vendor V0001,V0002,V0005,etc. 

My purchase team want to inquire the performance of the supplier.  My client will not store items, they will use procurement category which is linked to project category. Create PO from project and enter the procurement category and deliver to customers directly. 

Now they need a report , procurement category - conveyor is displayed by what are the vendors?

Is there a way we can link vendors to the multiple procurement category?

They need these details as a report. To inquire and report the performance of the supplier

  • Vendor Name (AX integration)
    • Vendor Account # (AX integration)
    • Vendor Country/Region (AX integration)
    • Vendor Address (AX integration)
    • Vendor Website Address
    • Vendor Terms of Payment (AX integration)
    • Vendor Cash Discount (AX Integration)
    • Vendor Currency ((AX integration)
    • Vendor Selection Priority
      • Primary
      • Secondary
      • Opportunistic
    • Contact Name(s) (populated separately)
      • Title
      • Role (to be defined)
      • Cell Number
      • Office Number
      • Email Address
      • Location Address
      • Primary Fortna Contact Name
    • Product and Service Categories or Segments (examples categories below)
      • Conveyor/Carton Sortation
      • Tilt Tray Sortation
      • Cross Belt Sortation
      • Bombay Sortation
      • AS/RS
      • A-Frame
      • AGV
      • Tire Handling
      • Fixed Scanners
      • Spirals
      • Packaging
      • Mechanical Installation
      • Electrical Installation
      • Storage and Structures Installation
    • Supplier Qualification
      • Company Financials
        • Fiscal Year End
        • Company Type
          • Public
          • Private
      •  
        • Financial Qualification Date
        • Financial Qualification Limit Value
        • Financial Qualification Limit Currency
      • Certification
        • Certification Type
        • Certification #
        • Effective Date
        • Expiration Date
        • Year of of W-9 or Equivalent
        • Insurance Certificate
        • Comments
      • MDNA
        • Effective Date
        • Expiration Date
      • Technical Qualification
        • Date of Qualification
        • Qualified By (Fortna Name)
    • Project History (AX integration)
      • Project ID#’s (AS integration)
        • Project Name
        • Customer Name
        • Customer Account #
        • Project Location
        • Project Spend Value
          • Sum Purchase Value by Project
            • PO #’s
              • PO Date
              • PO Value
              • PO Value Currency
              • PO Status
          • Sum Invoice Values by Project
            • Invoice #’s
              • Invoice Date
              • Invoice Value
              • Invoice Value Currency
              • Invoice Status

Please share your suggestions, how to achieve this without doing any customization because we do have plan to move to D365 next from MSD 2012 R2. if it is customization it will be very difficult for us in D365.

Thanks in advance.

Thanks,

Banu.

AIFFault object does not have method 'new'

$
0
0

Hi All,

I have created a custom service to do the post Prod Journal logic.

When I test it in the AX , everything can go well, the journal can be posted success.

But when I try to call the interface from my .net program, it show me the error "AIFFault object does not have method 'new'".(This issue happen in today, in the before, the interface can run well)

I have traced and find the issue is happen in the code of posting journal below.

ProdJournalCheckPostProd::newPostJournal(prodJournalProd.JournalId, false).run();

I have checked the ProdJournalCheckPostProd class, nothing is missing, every method are there.

In order to fix the issue of "AIFFault object does not have method 'new'", I have generated full CIL, but it does not work. (When I do the generate full CIL, there still have multiple user connect to the server, is that I should log them off then do the generate full CIL again?)

I don't what should I do except generate full CIL, anybody can give me a suggestion?


Salesquotation through batch job

$
0
0

Dear all,

Can you please let me know I am working in one batch job , which is creating a Sales Quotation through batch job.

So, we added 2 enum fields in customized table isSyncd and isSyncError.

If SalesQutattion successfully done then the line is checked YES in IsSyncd and

If not means is data having some issues then it will not create Sales Quotation and it will be marked with IsSyncError = yes.

So, we kept those in separate form " SalesQuotationTracking" form to track which records are not created Sales Quotation means IsSyncError = YES

So, User will rectify those record and click on send button in form " SalesQuotationTracking" then it has to go through same batch to create Sales Quotation through batch.

My question is

Already 1 batch is running every 10 minutes in everyday to create Sales Quotation and it has track everyday which records are fail to create Sales Quotation. Means IsSyncError = YES

How i will run same batch job again after rectifying those record which is failed to create SalesQuotation means IsSyncError = YES

Is it possible to run the same batch job ( means which we can run from form to press SEND buttin)simenteniously because already same batch job is running everyday after 10 minutes gap.

Please give me more she'd on this

Thanks!

AX 2012 R3 CU9 and TFS2017

$
0
0

Hello,

I want to know if AX 2012 R3 CU9 and TFS 2017 compatible?

Thanks!

Index in extension table

$
0
0

Dear all,

Can you please let me know if I need to ADD NEW Index OR need to MODIFY any EXISTING index on "Extension Table ". For example: Suppose in CustTable_extension.

Then how I will achieve?

Please give me more she'd on this

Thanks!

Divert my VHD entities to publish to Dev environment

Export into csv doesn't work

$
0
0

Hi :)

I have some weird problem, I using this for export data into csv and it doesn't work properly. It generates csv file with coma separated values but excel sees it like ordinary file, it displays like this:

0,"item name"       
1,"item name"
2,"item name"

instead of this:

0item name
1item name
2item name

I tried to generate csv file in excel, open it in notepad++ and copy to x++ generated file and it also displays wrong so I assume that is problem with file properties but i don't know how to solve this.

Can somebody, please, tell me what I am doing wrong?

How to get the vales using form Initializing() method

$
0
0

Hi All,

Environment: D365/Ax7

while open VendInvoiceInfoListPage form I have some calculation is there. So go with Initializing() method using EventHandlers in VendInvoiceInfoListPage form blow my code is there.

But I can't any return values .Please any one help to resolve this issues .

[FormEventHandler(formStr(VendInvoiceInfoListPage), FormEventType::Initializing)]
public static void VendInvoiceInfoListPage_OnInitializing(xFormRun sender, FormEventArgs e)
{
    VendInvoiceInfoTable vendInvoiceInfoTable;
    FormDataSource vendInvoiceInfoTable_ds = sender.dataSource('VendInvoiceInfoTable');
  
    Info(strFmt("%1",VendInvoiceInfoTable.InvoiceAccount));

}

BR

Tony

How to recover customization from UAT

$
0
0

Dear Friends,

I have lost all my customization/codes/models from on cloud DEV environment by mistake while redeploying the DEV environment.

Is there any way to get my customization/models/model store back from UAT environment.

Please help me to get back my customization.

Thousands of thanks in advance.

Thanks,

Ravisankar


Form string control modify height & width

$
0
0

In D365 new form pattern, how can I specify one string control to specific height and width ?

For example in a tab page, I would like the control to take up the whole length of the display webpage. 

filter/lookup on display method

$
0
0

Hi

i added a display method on my grid . is there a way to filter or make the display method searchable?

TIA

generating deployable package from VSTS with build server alone

$
0
0

Hi,

Currently we have D365FO cloud hosted environments dev and build environment.

We generate deployable package via online VSTS build process.

we planned to shutdown cloud hosted dev environment.

Is it possible to generate deployable package from VSTS with Build server alone (keeping dev environment in offline).

Thanks & Regards

Kathiravan M

Need help in understanding method calling sequence

$
0
0

Hi All,

I am new to AX .I m trying to understand method calling sequence in ax .I have gone through a lot of blogs which shows method calling sequence but still am failing to understand this.

When I write any code I fail to understand that where should I write this code whether it should be on  form or on a table.

please help me in making understand the process to learn method calling and easiest way to learn this.

Initialize new fields with data upon deployment

$
0
0

What is the Microsoft official or recommended way to initialize new fields with data on already existing records upon deployments?

Let's say you have made a new field on CustTable and after it has been deployed to UAT or PROD you need to have that field initialized with data before users begin working on environment.

In old AX version you could always run a job to initialize new fields.

Viewing all 17532 articles
Browse latest View live