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

Pre-Processed RecId parameter not found. Cannot process report. Indicates a development error.

$
0
0

when i try to add my costume report into role center (enterprise portal)

i got this message

  

i've created my costume report by from InventAging report but i make it as chart 

but when i can open it normal by menu item outpot


User-AOS crashing on ntdll.dll

$
0
0

Dear community members,

I'm having an annoying issue where multiple times our user AOS'ses are crashing. When I check Windows Eventviewer I see an error on ntdll.dll. In cooperation with our business partner we have managed to create an analysis dump and send it to Microsoft but they couldn't find anything. :(

This is the error:

Faulting application name: Ax32Serv.exe, version: 6.3.5000.267, time stamp: 0x58196e47

Faulting module name: ntdll.dll, version: 6.3.9600.19153, time stamp: 0x5b93ffa7

Exception code: 0xc0000374

Fault offset: 0x00000000000f1cd0

Faulting process id: 0x6a8

Faulting application start time: 0x01d47b403aa2a24b

Faulting application path: C:\Program Files\Microsoft Dynamics AX\60\Server\<AOSINSTANCE>\Bin\Ax32Serv.exe

Faulting module path: C:\Windows\SYSTEM32\ntdll.dll

Report Id: 6a75f5b0-e757-11e8-80da-f8bc1211eec1

Faulting package full name:

Faulting package-relative application ID:

The weird thing is that only our user-AOS-es seem to crash, so it looks like a user initiated action which causes the AOS service to crash.. But which one..? I've thought about clearing the user-settings, but every user has customized nearly every form to their liking so I want that to be a last resort.

In relation to the problem I've got some questions:

1) Is it possible to delete the user files from the APPDATA folder without clearing everyone's user settings? (Query's, GRID-settings etc.)

2) Can a Windows .Net 'Preview of Quality rollup' cause an AOS service to crash? http://support.microsoft.com/kb/4462502 . The support page tells that there are problems with SharePoint workflows though..

3) Any more ideas?

Our Business partner is advising to upgrade our kernel but doesn't it seems a little drastic?

How to add link to the parent of parent Datasource in QueryBuildDataSource?

$
0
0

Hi Everyone,

I am trying to convert the following query into QueryBuildDataSource :- 

while select * from inventTrans

     join inventDim 

     where inventTrans.inventDimId == inventDim.InventDimId 

     join  inventBatch

     where inventBatch.InventBatchId ==  inventDim.InventBatchId

     && inventBatch.itemId == inventTrans.ItemId

Like This :-

qbdsInventTrans = query.addDataSource(tableNum(InventTrans));


qbdsinventDim = qbdsInventTrans.addDataSource(tableNum(InventDim));
qbdsinventDim.relations(false);
qbdsinventDim.fetchMode(JoinMode::InnerJoin);
qbdsinventDim.addLink(fieldNum(InventTrans,inventDimId),fieldNum(InventDim,InventDimId));

qbdsInventBatch = qbdsinventDim.addDataSource(tableNum(InventBatch));
qbdsInventBatch.relations(false);
qbdsInventBatch.fetchMode(JoinMode::InnerJoin); 
qbdsInventBatch.addLink(fieldNum(InventDim,inventBatchId),fieldNum(InventBatch,inventBatchId)); 
qbdsInventBatch.addLink(fieldNum(InventTrans,ItemId),fieldNum(InventBatch,itemId));

But in the line qbdsInventBatch.addLink(fieldNum(InventTrans,ItemId),fieldNum(InventBatch,itemId)) it is showing the exception " Invalid Field/Related field combination. "

How to resolve this ??

Thanks

Disappearing Table list for an over customized table of human Resources Table (Workers) only when using another AAD tenant like another domain name ?

$
0
0

I have this weird question which took me over thinking daily for the past 2 weeks 

since our Microsoft partner has customized our human resources module for a localization requirment ... etc.

are we now panicking from Disappearing Table list for an over customized table of human Resources Table (Workers) only when using another AAD tenant like another domain name?

what we shall try to do in this situation...

