Hi All,
When I run the report through batch getting following error in log.
"Stack trace: Invalid attempt to call WinAPI.fileExists running in CIL on the client."
How to resolve this anyone help.
Thanks,
Hi All,
When I run the report through batch getting following error in log.
"Stack trace: Invalid attempt to call WinAPI.fileExists running in CIL on the client."
How to resolve this anyone help.
Thanks,
Hi
I create SSRS Report in AX 7 where I need to create link from InvoiceId field in the report to the form VendInvoiceJour. I try to use DrillThroughProvider.DrillInvoiceId but this Data Method is used for the form CustInvoiceJour, I am not sure is it possible and if it's possible how to create Data Method like in old AX 2012 or how to find already existing Data methods in DrillThroughProvider, can you help me with some suggestions?
Dear all, I hope you can provide us some help.
We are trying to access AX R3 client but we get the message below.
Any ideas on fixing this problem would be welcome.
Thank you in advance,
Regards,
PVP
Hi All,
is there any link to download a VM with D365 (as it is for MS AX 2012 R3)?
BR,
Michalis
I have been assigned a task to configure SMS based alert system in our organization. Well, i've no idea where to start from. Can any body please help me out with this. I have searched www for this purpose but got no favorable information regarding this task.
Awaiting.
LSRetailPosis.POSProcesses.POSProcessThread: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Retail.Pos.Tax.GenericTaxEngine.TaxableDocumentProvider.BuildTaxabelDocumentHeaderAndSublines(TaxableDocumentMapping documentMapping, RetailTransaction retailTransaction)
at Microsoft.Dynamics.Retail.Pos.Tax.GenericTaxEngine.TaxableDocumentProvider.GetTaxableDocumentWithMapping()
at Microsoft.Dynamics.Retail.Pos.Tax.GenericTaxEngine.TaxEngineServiceProxy.CalculateTax(IRetailTransaction retailTransaction)
at Microsoft.Dynamics.Retail.Pos.TaxService.Tax.CalculateTax(IRetailTransaction retailTransaction)
at LSRetailPosis.BusinessLogic.ItemSystem.CalculatePriceTaxDiscount(IPosTransaction transaction)
at LSRetailPosis.POSProcesses.ItemSale.Execute()
at LSRetailPosis.POSProcesses.Operation.RunOperation()
at LSRetailPosis.POSProcesses.POSProcessThread.ThreadProc().
Hello Everyone
We were developing in Var layer & check-in to TFS .Due to some issue development was done in usr layer & directly imported to UAT & PROD . Now want to move all Usr layer objects to Var layer .Kindly provide procedure .
What is the best way to attach an additional post processing after an existing process / events.
For example : After a product release, or After saving a purchase order
The requirement is:
1. After product release, retrieve the data of the newly released product
2. Call a web API function call to send over the data of the released product
3. Do some logging depending on the status response of the web API call
Thanks.
Hi Experts,
I created a custom service in D365 and tried accessing the service from a C# console application.
Build is successful in the console application; however, when I run the application, system is throwing below error
An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll
Any pointer would help.
Thanks,
N.Sridhar
Hi
when i create design
there is Row group by Accountnum and Column Group by Phone
but after run the Report it looks like this
col1 col2 col3 col4 col5
1 01
2 011
3 012
4 0130
is there any solution for this issue?
Regards,
Hi,
I am exchanging the document by using HTTP adapter by following LINK . I have added my service in visual studio and wrote the same code mentioned in above link but its giving me below error:
Please suggest me what i am missing here?
Hi Team,
I have an integration with an external system that has an exposed web services to integrate/export data from Ax to that system. Processing is algorithm is:
- When the Purchase Order is Confirmed
- Create a list of products from and order and verify if all those products exists on the external system.
- IF any product did not exist, retrieve product information from Ax and sync those over to the external system
- IF all products exists, sync the purchase order to the external system.
So basically all of the actions there have a function to retrieve data from ax and do a web service call to send out the data. Since I am implementing the process via Event Handler. How will I implement asynchronous calling of these operations? I did some research but most of the suggestions are about Batch Jobs.
Btw I have async functions on the web service functions.
Thanks.
Hi,
In AX 2012, we can directly call the custom service methods from client application.
For e.g
httpclient.MethodName(context, obj1List.ToArray(), obj2List.ToArray());
Here obj1List is a list of type obj1(data contract class) declared in X++
Here obj2List is a list of type obj2(data contract class) declared in X++
How to call similar method from client application to a custom service (JSON) hosted in D365?
The above blog describes how to pass single parameter to json based custom service.
How to pass multiple parameters json based custom service.
Thanks,
N.Sridhar
Hi,
Please let me know , how could I save a Sales Quotation report by passing the Quotation-ID dynamically in PDF format to a local drive without displaying it on screen through x++ code.
Regards,
Mania
Hi All,
I am sending the srss report in pdf format by the following method. How can i run with parameters?
For example My parameters _BuzWarrantyDirectionType.
Thank you.
public void run()
{
SrsReportRunController ssrsController = new SrsReportRunController();
SRSPrintDestinationSettings printerSettings;
str ReportPath,PdfFile;
SysMailer mail = new SysMailer();
SysemailParameters param=SysemailParameters::find();
BuzWarrantyTable _BuzWarrantyTable;//table
BuzWarrantyDirectionType _BuzWarrantyDirectionType = 0;//field
;
PdfFile = "Guarantee Letter List" +"_"+int2str(dayOfMth(today())) +"_"+ int2str(mthOfYr(today()));
ReportPath = "\\\\Server\\Test\\"+PdfFile+".pdf";
ssrsController.parmReportName(ssrsReportStr(LmkKuveytWarrantyTableNotification, LmkKuveytWarrantyTableNotification));
ssrsController.parmExecutionMode(SysOperationExecutionMode::Synchronous);
ssrsController.parmShowDialog(false);
printerSettings = ssrsController.parmReportContract().parmPrintSettings();
printerSettings.landscape(true);
printerSettings.printMediumType(SRSPrintMediumType::File);
printerSettings.fileFormat(SRSReportFileFormat::PDF);
printerSettings.overwriteFile(true);
printerSettings.fileName(@ReportPath);
ssrsController.runReport();
mail.attachments().add(@ReportPath);
mail.quickSend(param.SMTPUserName,"***@***.***","Subject","Description");
}
i have 3 lines of data in my form form having two data sources one is pricedisctable,inventdim.
in that form customer ALMT-000001 having 2 lines and ALMT-000002 having one line if i open
a form it should show latest transaction customer wise based on fromdate means ALMT-000001 should show only line that is 7/10/2017
my quastion is in that form two data sources are there which data source i need to write excutequery method
thanks in advance....
Hi,
I am exchanging document using HTTP adapter. So I consumed this services in visual studio and wrote below code:
static void Main(string[] args) {// Create the sales order objects // Service client ServiceReference1.SalesOrderServiceClient cl = new ServiceReference1.SalesOrderServiceClient(); // Sales order object to receive response Test.ServiceReference1.AxdEntity_SalesTable[] resp; // Create the entity key list for the request ServiceReference1.EntityKey[] readRespKeys = new ServiceReference1.EntityKey[1]; readRespKeys[0] = new ServiceReference1.EntityKey(); readRespKeys[0].KeyData = new ServiceReference1.KeyField[1]; readRespKeys[0].KeyData[0] = new ServiceReference1.KeyField(); readRespKeys[0].KeyData[0].Field = "SalesId"; // Ask the user for a sales order ID Console.WriteLine("Enter the sales order ID:"); // Add the result to the entity key value readRespKeys[0].KeyData[0].Value = Console.ReadLine(); try { // Try to read the sales order resp = cl.read(null, readRespKeys); // Display the information from the first sales table Console.WriteLine("For sales order: " + resp[0]); Console.ReadKey(); // Console.WriteLine("Customer Account is: " + resp.SalesTable[0].CustAccount); } catch (Exception e) { Console.WriteLine("Exception: " + e.Message); cl.Abort(); } cl.Close();
But this is working as excepted so i used debugger to see whats happening and it throw an exception , please see below:
please suggest me the solution.
I have managed to get to the point where I can get a stream created from my file from url. Having trouble figuring out how I can create the docuref and docuvalue table records from my stream. I have debugged the DocumentUpload form however the critical part of code is handled by the Uploadcontrol and I can't seem to get to the code that is actually sending the file to azure and getting back an id.
I have also looked at DocumentFileHelper::attachDocumentAsUser() however I'm having an issue with it wanting a string for documentcontents. Does anyone have an example of this being used to attach a jpeg?
Here is my code that generates the stream:
publicvoid importFile()
{
System.IO.Stream newImage;
FileUploadTemporaryStorageResult result;
FileUploadTemporaryStorageStrategy strategy = newFileUploadTemporaryStorageStrategy();
//FileUploadTemporaryStorageResult result = File::GetFileFromUser() as FileUploadTemporaryStorageResult
//newImage = File::UseFileFromURL("C:\\Users\\axlocaladmin\\Downloads\\zhp710_P2.jpg");// as FileUploadTemporaryStorageResult;
newImage = File::UseFileFromURL("C:\\Users\\Public\\Documents\\zhp710_P21.jpg");
//result = strategy.uploadFile(newImage,"zhp710_P2","image/jpeg","jpg");
//File::SendFileToUser(newImage,"zhp710_P2","FileUploadTemporaryStorageStrategy");
}
You can see that I've played around with various options to no avail.
Thanks,
Don
Hi all,
Please help me out in saving the Quotation Report as pdf to a local drive.
I am getting the below error while running the job where I have written code for saving the report as pdf to a local drive. Please let me know what am I doing wrong ?
Please find my code as Below :
static void KTI_BusinessConnector(Args _args)
{
KTI_SalesTempQuotation kti_SalesQuotation;
Args args = new Args();
PrintJobSettings pjs = new PrintJobSettings();
SysReportRun reportRun;
filename mFile;
QuotationId qId;
;
mFile = "C:\\MyFile.pdf";
winapi::deleteFile(mFile);
pjs.fileName(mFile);
pjs.format(PrintFormat::PDF);
pjs.setTarget(PrintMedium::File);
pjs.preferredFileFormat(PrintFormat::PDF);
//Set a preferred printer so the pdf looks normal when the default of the user is
//a strange printer (like a dot matrix label printer)
// pjs.deviceName(BCSalesQuotation_v1_02::.PrinterEmulationPDF);
args.name(reportstr("BCSalesQuotation_v1_02"));
while Select forupdate kti_SalesQuotation
where kti_SalesQuotation.UserInformation == XUserInfo::find(false, curUserId()).name
{
if(kti_SalesQuotation)
{
ttsbegin;
kti_SalesQuotation.delete();
ttscommit;
}
}
kti_SalesQuotation.clear();
qId = 'QT-00085276';
//select kti_SalesQuotation;
ttsbegin;
kti_SalesQuotation.UserInformation = XUserInfo::find(false, curUserId()).name;
kti_SalesQuotation.SalesQuotationNo = qId;
kti_SalesQuotation.insert();
ttscommit;
args.record(kti_SalesQuotation);
reportRun = classFactory.reportRunClass(args);
reportRun.printJobSettings(pjs.packPrintJobSettings());
reportRun.query().interactive(false);
reportRun.report().interactive(false);
reportRun.init();
reportRun.run();
}
Error am getting as below :
Error:
Error executing code: The field with ID '0' does not exist in table 'CustQuotationJour'.
Stack trace
(S)\Classes\RecordSortedList\first
(C)\Reports\BCSalesQuotation_v1_02\Methods\init - line 33
(C)\Jobs\KTI_BusinessConnector - line 52
Please do the needful
Thanks and regards,
Mania