the same table is containing data with the other domain account seems to be a security issue :(

also if you all noticed the dim options at the task menu above :((( 

the user is already a system administrator but still not working

any suggest 

What are the Workflow Providers and when they are used?

$
0
0

Hi,

Can anyone explain to me the 4 different types of provider in a simple way. what are they? and when they are used? and if you can give me a simple example on each one that would be great.

1. Workflow Hierarchy Assignment Providers

2. Workflow Participant Assignment Providers

3. Workflow Queue Assignment Providers

4. Workflow Due Date Calculation Providers

A currency to convert from is required to retrieve exchange rate information while printing the report in pdf format using code.

$
0
0

Hello all,

This is my code to print a report to pdf format.

public static void main(Args _args)
{
SrsReportRunController controller = new SrsReportRunController();
CustTransOpenPerDateContract contract = new CustTransOpenPerDateContract();
SrsReportEMailDataContract emailContract = new SrsReportEMailDataContract();
ExchangeRateHelper exchangeRateHelper = new ExchangeRateHelper();
SRSPrintDestinationSettings settings;

controller.parmReportName(ssrsReportStr(FreeTextInvoice, Report));

controller.parmExecutionMode(SysOperationExecutionMode::ScheduledBatch);

controller.parmShowDialog(false);
exchangeRateHelper.parmFromCurrency(“USD”);

controller.parmReportContract().parmRdpContract(contract);

settings = controller.parmReportContract().parmPrintSettings();
settings.printMediumType(SRSPrintMediumType::File);
settings.fileFormat(SRSReportFileFormat::PDF);
settings.overwriteFile(true);
settings.fileName(@’C:\Users\sst_siddhant\Desktop\PDFfile.pdf’);

controller.startOperation();
}
I am getting an error –
1.A currency to convert from is required to retrieve exchange rate information.
2.Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type ‘Microsoft.Dynamics.Ax.Xpp.ErrorException’ was thrown.
What will be the solution for this issue.

Thank You
Siddhant Singh

QR Code with special characters

$
0
0

Hi, everyone.

I'm trying to make a QR code in AX2012 R3 and I found there is a library that can make a QR code.

However, It looks like that it doesn't support for special characters.

Please let me know how can I add special characters in QR code.

Export CSV file using x++ code in UTF8 format without BOM for D365O

$
0
0

Hi all,

I try to export CSV file in UTF-8 without BOM.

The exported CSV is UTF-8 with BOM but we need the format in UTF-8 without BOM.

here is my sample code:

public static void main(Args _args)
{ #FILE
TextStreamIo comma = TextStreamIo::constructForWrite(65001);
;
comma.outRecordDelimiter(#delimiterCRLF);
comma.outFieldDelimiter(",");
comma.writeExp(["COL A",
"COL B"]);

comma.writeExp(["F A","F B"]);

File::SendFileToUser(comma.getStream(), strfmt("%1.csv",'XX'));
}

Tried to search similar post but seems it is only for lower version (AX2012)

https://community.dynamics.com/ax/f/33/t/220574

Many thanks.


The enumerator does not designate a valid element.

$
0
0

Hello, I've upgraded version 8.0 to 8.1. I have no custamizations.
When i try to confirm SalesOrder ot PurchOrder or post FreeTextInvoice it gives me the following error  "The enumerator does not designate a valid element".

 Somebody have some idea why.

Get the Current Active Company RecId in Dynamics AX.

$
0
0

Any body tell me how to get the Current Active Company RecId in Dynamics AX 2012.

I want to set range in query data source on the base of RecId,but dont know how to do.

In the value field,i want to pass current active company RecId.

Model store

$
0
0

Hello 

Could you please clarify about model store in 2012 R3

1)How to create model store

2)Can we import model to the production server after fixing the code?

3) Can we import model store to the production server after fixing the code?

4) Can we import xpo to live server if the small fix in the code or only we have to import mode store to live server?

5)Below pic is attached .In that pic I have attached sql server data base & axutil list.

my question is that high lighted  one is model store?

6)  PS C:\>Export-AXModelStore -File Staging.axmodelstore -Database Staging -Details

above 6 th statement how to create  Staging .axmodelstore?

What is the command to create a model store, please?

Best Regards

Priya

Web services issue in ax 2012 r3

$
0
0

Hi guys,

I have created a web form using visual studio 2010 and getting the customer id  in the listbox1 by using one button in the form and based on the value selected the customer name will be showed in the second list box2 by using a servicegroup from ax 2012.

Upto this this was working well and good for me.

Now now I have created my own datacontract class and tried to get the custname,Custgroupid,defaultlanguageid  in the form and updated that service group and deployed it again.

In my visual studio also i updated the service reference  and wrote the logic for the third button and looks good.

But i am getting error in the code of the second button.

private void button2_Click(object sender, EventArgs e)

{
    BkCustomAXservice.BKCustomserviceClient servclient = new BkCustomAXservice.BKCustomserviceClient();
    string[] strItem = null;

    int i = 0;

    strItem = new string[listBox1.SelectedItems.Count];

    //Get selected customer ids and prepare a string array

    foreach (Object selecteditem in listBox1.SelectedItems)

    {

        string item  = selecteditem as string;

        strItem[i++] = item;

    }

 

    //Use the string array to get the “Customer Id: Customer Name” Combo data

    string[] custIds = servclient.retrivecustomernames(new BkCustomAXservice.CallContext(), strItem);
    //string[] custIds = servclient.retrivecustomernames(new BkCustomAXservice.CallContext(), strItem);
           

    listBox2.Items.Clear();

    foreach (string custId in custIds)

        listBox2.Items.Add(custId);

}

But i am getting error in the below line,

string[] custIds = servclient.retrivecustomernames(new BkCustomAXservice.CallContext(), strItem);


Error    1    Cannot implicitly convert type 'WindowsFormsApplication1.BkCustomAXservice.BKCustomservicecontract[]' to 'string[]'    c:\users\bharathk\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs    52    24    WindowsFormsApplication1


Please advise.
Regards,
AxTechie 2120

Import a model doesn't modify the BD?

$
0
0

Hello!

I have two equals environments but on of them has 2 shared projects (for example) with a new code and new fields in a table.

I can export the projects as XPO and import them in the second environment, but if instead 2 projects were 50 or 100, I don't want to export one by one...

I had thought about importing and exporting the model but I see that when I import the model, its appears many errors saying that some field daoesn't exists en datatable, etc.

What is the best way to do this?

The menu item could not be opened

$
0
0

Hi everyone. I've been trying to get around this error for the past few days and I don't seem to be making any progress. The error is the following:

It also shows the message "Object reference not set to an instance of an object." on the messages panel.

I believe the issue is on the menu item itself, but I have no idea how to resolve it.

Any ideas on how to fix it will be greatly appreciated.

Thanks.

Add extra column in view with default value

$
0
0

Hey,

Is it possible to add an extra column to a view with a default falue like 'Alternative trade'. I want that each record had the string Alternative trade in the extra column?

Thank you


Archiving old data

$
0
0

Dear Friends,
I have a question:
1/ The Database of AX2012 R3 is huge (>2TB). I want to archive data in the few years ago. Can I do?. How?.

Adding data source view to form

$
0
0

Hi everyone,

I have an extended form to which I am attempting to add a custom view. I have built and queried it via SSMS to ensure it's valid. On the extended form, I added a datasource node and specified my view. I understand that because I'm adding a view, which has not true association with the EcoResDistinctProductVariant table, I would have to override the init() on the view to add the link. When I right click the method node of my newly added data source view, I only see three options and none are override method. In the next attempt, I created an extension class with an inner class for the data source, then overrode init() there with just a simple info statement. When I debug, I don't see the info statement triggered. Can someone shed some light on how to properly add a view to a form? 

Much appreciated.

Importing Label File Error

$
0
0

I faced a serious problem.

I already imported label file spending much time.

However, after I checked the label editor there are many missed label, so I couldn't use the language.

I also tried to delete .ald files in appl folder and refresh, CIL, restart AOS, reinstall client.

How could overcome this situation?

Automatically resolve model references in Visual Studio

$
0
0

Not sure if this has already been asked. Is there anything on the roadmap for automatically updating a model's references with the standard models used in code?

As an example, I may be writing some code that uses VendInvoiceJour to find purchase order IDs. I write the code, everything seems fine but then I get an error saying that the assembly for SourceDocument is missing. So I then need to update model parameters, add a reference and recompile. After the second compilation, I might find other missing references.

Developers can do this manually but it's really bad user experience. Hence my question on this forum.

Thanks!

Sales order error

$
0
0

Please help on how to solve this error.

Viewing all 17532 articles
Browse latest View live


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